This is an archive of the discontinued LLVM Phabricator instance.

[Preprocessor] Improve MSVC comma-elision before an empty expansion.
AbandonedPublic

Authored by erichkeane on Apr 13 2017, 2:11 PM.

Details

Reviewers
rnk
rsmith
Summary

We correctly implemented when VA_ARGS expanded to nothing, however a macro that is an empty expansion ALSO omits the comma (with a few small infuriating examples). This patch strives to correct the rest of the behaviors.

Diff Detail