aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2021-10-17 07:54:48 -0400
committerAaron Ballman <aaron@aaronballman.com>2021-10-17 07:54:48 -0400
commit2edb89c746848c52964537268bf03e7906bf2542 (patch)
tree0d4d97a9e8798ed497a1dc4b1c5e8b752a0af22f /clang/lib/CodeGen/CodeGenModule.cpp
parent2e0fb007d63cf4d7979c6f6f577e6906145c7b95 (diff)
downloadllvm-2edb89c746848c52964537268bf03e7906bf2542.zip
llvm-2edb89c746848c52964537268bf03e7906bf2542.tar.gz
llvm-2edb89c746848c52964537268bf03e7906bf2542.tar.bz2
Lex arguments for __has_cpp_attribute and friends as expanded tokens
The C and C++ standards require the argument to __has_cpp_attribute and __has_c_attribute to be expanded ([cpp.cond]p5). It would make little sense to expand the argument to those operators but not expand the argument to __has_attribute and __has_declspec, so those were both also changed in this patch. Note that it might make sense for the other builtins to also expand their argument, but it wasn't as clear to me whether the behavior would be correct there, and so they were left for a future revision.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions