comment-cplus11-specific.cpp 1.0 KB

123456789101112131415161718192021222324252627
  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. // rdar://13752382
  6. namespace inner {
  7. //! This documentation should be inherited.
  8. struct Opaque;
  9. }
  10. // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
  11. namespace borrow {
  12. //! This is documentation for the typedef (which shows up).
  13. typedef inner::Opaque Typedef;
  14. // CHECK: (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))]
  15. //! This is documentation for the alias (which shows up).
  16. using Alias = inner::Opaque;
  17. // CHECK: (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))]
  18. typedef inner::Opaque NoDocTypedef;
  19. // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
  20. using NoDocAlias = inner::Opaque;
  21. // CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
  22. }