Skip to content

Commit 55120f7

Browse files
committed
[Syntax] Add minimal TableGen for syntax nodes. NFC
So far, only used to generate Kind and implement classof(). My plan is to have this general-purpose Nodes.inc in the style of AST DeclNodes.inc etc, and additionally a special-purpose backend generating the actual class definitions. But baby steps... Differential Revision: https://reviews.llvm.org/D90540
1 parent 0f62f05 commit 55120f7

File tree

11 files changed

+376
-326
lines changed

11 files changed

+376
-326
lines changed

clang/include/clang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ add_subdirectory(Parse)
55
add_subdirectory(Sema)
66
add_subdirectory(Serialization)
77
add_subdirectory(StaticAnalyzer/Checkers)
8+
add_subdirectory(Tooling/Syntax)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
clang_tablegen(Nodes.inc -gen-clang-syntax-node-list
2+
SOURCE Nodes.td
3+
TARGET ClangSyntaxNodeList)
4+

0 commit comments

Comments
 (0)