llvm-project/clang/lib/StaticAnalyzer/Core
Reid Kleckner e08464fb45 Avoid including FileManager.h from SourceManager.h
Most clients of SourceManager.h need to do things like turning source
locations into file & line number pairs, but this doesn't require
bringing in FileManager.h and LLVM's FS headers.

The main code change here is to sink SM::createFileID into the cpp file.
I reason that this is not performance critical because it doesn't happen
on the diagnostic path, it happens along the paths of macro expansion
(could be hot) and new includes (less hot).

Saves some includes:
    309 -    /usr/local/google/home/rnk/llvm-project/clang/include/clang/Basic/FileManager.h
    272 -    /usr/local/google/home/rnk/llvm-project/clang/include/clang/Basic/FileSystemOptions.h
    271 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/VirtualFileSystem.h
    267 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/FileSystem.h
    266 -    /usr/local/google/home/rnk/llvm-project/llvm/include/llvm/Support/Chrono.h

Differential Revision: https://reviews.llvm.org/D75406
2020-03-11 13:53:12 -07:00
..
APSIntType.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AnalysisManager.cpp [analyzer] CheckerContext: Make the Preprocessor available 2020-01-30 17:05:52 +01:00
AnalyzerOptions.cpp Convert a reachable llvm_unreachable into an assert. 2020-03-10 14:22:21 -04:00
BasicValueFactory.cpp [cxx2a] P1236R1: the validity of a left shift does not depend on the 2019-06-25 01:45:26 +00:00
BlockCounter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BugReporter.cpp [analyzer] Assign truly stable identifiers to exploded nodes. 2019-10-17 23:10:09 +00:00
BugReporterVisitors.cpp [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CMakeLists.txt [analyzer] DynamicSize: Remove 'getExtent()' from regions 2020-01-30 16:05:18 +01:00
CallEvent.cpp [analyzer] Add support for CXXInheritedCtorInitExpr. 2020-02-25 18:37:23 +03:00
Checker.cpp [analyzer][NFC] Fix inconsistent references to checkers as "checks" 2019-09-12 19:09:24 +00:00
CheckerContext.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CheckerHelpers.cpp [analyzer] StdLibraryFunctionsChecker: Use platform dependent EOF and UCharMax 2020-02-13 13:51:51 +01:00
CheckerManager.cpp [Analyzer] Mark constant member functions const in CheckerManager 2020-03-09 14:11:30 +01:00
CommonBugCategories.cpp [analyzer] CERT: POS34-C 2020-02-19 18:12:19 +01:00
ConstraintManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CoreEngine.cpp [Analyzer][NFC] Change parameter of NoteTag lambdas to PathSensitiveBugReport 2020-03-10 11:30:28 +01:00
DynamicSize.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
DynamicType.cpp [analyzer] CastValueChecker: Provide DynamicTypeMap with pointer types only. 2019-08-23 03:24:01 +00:00
Environment.cpp [analyzer] pr43036: Fix support for operator 'sizeof...'. 2019-08-28 18:44:35 +00:00
ExplodedGraph.cpp [analyzer] Assign truly stable identifiers to exploded nodes. 2019-10-17 23:10:09 +00:00
ExprEngine.cpp [OPENMP50]Add basic support for depobj construct. 2020-03-02 13:10:32 -05:00
ExprEngineC.cpp [analyzer] Escape symbols conjured into specific regions during a conservative EvalCall 2019-12-11 11:44:10 -08:00
ExprEngineCXX.cpp [analyzer] Add support for CXXInheritedCtorInitExpr. 2020-02-25 18:37:23 +03:00
ExprEngineCallAndReturn.cpp [analyzer] Add support for CXXInheritedCtorInitExpr. 2020-02-25 18:37:23 +03:00
ExprEngineObjC.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FunctionSummary.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
HTMLDiagnostics.cpp [analyzer] Fix a couple of bugs in HTML report generation. 2020-02-05 17:16:38 +03:00
IssueHash.cpp Make SourceManager::createFileID(UnownedTag, ...) take a const llvm::MemoryBuffer* 2019-04-04 21:06:41 +00:00
LoopUnrolling.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
LoopWidening.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MemRegion.cpp [analyzer] AnalysisDeclContext: Refactor and documentation 2020-03-04 07:06:54 +01:00
PlistDiagnostics.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
PrettyStackTraceLocationContext.h [analyzer] print() JSONify: Environment implementation 2019-05-29 15:36:58 +00:00
ProgramState.cpp Revert "[analyzer] Keep track of escaped locals" 2019-12-10 16:42:03 -08:00
RangeConstraintManager.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
RangedConstraintManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RegionStore.cpp [analyzer] DynamicSize: Remove 'getSizeInElements()' from store 2020-01-30 16:51:48 +01:00
SMTConstraintManager.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SValBuilder.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SVals.cpp [analyzer] print() JSONify: SVal implementation 2019-05-29 18:38:52 +00:00
SarifDiagnostics.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
SimpleConstraintManager.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SimpleSValBuilder.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
Store.cpp [analysis] Re-discard type sugar when casting values retrieved from the Store. 2019-12-18 18:00:57 -08:00
SubEngine.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SymbolManager.cpp [analyzer] Add support for CXXInheritedCtorInitExpr. 2020-02-25 18:37:23 +03:00
WorkList.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00