File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ bool isCommandNameStartCharacter(char C) {
214214}
215215
216216bool isCommandNameCharacter (char C) {
217- return isAlphanumeric (C );
217+ return isAsciiIdentifierContinue (C, false );
218218}
219219
220220const 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, ...);
131131// CHECK: ParamCommandComment{{.*}} [in] implicitly Param="..."
132132// CHECK-NEXT: ParagraphComment
133133// 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