llvm-project/clang/lib/Lex
Will Wilson db2588ab82 [MSVC] Mimic MSVC whitespace collapse for incompatible token pasting
In public MS headers for XAudio, clang would fail to generate a valid UUID due to the UUID components being combined with the '-' UUID separators. Clang would attempting to recover but would preserve the leading whitespace from the tokens after each failed paste leading to spaces creeping into the UUID and causing an error in the __declspace(uuid()) parsing.

Reference: Microsoft DirectX SDK (June 2010)\Include\XAudio2.h(51)

Resolves http://llvm.org/pr23071

llvm-svn: 235186
2015-04-17 12:43:57 +00:00
..
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
HeaderMap.cpp Make VFS and FileManager match the current MemoryBuffer API. 2014-10-26 22:44:13 +00:00
HeaderSearch.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
Lexer.cpp Use delegating ctors to reduce code duplication. NFC. 2015-03-06 14:15:57 +00:00
LiteralSupport.cpp [lex] Don't read past the end of the buffer 2015-03-29 14:11:37 +00:00
MacroArgs.cpp [c++1z] Support for u8 character literals. 2014-11-08 06:08:42 +00:00
MacroInfo.cpp Reinstate r213348, reverted in r213395, with an additional bug fix and more 2014-07-18 22:13:40 +00:00
Makefile
ModuleMap.cpp [modules] Restrict the module use-declaration to only appear in top-level 2015-03-26 22:10:01 +00:00
PPCaching.cpp Fix the build break introduced by r195799 by restoring two close 2013-11-27 01:40:12 +00:00
PPCallbacks.cpp
PPConditionalDirectiveRecord.cpp Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a 3-state enum. 2013-12-07 08:41:15 +00:00
PPDirectives.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
PPExpressions.cpp Commit patch for PR19649. Set the correct sign of wide character for literals based on underlying type of wchar_t. 2015-02-24 13:34:20 +00:00
PPLexerChange.cpp Remove superceded warning warn_forgotten_module_header 2014-11-05 16:43:18 +00:00
PPMacroExpansion.cpp [lex] Provide a valid token when __has_include is found outside of a pp directive 2015-03-29 19:05:27 +00:00
PTHLexer.cpp unique_ptrify PTHManager's PerIDCache using the newly added llvm::FreeDeleter 2014-08-29 22:04:45 +00:00
Pragma.cpp Remove many superfluous SmallString::str() calls. 2015-03-18 10:17:07 +00:00
PreprocessingRecord.cpp Implement PreprocessingRecord's and LazyVector's iterators on top of iterator_adaptor_base 2015-03-15 15:27:19 +00:00
Preprocessor.cpp [Modules] Fix crash in Preprocessor::getLastMacroWithSpelling(). 2015-03-04 16:03:07 +00:00
PreprocessorLexer.cpp Make Preprocessor::Lex non-recursive. 2013-09-19 00:41:32 +00:00
ScratchBuffer.cpp MSan told me that we actually dump the entire scratch buffer into PCH files, initialize it. 2015-04-06 20:01:49 +00:00
TokenConcatenation.cpp [c++1z] Support for u8 character literals. 2014-11-08 06:08:42 +00:00
TokenLexer.cpp [MSVC] Mimic MSVC whitespace collapse for incompatible token pasting 2015-04-17 12:43:57 +00:00
UnicodeCharSets.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00