Rafael Espindola
|
d92e74d96e
Update for LLVM api change.
|
11 年之前 |
Rafael Espindola
|
490fd36bd1
Return a std::unique_ptr from getBufferForFile. NFC.
|
11 年之前 |
Rafael Espindola
|
0e34c9fc2b
Use std::unique_ptr to simplify this code a bit.
|
11 年之前 |
Alp Toker
|
5676ff327f
Remove unused sys/stat.h includes
|
11 年之前 |
David Blaikie
|
c77e69d500
Remove 'const' from MemoryBuffers used through the SourceManager
|
11 年之前 |
Craig Topper
|
603e37c3dd
[C++11] Use 'nullptr'.
|
11 年之前 |
Chandler Carruth
|
64729e56dc
[Allocator] Make the ContentCache object actually carry the 8-byte
|
11 年之前 |
Ted Kremenek
|
bcc82ea9f8
Remove dead code I introduced 6 years, 4 months ago in r43518.
|
11 年之前 |
Benjamin Kramer
|
ba9fd9e97e
[C++11] Replace llvm::tie with std::tie.
|
11 年之前 |
Reid Kleckner
|
26b55ea31d
Use llvm::DeleteContainerSeconds when possible
|
11 年之前 |
James Dennett
|
6f438eeb95
Fix a typo: "SLocEnty" should read "SLocEntry".
|
11 年之前 |
Aaron Ballman
|
fb21ecfa48
Adding an assert to help catch possible buffer underruns.
|
11 年之前 |
Benjamin Kramer
|
1b9c5374a3
SourceManager: Open code isInMainFile.
|
12 年之前 |
Alexander Kornienko
|
c8051e6d27
Simplified SourceManager::translateLineCol a bit.
|
12 年之前 |
Rafael Espindola
|
4488835d1c
Update for llvm api change.
|
12 年之前 |
Rafael Espindola
|
3dadc85330
Convert a use of status with llvm::sys::fs::getUniqueID.
|
12 年之前 |
Argyrios Kyrtzidis
|
4ff3225c1f
Thread the 'Invalid' out parameter through SourceManager::getSLocEntry() and callees of SourceManager::getSLocEntryByID().
|
12 年之前 |
Argyrios Kyrtzidis
|
45e1f0e3e7
Make isBeforeInTranslationUnit consistent in the face of failures to get a valid FileID (V2).
|
12 年之前 |
Argyrios Kyrtzidis
|
ecdbbfa1cd
Make isBeforeInTranslationUnit consistent in the face of failures to get a valid FileID.
|
12 年之前 |
Argyrios Kyrtzidis
|
5b8e132a9a
Add some safety checks in a couple of SourceManager functions.
|
12 年之前 |
Michael J. Spencer
|
9779fdd271
Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.
|
12 年之前 |
Argyrios Kyrtzidis
|
c50c6ff49a
[Lexer] Improve Lexer::getSourceText() when the given range deals with function macro arguments.
|
12 年之前 |
Argyrios Kyrtzidis
|
ecc65238c9
Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included/expanded in" decomposed location of the given FileID.
|
12 年之前 |
Argyrios Kyrtzidis
|
838a920fda
Add one more sanity check in SourceManager::getFileIDLoaded().
|
12 年之前 |
Argyrios Kyrtzidis
|
7db4bb9226
In SourceManager::getFileIDLoaded(), add some sanity checks to make sure we don't enter an infinite loop.
|
12 年之前 |
Ted Kremenek
|
2564f811ba
Refine SourceManager's isBeforeInTranslationUnit() cache to have more entries.
|
12 年之前 |
Benjamin Kramer
|
f512acee01
Replace some typically large vectors with SmallVector.
|
12 年之前 |
David Blaikie
|
66874fb18a
Use None rather than Optional<T>() where possible.
|
12 年之前 |
David Blaikie
|
dc84cd5efd
Include llvm::Optional in clang/Basic/LLVM.h
|
12 年之前 |
Matt Beaumont-Gay
|
c3cd6f7a5d
Fix -Wunused-comparison for comparisons in arguments to function-like macros.
|
12 年之前 |