Repository navigation
Commit 05a5ed3
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.1 parent 79c4663 commit 05a5ed3
2 files changed
Lines changed: 17 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2355 | 2355 | | |
2356 | 2356 | | |
2357 | 2357 | | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
2358 | 2364 | | |
2359 | 2365 | | |
2360 | 2366 | | |
| |||
2363 | 2369 | | |
2364 | 2370 | | |
2365 | 2371 | | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
2369 | | - | |
2370 | | - | |
2371 | | - | |
2372 | 2372 | | |
2373 | 2373 | | |
2374 | 2374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4788 | 4788 | | |
4789 | 4789 | | |
4790 | 4790 | | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
4791 | 4801 | | |
4792 | 4802 | | |
4793 | 4803 | | |
| |||
5864 | 5874 | | |
5865 | 5875 | | |
5866 | 5876 | | |
| 5877 | + | |
5867 | 5878 | | |
5868 | 5879 | | |
5869 | 5880 | | |
| |||
0 commit comments