aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-07-23 09:54:48 +0200
committerSam McCall <sam.mccall@gmail.com>2022-07-27 09:03:29 +0200
commit6bdb15fe844c428f1bf477c73a36901c84e5b5fa (patch)
treeaa5fe27ae079ec36a3e15bc1096a88a19a16b748 /clang/lib/CodeGen/CodeGenFunction.cpp
parentaeeb174cec76ae3f9842e58c22d5f9e8502c22db (diff)
downloadllvm-6bdb15fe844c428f1bf477c73a36901c84e5b5fa.zip
llvm-6bdb15fe844c428f1bf477c73a36901c84e5b5fa.tar.gz
llvm-6bdb15fe844c428f1bf477c73a36901c84e5b5fa.tar.bz2
[pseudo] Reorganize CXX.h enums
- Place rules under rule::lhs::rhs__rhs__rhs - Change mangling of keywords to ALL_CAPS (needed to turn keywords that appear alone on RHS into valid identifiers) - Make enums implicitly convertible to underlying type (though still scoped, using alias tricks) In principle this lets us exhaustively write a switch over all rules of a NT: switch ((rule::declarator)N->rule()) { case rule::declarator::noptr_declarator: ... } In practice we don't do this anywhere yet as we're often switching over multiple nonterminal kinds at once. Differential Revision: https://reviews.llvm.org/D130414
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions