clang-1/lib/Lex
Douglas Gregor 50f6af7a6d Introduce optional "Invalid" parameters to routines that invoke the
SourceManager's getBuffer() and, therefore, could fail, along with
Preprocessor::getSpelling(). Use the Invalid parameters in the literal
parsers (string, floating point, integral, character) to make them
robust against errors that stem from, e.g., PCH files that are not
consistent with the underlying file system.

I still need to audit every use caller to all of these routines, to
determine which ones need specific handling of error conditions.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98608 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-16 05:20:39 +00:00
..
CMakeLists.txt Lexically order files in CMakeLists.txt files. 2009-07-15 21:08:41 +00:00
HeaderMap.cpp Simplify code. No functionality change. 2010-01-10 09:51:00 +00:00
HeaderSearch.cpp stringref'ize a bunch of filename handling logic. Much 2010-01-10 01:35:12 +00:00
Lexer.cpp Give SourceManager a Diagnostic object with which to report errors, 2010-03-16 00:06:06 +00:00
LiteralSupport.cpp Introduce optional "Invalid" parameters to routines that invoke the 2010-03-16 05:20:39 +00:00
MacroArgs.cpp use best-fit instead of first-fit when reusing a MacroArgs object, 2009-12-28 06:36:46 +00:00
MacroArgs.h The PreExpArgTokens array is indexed with an argument #, 2009-12-28 06:17:16 +00:00
MacroInfo.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
Makefile Allow users to set CPPFLAGS and CXXFLAGS on the make command line. 2010-03-12 22:55:16 +00:00
PPCaching.cpp When placing an annotation token over an existing annotation token, make sure that the new token's range extends to the end of the old token. Assert that in AnnotateCachedTokens. Fixes PR6248. 2010-02-08 19:35:18 +00:00
PPDirectives.cpp Use SmallString instead of SmallVector 2010-03-13 10:17:05 +00:00
PPExpressions.cpp Introduce optional "Invalid" parameters to routines that invoke the 2010-03-16 05:20:39 +00:00
PPLexerChange.cpp Use SourceManager's Diagnostic object for all file-reading errors, 2010-03-16 00:35:39 +00:00
PPMacroExpansion.cpp Augment __has_feature to report that Clang supports adding attribute 'unused' 2010-03-05 22:43:32 +00:00
PTHLexer.cpp Switch over IdentifierInfoLookup to StringRef 2010-03-12 08:23:34 +00:00
Pragma.cpp Add an overload of Preprocessor::getSpelling which takes a SmallVector and 2010-02-27 13:44:12 +00:00
Preprocessor.cpp Introduce optional "Invalid" parameters to routines that invoke the 2010-03-16 05:20:39 +00:00
PreprocessorLexer.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
ScratchBuffer.cpp Remove tabs, and whitespace cleanups. 2009-09-09 15:08:12 +00:00
TokenConcatenation.cpp Move clients to use IdentifierInfo::getNameStart() instead of getName() 2009-10-18 20:26:12 +00:00
TokenLexer.cpp Give SourceManager a Diagnostic object with which to report errors, 2010-03-16 00:06:06 +00:00