[PATCH] D135128: [clang][cli] Remove repetitive macro invocations
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 3 22:13:46 PDT 2022
jansvoboda11 created this revision.
Herald added a subscriber: ributzka.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Since we now only support Visual Studio 2019 16.7 and newer, we're able to use the /Zc:preprocessor flag that turns on the standards-conforming preprocessor that (among other things) correctly expands `__VA_ARGS__`. This enables us to get rid of some repetitive boilerplate in Clang's command-line parser.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135128
Files:
clang/lib/Frontend/CompilerInvocation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135128.464887.patch
Type: text/x-patch
Size: 26931 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221004/7d147014/attachment-0001.bin>
More information about the cfe-commits
mailing list