Repository navigation
Commit b277a55
committed
Remove the unexpanded macro name filter from setLocationMacros
The filter skipped a macro usage whose location held the bare name of a
function-like macro, because simplecpp recorded a usage there although
nothing was expanded. simplecpp 1.10.2 no longer records it
(cppcheck-opensource/simplecpp#759), so the filter has nothing left to do.
The existing test for that case passes with or without the filter, as
no other macro is expanded on its line. The new test puts DIV(1,0) on
the same line as a bare ALIAS, and fails if simplecpp records the bare
name and the filter is gone.
The comment on the usage loop now says what it skips: usages on lines
without macro-expanded tokens.1 parent 3074865 commit b277a55
2 files changed
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 113 | | |
119 | | - | |
120 | 114 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 115 | + | |
124 | 116 | | |
125 | | - | |
| 117 | + | |
126 | 118 | | |
127 | 119 | | |
128 | 120 | | |
129 | | - | |
| 121 | + | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1078 | 1090 | | |
1079 | 1091 | | |
1080 | 1092 | | |
| |||
0 commit comments