]> granicus.if.org Git - clang/commit
[preprocessor] In Preprocessor::CachingLex() check whether there were more tokens
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 4 Apr 2012 02:57:01 +0000 (02:57 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 4 Apr 2012 02:57:01 +0000 (02:57 +0000)
commita06642a3a3a8a9c82d6c636cd3f2c18c4fac66c4
tree501ef0aaa02065df28ddbd7a85608d12eab50ee5
parente14ba2cec3807df892917171b590bac25b779b46
[preprocessor] In Preprocessor::CachingLex() check whether there were more tokens
cached during the non-cached lex, otherwise we are going to drop them.

Fixes a bogus "_Pragma takes a parenthesized string literal" error when
expanding consecutive _Pragmas in a macro argument.

Part of rdar://11168596

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153994 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPCaching.cpp
test/Preprocessor/_Pragma-in-macro-arg.c