Commit 3fc24a2
authored
[clang-format] Fix a bug in annotating class member names (#165351)
For declarations like `Type* ::Class::member...`, `Class` was not
annotated as `TT_StartOfName`as it should be. This prevented `member`
from being updated to `TT_FunctionDeclarationName` if `member` was a
function name.
Fixes #1648661 parent e8a1162 commit 3fc24a2
File tree
2 files changed
+13
-1
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2674 | 2674 | | |
2675 | 2675 | | |
2676 | 2676 | | |
2677 | | - | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
2678 | 2680 | | |
| 2681 | + | |
2679 | 2682 | | |
2680 | 2683 | | |
2681 | 2684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1122 | 1127 | | |
1123 | 1128 | | |
1124 | 1129 | | |
| |||
3484 | 3489 | | |
3485 | 3490 | | |
3486 | 3491 | | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
3487 | 3496 | | |
3488 | 3497 | | |
3489 | 3498 | | |
| |||
0 commit comments