forked from OSchip/llvm-project
a0e30914f8
The class `SymbolOccurrences` can store either a single `SourceRange` in-place or multiple `SourceRanges` on the heap. In the latter case the number of source ranges is stored in the internal representation of the beginning `SourceLocation` of the in-place `SourceRange` object. This change gets rid of such hack by placing `SourceRange` in a union which holds either a valid `SourceRange` or an `unsigned int` (a number of ranges). The change also adds `static_assert`s that check that `SourceRange` and `SourceLocation` are trivially destructible (this is required for the current patch and for D94237 which has already been committed). Reviewed By: MarkMurrayARM, simon_tatham Differential Revision: https://reviews.llvm.org/D94599 |
||
---|---|---|
.. | ||
ASTDiff | ||
Core | ||
DependencyScanning | ||
Inclusions | ||
Refactoring | ||
Syntax | ||
Transformer | ||
AllTUsExecution.cpp | ||
ArgumentsAdjusters.cpp | ||
CMakeLists.txt | ||
CommonOptionsParser.cpp | ||
CompilationDatabase.cpp | ||
Execution.cpp | ||
ExpandResponseFilesCompilationDatabase.cpp | ||
FileMatchTrie.cpp | ||
FixIt.cpp | ||
GuessTargetAndModeCompilationDatabase.cpp | ||
InterpolatingCompilationDatabase.cpp | ||
JSONCompilationDatabase.cpp | ||
Refactoring.cpp | ||
RefactoringCallbacks.cpp | ||
StandaloneExecution.cpp | ||
Tooling.cpp |