]> granicus.if.org Git - clang/commit
[Preprocessor] When checking if we can concatenate two tokens, check
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Jan 2013 20:28:24 +0000 (20:28 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Jan 2013 20:28:24 +0000 (20:28 +0000)
commitfcf896078e58aeb7adecb1a0ae5c8e0052b17f9f
tree279654befd48f5e97275c1ebb820b9339152cfe9
parenta16355c31878403443f99077cc8df8318457faf5
[Preprocessor] When checking if we can concatenate two tokens, check
if they were already concatenated in source using the spelling locations
even if they came from a macro expansion.

This fixes an issue where a GUID passed as macro argument ends up
malformed after preprocessing because we added spaces inside it.

rdar://13016645

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173826 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/TokenConcatenation.cpp
test/Preprocessor/output_paste_avoid.c