]> granicus.if.org Git - clang/commit
Fix whitespace before token-paste of an argument.
authorJames Y Knight <jyknight@google.com>
Thu, 4 May 2017 21:31:17 +0000 (21:31 +0000)
committerJames Y Knight <jyknight@google.com>
Thu, 4 May 2017 21:31:17 +0000 (21:31 +0000)
commitea3a0ef86d3f4d8f859f9eca4ef97134484c2610
tree44df7e7d13265a1ba57b737f20aeaf8c4f96dae8
parent16025ddd308e5d93a2190e91046e85d56191170b
Fix whitespace before token-paste of an argument.

The whitespace should come from the argument name in the macro
expansion, rather than from the token passed to the macro (same as it
does when not pasting).

Added a new test case for the change in behavior to stringize_space.c.

FileCheck'ized macro_paste_commaext.c, tweaked the test case, and
added a comment; no behavioral change to this test.

Differential Revision: https://reviews.llvm.org/D30427

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