diff options
author | Sam McCall <sam.mccall@gmail.com> | 2022-07-23 09:54:48 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2022-07-27 09:03:29 +0200 |
commit | 6bdb15fe844c428f1bf477c73a36901c84e5b5fa (patch) | |
tree | aa5fe27ae079ec36a3e15bc1096a88a19a16b748 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | aeeb174cec76ae3f9842e58c22d5f9e8502c22db (diff) | |
download | llvm-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