Commit 40bcbd4
authored
small
* token.cpp: fixed `readability-else-after-return` warnings in `Match()`
* token.cpp: removed some duplicated code from `Match()`
* token.cpp: use `strchr()` instead of loop in `Match()`
* token.cpp: added early exit and removed unnecessary loop condition in `Match()`Token::Match() optimizations (#4154)1 parent 3d5d2e8 commit 40bcbd4
1 file changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
641 | 644 | | |
642 | | - | |
| 645 | + | |
643 | 646 | | |
644 | 647 | | |
645 | 648 | | |
| |||
654 | 657 | | |
655 | 658 | | |
656 | 659 | | |
657 | | - | |
658 | | - | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
659 | 663 | | |
660 | 664 | | |
661 | 665 | | |
| |||
686 | 690 | | |
687 | 691 | | |
688 | 692 | | |
689 | | - | |
690 | | - | |
691 | 693 | | |
692 | 694 | | |
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
696 | 698 | | |
697 | 699 | | |
698 | | - | |
699 | | - | |
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
| 711 | + | |
711 | 712 | | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
715 | 716 | | |
716 | | - | |
717 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
718 | 720 | | |
719 | 721 | | |
720 | 722 | | |
| |||
0 commit comments