llvm-project/clang/lib/Tooling/Core
Reid Kleckner b36c19bc4f [AST] Remove DeclCXX.h dep on ASTContext.h
Saves only 36 includes of ASTContext.h and related headers.

There are two deps on ASTContext.h:
- C++ method overrides iterator types (TinyPtrVector)
- getting LangOptions

For #1, duplicate the iterator type, which is
TinyPtrVector<>::const_iterator.

For #2, add an out-of-line accessor to get the language options. Getting
the ASTContext from a Decl is already an out of line method that loops
over the parent DeclContexts, so if it is ever performance critical, the
proper fix is to pass the context (or LangOpts) into the predicate in
question.

Other changes are just header fixups.
2020-04-06 10:09:01 -07:00
..
CMakeLists.txt
Diagnostic.cpp [clang-tidy] Store all ranges in clang::tooling::Diagnostic 2020-02-27 19:39:42 +01:00
Lookup.cpp [AST] Remove DeclCXX.h dep on ASTContext.h 2020-04-06 10:09:01 -07:00
Replacement.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00