[AST] Don't include RecursiveASTVisitor.h in ASTContext.h
The untemplated implementation of getParents() doesn't need to be in a header file. RecursiveASTVisitor.h is full of repeated macro expansion. Moving this include to ASTContext.cpp speeds up compilation of LambdaMangleContext.cpp, a small C++ file with few includes, from 3.7s to 2.8s for me locally. I haven't measured a full build, but it can't hurt. I had to fix a few static analyzer files that were depending on transitive includes of C++ AST headers. Reviewers: rsmith, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D982 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184075 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/ASTContext.h 1 addition, 88 deletionsinclude/clang/AST/ASTContext.h
- lib/AST/ASTContext.cpp 95 additions, 0 deletionslib/AST/ASTContext.cpp
- lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp 1 addition, 0 deletions...taticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
- lib/StaticAnalyzer/Core/BugReporter.cpp 2 additions, 0 deletionslib/StaticAnalyzer/Core/BugReporter.cpp
Loading
Please register or sign in to comment