llvm-project/clang/test/Index/comment-cplus11-specific.cpp
Mehdi Amini e0ac46e69d Revert "Remove rdar links; NFC"
This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d.
This commit wasn't reviewed ahead of time and significant concerns were
raised immediately after it landed. According to our developer policy
this warrants immediate revert of the commit.

https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy

Differential Revision: https://reviews.llvm.org/D155509
2023-07-17 18:08:04 -07:00

28 lines
1.0 KiB
C++

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng std=c++11 %s > %t/out
// RUN: FileCheck %s < %t/out
// rdar://13752382
namespace inner {
//! This documentation should be inherited.
struct Opaque;
}
// CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
namespace borrow {
//! This is documentation for the typedef (which shows up).
typedef inner::Opaque Typedef;
// CHECK: (CXComment_Text Text=[ This is documentation for the typedef (which shows up).])))]
//! This is documentation for the alias (which shows up).
using Alias = inner::Opaque;
// CHECK: (CXComment_Text Text=[ This is documentation for the alias (which shows up).])))]
typedef inner::Opaque NoDocTypedef;
// CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
using NoDocAlias = inner::Opaque;
// CHECK: (CXComment_Text Text=[ This documentation should be inherited.])))]
}