aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2021-01-27 13:14:02 -0800
committerRichard Smith <richard@metafoo.co.uk>2021-01-27 13:34:15 -0800
commit5dfa37a76153f2a18ac7fe30721cc1332b672ea2 (patch)
tree91c94482bc0541344649fe7ddf33a976877af197 /clang/lib/Frontend/CompilerInvocation.cpp
parent44f792966e0f2935ea9e0ce96a4f35e01bfe6b61 (diff)
downloadllvm-5dfa37a76153f2a18ac7fe30721cc1332b672ea2.zip
llvm-5dfa37a76153f2a18ac7fe30721cc1332b672ea2.tar.gz
llvm-5dfa37a76153f2a18ac7fe30721cc1332b672ea2.tar.bz2
Don't allow __VA_OPT__ to be detected by #ifdef.
More study has discovered this to not actually be useful: because current C++20 implementations reject `#ifdef __VA_OPT__`, this can't really be used as a feature-test mechanism. And it's not too hard to detect __VA_OPT__ without this, for example: #define THIRD_ARG(a, b, c, ...) c #define HAS_VA_OPT(...) THIRD_ARG(__VA_OPT__(,), 1, 0, ) #if HAS_VA_OPT(?) Partially reverts 0436ec2128c9775ba13b0308937238fc79673fdd.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions