aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/SourceManager.cpp
AgeCommit message (Expand)Author
2011-06-21Make more use of llvm::StringRef in various APIs. In particular, don'tJay Foad
2011-05-28Add a couple of helper methods in the SourceManager API, isAtStartOfMacroInst...Argyrios Kyrtzidis
2011-05-17Do some safety checks.Argyrios Kyrtzidis
2011-04-28Enhance clang_getCXTUResourceUsage() to report how much memory is used by Sou...Ted Kremenek
2011-04-20Teach SourceManager::getSLocEntry() that it can fail due to problemsDouglas Gregor
2011-04-15fix a bunch of comment typos found by codespell. Patch byChris Lattner
2011-04-09Eat the UTF-8 BOM at the beginning of a file since it's ignored anyhow.Eric Christopher
2011-03-08Add 'OverridenFilesKeepOriginalName' field in SourceManager which if true the...Argyrios Kyrtzidis
2011-03-05Currently we can only remap a file by creating a MemoryBuffer and replacing t...Argyrios Kyrtzidis
2011-02-23Switch the VerifyDiagnosticsClient to use PresumedLocs now that theyChandler Carruth
2011-02-16Fix a thinko with llvm::Optional, which is clearly the most dangerous class t...Douglas Gregor
2011-02-11Don't compare llvm::Optional<> objects directly; compare theirDouglas Gregor
2011-02-03Teach SourceManager::getLocation() how to cope with a source fileDouglas Gregor
2011-01-31Harden Lexer::GetBeginningOfToken() against bogus source locations andDouglas Gregor
2010-12-24Handle locations coming from macro instantiations properly in SourceManager::...Argyrios Kyrtzidis
2010-11-29Merge System into Support.Michael J. Spencer
2010-11-23reduce indentation and use early outs, to make it easier to readChris Lattner
2010-11-23now the FileManager has a FileSystemOpts ivar, stop threadingChris Lattner
2010-11-23Partially revert Doug's PCH validation patch (r98585).Chris Lattner
2010-11-18Refactoring of Diagnostic class.Argyrios Kyrtzidis
2010-11-18Fix a typo in the UTF-8 BOM (PR8645). Use a StringSwitch while at it.Benjamin Kramer
2010-11-03Implement -working-directory.Argyrios Kyrtzidis
2010-11-02Teach SourceManager::getPresumedLoc() how to fail gracefully if getLineNumber...Douglas Gregor
2010-10-26getOrCreateContentCache never returns null, so overrideFileContentsDan Gohman
2010-10-23Update remaining attribute macros to new style.Chandler Carruth
2010-10-05Fix handling of the 'Invalid' argument in SourceManager's methods (patch by D...Zhanyong Wan
2010-08-26Fix a typo.Dan Gohman
2010-08-18More PCH -> AST renaming.Sebastian Redl
2010-07-28Add a test case for tentative definitions in chained PCH. Fix a bug that comp...Sebastian Redl
2010-07-26Introduce basic support for loading a precompiled preamble whileDouglas Gregor
2010-05-07clean up isBeforeInTranslationUnit by factoring out some commonChris Lattner
2010-05-07reimplement the guts of SourceManager::isBeforeInTranslationUnitChris Lattner
2010-05-07start using the caching now that it appears to work!Chris Lattner
2010-05-07reimplement the caching in the SourceManager::isBeforeInTranslationUnit()Chris Lattner
2010-05-06Workaround a really serious caching bug in SourceManager::isBeforeInTranslati...Ted Kremenek
2010-04-20change FullSourceLoc to have a *const* SourceManager&, eliminatingChris Lattner
2010-04-20push some source location information down through the compiler,Chris Lattner
2010-04-20enhance sourcemgr to detect various UTF BOM's and emit a fatal errorChris Lattner
2010-04-10Disable diag::err_file_modified on Win32 completely, until someone cares to fixDaniel Dunbar
2010-04-09On Windows, disable the modification-time check for files used inDouglas Gregor
2010-03-22Introduce the notion of a single "delayed" diagnostic into theDouglas Gregor
2010-03-21Keep track of the size/modification time of each file source-locationDouglas Gregor
2010-03-19Fix a longstanding (but previously unknown) bug in the lazyDouglas Gregor
2010-03-17Check the inode in addition to size and modification time to determineDouglas Gregor
2010-03-17Use a simple diagnostic (file modified) when we detect that a file hasDouglas Gregor
2010-03-16Teach SourceManager's content cache to keep track of whether itsDouglas Gregor
2010-03-16Audit all getBuffer() callers (for both the FullSourceLoc andDouglas Gregor
2010-03-16Let SourceManager::getBufferData return StringRef instead of a pair of two co...Benjamin Kramer
2010-03-16Introduce optional "Invalid" parameters to routines that invoke theDouglas Gregor
2010-03-16Use SourceManager's Diagnostic object for all file-reading errors,Douglas Gregor