]> granicus.if.org Git - clang/commit
move token paste poisoning diagnostics to after the instantiation loc
authorChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 20:29:42 +0000 (20:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Apr 2009 20:29:42 +0000 (20:29 +0000)
commit332ee08e2fe78fde281e0868ec039b546cb6e0f4
tree7f9edd49ac0a8e977449dcc1aa2dc01c67fc9587
parentf22f77f4e9149499a987e2363a0be01d0bc2d426
move token paste poisoning diagnostics to after the instantiation loc
for a token is set, this makes the diagnostic "expanded from stack" work
for this diagnostic.  Add a testcase for PR3918.

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