I believe this is a bug affecting performance when compiling with -Wdocumentation.
In Sema::ActOnDocumentable we're checking whether there are any comments unattached to declaration at the end of comment list whenever we encounter new documentable declaration.
Since this property of RawComment was never set we were trying to find comments every time and that involves at least a couple expensive SourceLocation decompositions.
Details
Details
- Reviewers
Bigcheese gribozavr arphaman - Commits
- rZORGa0f596fe800b: [clang][ASTContext] Call setAttached for comments attached to a declaration
rZORGd032bff903eb: [clang][ASTContext] Call setAttached for comments attached to a declaration
rGa0f596fe800b: [clang][ASTContext] Call setAttached for comments attached to a declaration
rGd032bff903eb: [clang][ASTContext] Call setAttached for comments attached to a declaration
rG1652d8140191: [clang][ASTContext] Call setAttached for comments attached to a declaration
rC360607: [clang][ASTContext] Call setAttached for comments attached to a declaration
rL360607: [clang][ASTContext] Call setAttached for comments attached to a declaration
Diff Detail
Diff Detail
- Repository
- rL LLVM