File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const {
227
227
228
228
// There should be no other declarations or preprocessor directives between
229
229
// comment and declaration.
230
- if (Text.find_first_of (" , ;{}#@" ) != StringRef::npos)
230
+ if (Text.find_first_of (" ;{}#@" ) != StringRef::npos)
231
231
return NULL ;
232
232
233
233
return *Comment;
Original file line number Diff line number Diff line change @@ -247,6 +247,13 @@ void isdoxy52(int);
247
247
*/
248
248
void isdoxy53 (int );
249
249
250
+ #define MYMAC (x,y )
251
+ /* *
252
+ * Aaa. IS_DOXYGEN_START IS_DOXYGEN_END
253
+ */
254
+ MYMAC (0 ,0 )
255
+ void isdoxy54(int );
256
+
250
257
#endif
251
258
252
259
// RUN: rm -rf %t
@@ -327,4 +334,5 @@ void isdoxy53(int);
327
334
// CHECK: annotate-comments.cpp:222:6: FunctionDecl=isdoxy50:{{.*}} BriefComment=[Returns ddd IS_DOXYGEN_END]
328
335
// CHECK: annotate-comments.cpp:231:6: FunctionDecl=isdoxy51:{{.*}} BriefComment=[Aaa. IS_DOXYGEN_START]
329
336
// CHECK: annotate-comments.cpp:241:6: FunctionDecl=isdoxy52:{{.*}} BriefComment=[Aaa. IS_DOXYGEN_START Bbb.]
330
-
337
+ // CHECK: annotate-comments.cpp:248:6: FunctionDecl=isdoxy53:{{.*}} BriefComment=[Aaa. IS_DOXYGEN_START IS_DOXYGEN_END]
338
+ // CHECK: annotate-comments.cpp:255:6: FunctionDecl=isdoxy54:{{.*}} BriefComment=[Aaa. IS_DOXYGEN_START IS_DOXYGEN_END]
You can’t perform that action at this time.
0 commit comments