Skip to content

Commit

Permalink
[clang][cli] Simplify repetitive macro invocations
Browse files Browse the repository at this point in the history
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. It (among other things) correctly expands `__VA_ARGS__` (see https://learn.microsoft.com/en-us/cpp/preprocessor/preprocessor-experimental-overview?view=msvc-170#macro-arguments-are-unpacked). This enables us to get rid of some repetitive boilerplate in Clang's command-line parser/generator.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D135128
  • Loading branch information
jansvoboda11 committed Feb 8, 2023
1 parent 86b4d86 commit ea2c144
Showing 1 changed file with 56 additions and 197 deletions.
Loading

0 comments on commit ea2c144

Please sign in to comment.