diff options
author | Richard Smith <richard@metafoo.co.uk> | 2021-01-27 13:14:02 -0800 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2021-01-27 13:34:15 -0800 |
commit | 5dfa37a76153f2a18ac7fe30721cc1332b672ea2 (patch) | |
tree | 91c94482bc0541344649fe7ddf33a976877af197 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 44f792966e0f2935ea9e0ce96a4f35e01bfe6b61 (diff) | |
download | llvm-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