mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 04:06:07 +00:00

- Create ASTContext::attachCommentsToJustParsedDecls so we don't have to load external comments in Sema when trying to attach existing comments to just parsed Decls. - Keep comments ordered and cache their decomposed location - faster SourceLoc-based searching. - Optimize work with redeclarations. - Keep one comment per redeclaration chain (represented by canonical Decl) instead of comment per redeclaration. - For redeclaration chains with no comment attached keep just the last declaration in chain that had no comment instead of every comment-less redeclaration. Differential Revision: https://reviews.llvm.org/D65301 llvm-svn: 368732
15 lines
438 B
C++
15 lines
438 B
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 -target x86_64-apple-darwin10 %s > %t/out
|
|
// RUN: FileCheck %s < %t/out
|
|
|
|
class Foo;
|
|
// CHECK: CXComment_Text Text=[ Foo is the best!])))]
|
|
|
|
/// Foo is the best!
|
|
class Foo;
|
|
// CHECK: CXComment_Text Text=[ Foo is the best!])))]
|
|
|
|
class Foo {};
|
|
// CHECK: CXComment_Text Text=[ Foo is the best!])))]
|