Commit a852869
[clang-format] Fix a bug in parsing function/variable names
Function and variable names are not detected when there is a __attribute__((x)) preceding the name. Fixes #64137. Differential Revision: https://reviews.llvm.org/D1563701 parent 3161102 commit a852869
File tree
3 files changed
+24
-2
lines changed- clang
- lib/Format
- unittests/Format
3 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2246 | 2246 | | |
2247 | 2247 | | |
2248 | 2248 | | |
2249 | | - | |
2250 | | - | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2251 | 2252 | | |
2252 | 2253 | | |
2253 | 2254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16394 | 16394 | | |
16395 | 16395 | | |
16396 | 16396 | | |
| 16397 | + | |
16397 | 16398 | | |
16398 | 16399 | | |
| 16400 | + | |
16399 | 16401 | | |
16400 | 16402 | | |
16401 | 16403 | | |
| |||
16429 | 16431 | | |
16430 | 16432 | | |
16431 | 16433 | | |
| 16434 | + | |
16432 | 16435 | | |
16433 | 16436 | | |
| 16437 | + | |
16434 | 16438 | | |
16435 | 16439 | | |
16436 | 16440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2313 | 2313 | | |
2314 | 2314 | | |
2315 | 2315 | | |
| 2316 | + | |
2316 | 2317 | | |
2317 | 2318 | | |
2318 | 2319 | | |
| |||
2323 | 2324 | | |
2324 | 2325 | | |
2325 | 2326 | | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2326 | 2343 | | |
2327 | 2344 | | |
2328 | 2345 | | |
| |||
0 commit comments