Rafael Espindola
|
3dadc85330
Convert a use of status with llvm::sys::fs::getUniqueID.
|
12 yıl önce |
Argyrios Kyrtzidis
|
4ff3225c1f
Thread the 'Invalid' out parameter through SourceManager::getSLocEntry() and callees of SourceManager::getSLocEntryByID().
|
12 yıl önce |
Argyrios Kyrtzidis
|
45e1f0e3e7
Make isBeforeInTranslationUnit consistent in the face of failures to get a valid FileID (V2).
|
12 yıl önce |
Argyrios Kyrtzidis
|
ecdbbfa1cd
Make isBeforeInTranslationUnit consistent in the face of failures to get a valid FileID.
|
12 yıl önce |
Argyrios Kyrtzidis
|
5b8e132a9a
Add some safety checks in a couple of SourceManager functions.
|
12 yıl önce |
Michael J. Spencer
|
9779fdd271
Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.
|
12 yıl önce |
Argyrios Kyrtzidis
|
c50c6ff49a
[Lexer] Improve Lexer::getSourceText() when the given range deals with function macro arguments.
|
12 yıl önce |
Argyrios Kyrtzidis
|
ecc65238c9
Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included/expanded in" decomposed location of the given FileID.
|
12 yıl önce |
Argyrios Kyrtzidis
|
838a920fda
Add one more sanity check in SourceManager::getFileIDLoaded().
|
12 yıl önce |
Argyrios Kyrtzidis
|
7db4bb9226
In SourceManager::getFileIDLoaded(), add some sanity checks to make sure we don't enter an infinite loop.
|
12 yıl önce |
Ted Kremenek
|
2564f811ba
Refine SourceManager's isBeforeInTranslationUnit() cache to have more entries.
|
12 yıl önce |
Benjamin Kramer
|
f512acee01
Replace some typically large vectors with SmallVector.
|
12 yıl önce |
David Blaikie
|
66874fb18a
Use None rather than Optional<T>() where possible.
|
12 yıl önce |
David Blaikie
|
dc84cd5efd
Include llvm::Optional in clang/Basic/LLVM.h
|
12 yıl önce |
Matt Beaumont-Gay
|
c3cd6f7a5d
Fix -Wunused-comparison for comparisons in arguments to function-like macros.
|
12 yıl önce |
Craig Topper
|
d53c2d30cf
Don't use SourceLineCache in getColumnNumber if LastLineNoResult is past the end of the cache. Fixes PR14570.
|
12 yıl önce |
Chandler Carruth
|
55fc873017
Sort all of Clang's files under 'lib', and fix up the broken headers
|
12 yıl önce |
Richard Smith
|
62221b17c9
Add -cc1 option -fno-diagnostics-use-presumed-location, a handy mode for
|
12 yıl önce |
Argyrios Kyrtzidis
|
0872a06d1e
When associating file ranges of macro arguments with their
|
13 yıl önce |
Craig Topper
|
d9cad403c0
Teach getColumnNumber to use the line cache to get the start of the line if its on the same line as the last call to getLineNumber. Prevents needing to scan backwards for the new line. Fixes PR14106.
|
13 yıl önce |
Ted Kremenek
|
186ec9c2e6
Silence dead store warning. It is conceptually possible we will
|
13 yıl önce |
Roman Divacky
|
31ba613537
Dont cast away const needlessly. Found by gcc48 -Wcast-qual.
|
13 yıl önce |
Argyrios Kyrtzidis
|
ff398965a5
Introduce a flag in SourceManager to treat non-system source files
|
13 yıl önce |
James Dennett
|
ec221bc2a5
Documentation cleanup: Delete a duplicated/malformed doc comment.
|
13 yıl önce |
Meador Inge
|
9416d42468
Revert predefined decl tracking.
|
13 yıl önce |
Jordan Rose
|
2e413f977d
Fix the location of the fixit for -Wnewline-eof.
|
13 yıl önce |
James Dennett
|
b8950b8e11
Documentation cleanup: escaped # characters in Doxygen comments.
|
13 yıl önce |
James Dennett
|
7285a06a06
Documentation cleanup: escape # in a Doxygen comment.
|
13 yıl önce |
Douglas Gregor
|
47d9de6781
Switch LineTableInfo to use FileID instead of int for file references,
|
13 yıl önce |
Jordan Rose
|
d73ef135ba
Add pedantic warning -Wempty-translation-unit (C11 6.9p1).
|
13 yıl önce |