xref: /aosp_15_r20/external/clang/test/Index/comment-with-preamble.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // Make sure the preable does not truncate comments.
2 
3 #ifndef BAZ
4 #define BAZ 3
5 #endif
6 
7 //! Foo’s description.
8 void Foo();
9 
10 // RUN: c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
11 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 1 local %s | FileCheck %s
12 
13 // CHECK: FunctionDecl=Foo:8:6 RawComment=[//! Foo’s description.] RawCommentRange=[7:1 - 7:25] BriefComment=[Foo’s description.]
14