aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
AgeCommit message (Expand)AuthorFilesLines
2020-10-23SourceManager: Make LastLineNoContentCache and ContentCache::SourceLineCache ...Duncan P. N. Exon Smith1-10/+9
2020-10-23SourceManager: Encapsulate line number mapping into SrcMgr::LineOffsetMappingDuncan P. N. Exon Smith1-18/+27
2020-10-23SourceManager: Clarify that FileInfo always has a ContentCache, NFCDuncan P. N. Exon Smith1-40/+35
2020-10-22SourceManager: Remove a redundant nullptr check in getNonBuiltinFilenameForID...Duncan P. N. Exon Smith1-1/+1
2020-10-22SourceManager: getFileEntryRefForID => getNonBuiltinFilenameForID, NFCDuncan P. N. Exon Smith1-2/+3
2020-10-22SourceManager: Change SourceManager::isMainFile to take a FileEntry, NFCDuncan P. N. Exon Smith1-5/+4
2020-10-22SourceManager: Factor out helpers for common SLocEntry lookup pattern, NFCDuncan P. N. Exon Smith1-31/+18
2020-10-22[SourceManager] Avoid copying SLocEntry in computeMacroArgsCacheJan Korous1-1/+1
2020-10-22[SourceManager] Skip module maps when searching files for macro argumentsJan Korous1-1/+6
2020-10-22clang/Basic: Remove ContentCache::getRawBuffer, NFCDuncan P. N. Exon Smith1-7/+5
2020-10-20SourceManager: Simplify early returns in ContentCache::getBufferOrNone, NFCDuncan P. N. Exon Smith1-4/+6
2020-10-20ContentCache: Simplify by always owning the MemoryBufferDuncan P. N. Exon Smith1-40/+20
2020-10-20clang/Basic: ContentCache::InvalidFlag => ContentCache::IsBufferInvalid, NFCDuncan P. N. Exon Smith1-5/+5
2020-10-20clang/Basic: Remove SourceManager::getBufferPointer, NFCDuncan P. N. Exon Smith1-16/+8
2020-10-20clang/Basic: Replace SourceManager::getMemoryBufferForFile, NFCDuncan P. N. Exon Smith1-6/+3
2020-10-20clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceMa...Duncan P. N. Exon Smith1-11/+8
2020-10-14clang/Basic: Stop using SourceManager::getBuffer, NFCDuncan P. N. Exon Smith1-7/+9
2020-10-14clang/Basic: Replace ContentCache::getBuffer with Optional semanticsDuncan P. N. Exon Smith1-64/+66
2020-09-15[SourceManager] Explicitly check for potential iterator underflowJan Korous1-0/+5
2020-06-29Reland "[clang][SourceManager] cache Macro Expansions""Nick Desaulniers1-14/+6
2020-06-29Revert "[clang][SourceManager] cache Macro Expansions"Nick Desaulniers1-4/+10
2020-06-26[clang][SourceManager] cache Macro ExpansionsNick Desaulniers1-10/+4
2020-06-26[SourceManager] don't check invalid param of getLocalSLocEntry()Nick Desaulniers1-9/+2
2020-06-25[Clang][SourceManager] optimize getFileIDLocal()Nick Desaulniers1-3/+2
2020-05-14[clang][Preprocessor] Replace the slow translateFile call by a new, faster is...Alex Lorenz1-0/+8
2020-04-22[clang] Make sure argument expansion locations are correct in presence of pre...Kadir Cetinkaya1-8/+16
2020-03-11Avoid including FileManager.h from SourceManager.hReid Kleckner1-2/+85
2020-01-24Detect source location overflow due includesDiogo Sampaio1-4/+6
2020-01-10[clang] Fix out-of-bounds memory access in ComputeLineNumbersJan Korous1-13/+8
2019-10-24[clang-format] Remove duplciate code from Invalid BOM detectionpaulhoad1-14/+24
2019-08-30ASTReader: Bypass overridden files when reading PCHsDuncan P. N. Exon Smith1-10/+12
2019-08-26ContentCache: Drop getBuffer's dependency on SourceManagerDuncan P. N. Exon Smith1-13/+11
2019-08-22Introduce FileEntryRef and use it when handling includes to report correct de...Alex Lorenz1-10/+9
2019-08-21NFCI: Simplify SourceManager::translateFile by removing code path that should...Alex Lorenz1-107/+21
2019-08-14[Clang] Migrate llvm::make_unique to std::make_uniqueJonas Devlieghere1-5/+5
2019-08-01[clang] Adopt new FileManager error-returning APIsHarlan Haskins1-1/+1
2019-07-15Use a unique_ptr instead of manual memory management for LineTableNico Weber1-3/+1
2019-07-03Fix MSVC "signed/unsigned mismatch" warning. NFCI.Simon Pilgrim1-1/+2
2019-07-03Change std::{lower,upper}_bound to llvm::{lower,upper}_bound or llvm::partiti...Fangrui Song1-3/+3
2019-06-21PR42301: Abort cleanly if we encounter a huge source file rather thanRichard Smith1-0/+25
2019-05-21[DebugInfo] Don't emit checksums when compiling a preprocessed CPPAlexandre Ganea1-2/+7
2019-05-10[Preamble] Stop circular inclusion of main file when building preambleNikolai Kosjar1-1/+1
2019-05-08[clang] Fix a bug that reports UTF32 (LE) files as UTF16 (LE) onesOwen Pan1-3/+3
2019-04-04Make SourceManager::createFileID(UnownedTag, ...) take a const llvm::MemoryBu...Nico Weber1-15/+17
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth1-4/+3
2018-12-10ComputeLineNumbers: delete SSE2 vectorizationFangrui Song1-56/+13
2018-12-09SourceManager: insert(make_pair(..)) -> try_emplace. NFCFangrui Song1-5/+2
2018-10-10Lift VFS from clang to llvm (NFC)Jonas Devlieghere1-2/+2
2018-07-30Remove trailing spaceFangrui Song1-32/+32
2018-05-09Add SourceManagerForFile helper which sets up SourceManager and dependencies ...Eric Liu1-0/+26