aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
AgeCommit message (Expand)AuthorFilesLines
2015-11-12[Basic] Fix DRY violation, just call getLineTable() (NFC)Vedant Kumar1-8/+3
2015-10-20Roll-back r250822.Angel Garcia Gomez1-1/+1
2015-10-20Apply modernize-use-default to clang.Angel Garcia Gomez1-1/+1
2015-10-03Replace double negation of !FileID.isInvalid() with FileID.isValid().Yaron Keren1-3/+3
2015-09-24Improve the printing of ranges when macros are involved.Richard Trieu1-2/+7
2015-08-14[modules] Add an experimental -cc1 feature to embed the contents of an inputRichard Smith1-0/+7
2015-08-13Add SourceManager::dump() to dump the current set of SLocEntries.Richard Smith1-0/+57
2015-08-12[modules] If loading a .pcm file would cause us to run out of source location...Richard Smith1-1/+3
2015-04-06Prefer uninitialized memory for scratch space.Benjamin Kramer1-2/+2
2015-03-16Global inline assembler blocks are merged before parsing, so no specificJoerg Sonnenberger1-14/+25
2014-11-19Standardize on StringMap::insert, removing uses of StringMap::GetOrCreateValue.David Blaikie1-11/+5
2014-10-26Make VFS and FileManager match the current MemoryBuffer API.Benjamin Kramer1-10/+11
2014-08-30Fix some cases where StringRef was being passed by const reference. Remove co...Craig Topper1-1/+1
2014-08-29unique_ptrify SourceManager::createFileIDDavid Blaikie1-3/+3
2014-08-27Update for LLVM api change.Rafael Espindola1-4/+4
2014-08-26Return a std::unique_ptr from getBufferForFile. NFC.Rafael Espindola1-3/+3
2014-08-18Use std::unique_ptr to simplify this code a bit.Rafael Espindola1-11/+7
2014-07-07Remove unused sys/stat.h includesAlp Toker1-1/+0
2014-06-27Remove 'const' from MemoryBuffers used through the SourceManagerDavid Blaikie1-26/+21
2014-05-08[C++11] Use 'nullptr'.Craig Topper1-17/+18
2014-04-15[Allocator] Make the ContentCache object actually carry the 8-byteChandler Carruth1-12/+4
2014-03-06Remove dead code I introduced 6 years, 4 months ago in r43518.Ted Kremenek1-25/+0
2014-03-02[C++11] Replace llvm::tie with std::tie.Benjamin Kramer1-2/+2
2014-02-19Use llvm::DeleteContainerSeconds when possibleReid Kleckner1-4/+1
2013-11-24Fix a typo: "SLocEnty" should read "SLocEntry".James Dennett1-1/+1
2013-11-18Adding an assert to help catch possible buffer underruns.Aaron Ballman1-0/+4
2013-09-27SourceManager: Open code isInMainFile.Benjamin Kramer1-0/+30
2013-07-29Simplified SourceManager::translateLineCol a bit.Alexander Kornienko1-6/+3
2013-07-29Update for llvm api change.Rafael Espindola1-5/+8
2013-07-29Convert a use of status with llvm::sys::fs::getUniqueID.Rafael Espindola1-17/+16
2013-06-07Thread the 'Invalid' out parameter through SourceManager::getSLocEntry() and ...Argyrios Kyrtzidis1-1/+4
2013-05-25Make isBeforeInTranslationUnit consistent in the face of failures to get a va...Argyrios Kyrtzidis1-1/+1
2013-05-24Make isBeforeInTranslationUnit consistent in the face of failures to get a va...Argyrios Kyrtzidis1-1/+4
2013-05-24Add some safety checks in a couple of SourceManager functions.Argyrios Kyrtzidis1-5/+14
2013-05-24Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.Michael J. Spencer1-1/+1
2013-05-16[Lexer] Improve Lexer::getSourceText() when the given range deals with functi...Argyrios Kyrtzidis1-0/+108
2013-04-13Introduce SourceManager::getDecomposedIncludedLoc, that returns the "included...Argyrios Kyrtzidis1-11/+30
2013-03-01Add one more sanity check in SourceManager::getFileIDLoaded().Argyrios Kyrtzidis1-0/+5
2013-03-01In SourceManager::getFileIDLoaded(), add some sanity checks to make sure we d...Argyrios Kyrtzidis1-0/+7
2013-02-27Refine SourceManager's isBeforeInTranslationUnit() cache to have more entries.Ted Kremenek1-1/+31
2013-02-22Replace some typically large vectors with SmallVector.Benjamin Kramer1-1/+1
2013-02-21Use None rather than Optional<T>() where possible.David Blaikie1-2/+2
2013-02-20Include llvm::Optional in clang/Basic/LLVM.hDavid Blaikie1-8/+7
2013-01-12Fix -Wunused-comparison for comparisons in arguments to function-like macros.Matt Beaumont-Gay1-2/+9
2012-12-16Don't use SourceLineCache in getColumnNumber if LastLineNoResult is past the ...Craig Topper1-1/+2
2012-12-04Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth1-5/+5
2012-11-14Add -cc1 option -fno-diagnostics-use-presumed-location, a handy mode forRichard Smith1-2/+3
2012-10-20When associating file ranges of macro arguments with theirArgyrios Kyrtzidis1-37/+82
2012-10-19Teach getColumnNumber to use the line cache to get the start of the line if i...Craig Topper1-0/+11
2012-10-12Silence dead store warning. It is conceptually possible we willTed Kremenek1-0/+1