brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 4426368 Raw
27 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng std=c++11 %s > %t/out4// RUN: FileCheck %s < %t/out5 6namespace inner {7  //! This documentation should be inherited.8  struct Opaque;9}10// CHECK:         (CXComment_Text Text=[ This documentation should be inherited.])))] 11 12namespace 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