[PATCH] D30427: Fix whitespace before token-paste of an argument.

James Y Knight via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 27 12:36:17 PST 2017


jyknight created this revision.

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.


https://reviews.llvm.org/D30427

Files:
  lib/Lex/TokenLexer.cpp
  test/Preprocessor/macro_paste_commaext.c
  test/Preprocessor/stringize_space.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30427.89918.patch
Type: text/x-patch
Size: 4749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170227/393ae882/attachment.bin>


More information about the cfe-commits mailing list