This is an archive of the discontinued LLVM Phabricator instance.

Fix whitespace before token-paste of an argument.
ClosedPublic

Authored by jyknight on Feb 27 2017, 12:36 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

jyknight created this revision.Feb 27 2017, 12:36 PM
rsmith accepted this revision.Apr 27 2017, 7:50 PM

LGTM

test/Preprocessor/macro_paste_commaext.c
4 ↗(On Diff #89918)

Typo (too many 'e's in "preceding").

This revision is now accepted and ready to land.Apr 27 2017, 7:50 PM
This revision was automatically updated to reflect the committed changes.