Commit 4183336
authored
fix skipping of cpp attributes. (#4971)
* fix skipping of cpp attributes.
* fix simplifyCPPAttribute loop.
When the first token was the start of a c++ attribute on a function,
so that tok->previous() was nullptr at the bottom of the loop,
an extra token would be skipped. This could result in the corresponding
function being omitted from the symbol table.
* fix alignas test failure, enhance cpp attr test.
* uncrustify.
* fix redundantNextPrevious
* delete redundant code.
* add some tokenizer tests for simplifyCPPAttribute.
* enhance noreturn symbol test.
The order of a noreturn attribute and another attribute used to
matter. Test both orders.1 parent c3002f1 commit 4183336
3 files changed
Lines changed: 40 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8825 | 8825 | | |
8826 | 8826 | | |
8827 | 8827 | | |
8828 | | - | |
| 8828 | + | |
8829 | 8829 | | |
| 8830 | + | |
8830 | 8831 | | |
8831 | 8832 | | |
8832 | 8833 | | |
8833 | 8834 | | |
8834 | | - | |
| 8835 | + | |
8835 | 8836 | | |
8836 | | - | |
8837 | | - | |
| 8837 | + | |
8838 | 8838 | | |
8839 | 8839 | | |
8840 | 8840 | | |
8841 | 8841 | | |
8842 | 8842 | | |
8843 | 8843 | | |
8844 | | - | |
| 8844 | + | |
8845 | 8845 | | |
8846 | | - | |
8847 | | - | |
| 8846 | + | |
8848 | 8847 | | |
8849 | 8848 | | |
8850 | 8849 | | |
8851 | 8850 | | |
8852 | 8851 | | |
8853 | 8852 | | |
8854 | | - | |
| 8853 | + | |
8855 | 8854 | | |
8856 | | - | |
8857 | | - | |
| 8855 | + | |
| 8856 | + | |
8858 | 8857 | | |
8859 | 8858 | | |
8860 | 8859 | | |
| |||
8884 | 8883 | | |
8885 | 8884 | | |
8886 | 8885 | | |
8887 | | - | |
8888 | | - | |
8889 | | - | |
8890 | | - | |
8891 | | - | |
8892 | | - | |
8893 | | - | |
8894 | | - | |
| 8886 | + | |
8895 | 8887 | | |
8896 | 8888 | | |
8897 | 8889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7408 | 7408 | | |
7409 | 7409 | | |
7410 | 7410 | | |
7411 | | - | |
| 7411 | + | |
| 7412 | + | |
| 7413 | + | |
| 7414 | + | |
7412 | 7415 | | |
7413 | 7416 | | |
7414 | 7417 | | |
| |||
7428 | 7431 | | |
7429 | 7432 | | |
7430 | 7433 | | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
| 7440 | + | |
| 7441 | + | |
7431 | 7442 | | |
7432 | 7443 | | |
7433 | 7444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5691 | 5691 | | |
5692 | 5692 | | |
5693 | 5693 | | |
| 5694 | + | |
| 5695 | + | |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
| 5704 | + | |
| 5705 | + | |
| 5706 | + | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
| 5710 | + | |
| 5711 | + | |
5694 | 5712 | | |
5695 | 5713 | | |
5696 | 5714 | | |
| |||
0 commit comments