[Syntax] Tablegen Sequence classes. NFC
authorSam McCall <sam.mccall@gmail.com>
Tue, 3 Nov 2020 02:25:16 +0000 (03:25 +0100)
committerSam McCall <sam.mccall@gmail.com>
Wed, 11 Nov 2020 15:29:19 +0000 (16:29 +0100)
commitea4d24c899ea17ee6bd4a84eff0192503c12a5b6
tree49591ed25b730872330ae90a686829f83d9b9ec8
parent418f18c6cdfe56e77669e2f4d3df3bca1020156d
[Syntax] Tablegen Sequence classes. NFC

Similar to the previous patch, this doesn't convert *all* the classes that
could be converted. It also doesn't enforce any new invariants etc.

It *does* include some data we don't use yet: specific token types that are
allowed and optional/required status of sequence items. (Similar to Dmitri's
prototype). I think these are easier to add as we go than later, and serve
a useful documentation purpose.

Differential Revision: https://reviews.llvm.org/D90659
clang/include/clang/Tooling/Syntax/Nodes.h
clang/include/clang/Tooling/Syntax/Nodes.td
clang/include/clang/Tooling/Syntax/Syntax.td
clang/lib/Tooling/Syntax/Nodes.cpp
clang/utils/TableGen/ClangSyntaxEmitter.cpp