Repository navigation
Commit 7e57597
committed
Do not record a usage for a function-like macro name without (
expand() added the use location to the usage list before checking whether
a function-like macro is followed by (, so `int F = 1;` with F defined as
a function-like macro was reported as a usage of F although nothing is
expanded. Record the usage after that check.
macroUsageArg4 expected such a usage for `INT64_C;`; it now expects none.1 parent e5cb618 commit 7e57597
2 files changed
Lines changed: 19 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2395 | 2395 | | |
2396 | 2396 | | |
2397 | 2397 | | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
2398 | 2404 | | |
2399 | 2405 | | |
2400 | 2406 | | |
| |||
2403 | 2409 | | |
2404 | 2410 | | |
2405 | 2411 | | |
2406 | | - | |
2407 | | - | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | | - | |
2412 | 2412 | | |
2413 | 2413 | | |
2414 | 2414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4976 | 4976 | | |
4977 | 4977 | | |
4978 | 4978 | | |
| 4979 | + | |
| 4980 | + | |
| 4981 | + | |
| 4982 | + | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
| 4988 | + | |
4979 | 4989 | | |
4980 | 4990 | | |
4981 | 4991 | | |
| |||
5025 | 5035 | | |
5026 | 5036 | | |
5027 | 5037 | | |
5028 | | - | |
| 5038 | + | |
5029 | 5039 | | |
5030 | | - | |
| 5040 | + | |
5031 | 5041 | | |
5032 | 5042 | | |
5033 | 5043 | | |
| |||
6146 | 6156 | | |
6147 | 6157 | | |
6148 | 6158 | | |
| 6159 | + | |
6149 | 6160 | | |
6150 | 6161 | | |
6151 | 6162 | | |
| |||
0 commit comments