aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
AgeCommit message (Expand)AuthorFilesLines
2017-06-29Factor out a functionality from isBeforeInTranslationUnitGabor Horvath1-37/+48
2017-06-26Remove some redundant setup when preprocessing .pcm files.Richard Smith1-9/+0
2017-06-05Fix memory leak exposed by r304726.Richard Smith1-5/+7
2017-06-05Rather than rejecting attempts to run preprocessor-only actions on AST files,Richard Smith1-0/+35
2017-05-22Give files from #line the characteristics of the current fileReid Kleckner1-77/+16
2017-04-06[Basic] getColumnNumber returns location of CR+LF on WindowsChih-Hung Hsieh1-2/+11
2016-10-18Drop a redundant ".get()" call (NFC)Vedant Kumar1-1/+1
2016-10-18[Basic] unique_ptr-ify SourceManager::MacroArgsCacheMap (NFC)Vedant Kumar1-9/+6
2016-10-01Use StringRef for MemoryBuffer identifier API (NFC)Mehdi Amini1-12/+12
2016-07-18[NFC] Header cleanupMehdi Amini1-1/+0
2016-04-28One more fix for use of invalid PresumedLocs missed by r267914.Richard Smith1-2/+3
2016-04-28Fix use of uninitialized value exposed by r267802. Accessors of an invalidRichard Smith1-3/+5
2016-02-18Remove use of builtin comma operator.Richard Trieu1-4/+8
2016-01-28Fix isBeforeInTranslationUnit to not abort on macros defined in cmdline.Yury Gribov1-0/+8
2016-01-28Small refactor in isBeforeInTranslationUnit.Yury Gribov1-6/+6
2015-12-01[analyzer] Fix IssueHash generation.Gabor Horvath1-1/+1
2015-11-26[modules] Refactor handling of -fmodules-embed-*. Track this properly ratherRichard Smith1-5/+3
2015-11-24[modules] Add -cc1 flag -fmodules-embed-all-files.Richard Smith1-1/+2
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