File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,7 @@ class alignas(void *) Stmt {
109109
110110 // ===--- Statement bitfields classes ---===//
111111
112- enum { NumStmtBits = 9 };
113-
114- #define STMT (CLASS, PARENT )
115- #define STMT_RANGE (BASE, FIRST, LAST )
116- #define LAST_STMT_RANGE (BASE, FIRST, LAST ) \
117- static_assert (llvm::isUInt<NumStmtBits>(StmtClass::LAST##Class), \
118- " The number of 'StmtClass'es is strictly bound " \
119- " by a bitfield of width NumStmtBits" );
120- #define ABSTRACT_STMT (STMT )
121- #include " clang/AST/StmtNodes.inc"
112+ #define NumStmtBits 9
122113
123114 class StmtBitfields {
124115 friend class ASTStmtReader ;
Original file line number Diff line number Diff line change 4747
4848using namespace clang ;
4949
50+ #define STMT (CLASS, PARENT )
51+ #define STMT_RANGE (BASE, FIRST, LAST )
52+ #define LAST_STMT_RANGE (BASE, FIRST, LAST ) \
53+ static_assert (llvm::isUInt<NumStmtBits>(Stmt::StmtClass::LAST##Class), \
54+ "The number of 'StmtClass'es is strictly bound " \
55+ "by a bitfield of width NumStmtBits");
56+ #define ABSTRACT_STMT (STMT )
57+ #include " clang/AST/StmtNodes.inc"
58+
5059static struct StmtClassNameTable {
5160 const char *Name;
5261 unsigned Counter;
You can’t perform that action at this time.
0 commit comments