xref: /llvm-project/clang/test/Index/comment-cplus11-specific.cpp (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng std=c++11 %s > %t/out
4 // RUN: FileCheck %s < %t/out
5 
6 namespace inner {
7   //! This documentation should be inherited.
8   struct Opaque;
9 }
10 // CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))]
11 
12 namespace borrow {
13   //! This is documentation for the typedef (which shows up).
14   typedef inner::Opaque Typedef;
15 // CHECK:         (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))]
16 
17   //! This is documentation for the alias (which shows up).
18   using Alias = inner::Opaque;
19 // CHECK:         (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))]
20 
21   typedef inner::Opaque NoDocTypedef;
22 // CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))]
23 
24   using NoDocAlias = inner::Opaque;
25 // CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))]
26 }
27