File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ Bug Fixes to AST Handling
216
216
- Fix incorrect name qualifiers applied to alias CTAD. (#GH136624)
217
217
- Fixed ElaboratedTypes appearing within NestedNameSpecifier, which was not a
218
218
legal representation. This is fixed because ElaboratedTypes don't exist anymore. (#GH43179) (#GH68670) (#GH92757)
219
+ - Fix comment lexing of special command names (#GH152943)
219
220
220
221
Miscellaneous Bug Fixes
221
222
^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ bool isCommandNameStartCharacter(char C) {
214
214
}
215
215
216
216
bool isCommandNameCharacter (char C) {
217
- return isAlphanumeric (C );
217
+ return isAsciiIdentifierContinue (C, false );
218
218
}
219
219
220
220
const char *skipCommandName (const char *BufferPtr, const char *BufferEnd) {
Original file line number Diff line number Diff line change @@ -131,3 +131,9 @@ void Test_TemplatedFunctionVariadic(int arg, ...);
131
131
// CHECK: ParamCommandComment{{.*}} [in] implicitly Param="..."
132
132
// CHECK-NEXT: ParagraphComment
133
133
// CHECK-NEXT: TextComment{{.*}} Text=" More arguments"
134
+
135
+ // / \thread_safe test for underscore in special command
136
+ int Test_UnderscoreInSpecialCommand;
137
+ // CHECK: VarDecl{{.*}}Test_UnderscoreInSpecialCommand 'int'
138
+ // CHECK: InlineCommandComment{{.*}} Name="thread_safe" RenderNormal
139
+ // CHECK-NEXT: TextComment{{.*}} Text=" test for underscore in special command"
You can’t perform that action at this time.
0 commit comments