llvm-project/clang-tools-extra/pseudo/unittests
Sam McCall 3132e9cd7c [pseudo] Key guards by RuleID, add guards to literals (and 0).
After this, NUMERIC_CONSTANT and strings should parse only one way.

There are 8 types of literals, and 24 valid (literal, TokenKind) pairs.
This means adding 8 new named guards (or 24, if we want to assert the token).

It seems fairly clear to me at this point that the guard names are unneccesary
indirection: the guards are in fact coupled to the rule signature.

(Also add the zero guard I forgot in the previous patch.)

Differential Revision: https://reviews.llvm.org/D130066
2022-07-21 22:42:31 +02:00
..
BracketTest.cpp [pseudo] (trivial) bracket-matching 2022-05-24 15:13:36 +02:00
CMakeLists.txt [pseudo] Fix unit test build 2022-06-09 14:42:47 +02:00
DirectiveTreeTest.cpp [pseudo] Strip directives from a token stream 2022-05-06 12:15:08 +02:00
ForestTest.cpp [pseudo] Add ForestNode descendants iterator, print ambiguous/opaque node stats. 2022-06-30 21:20:55 +02:00
GLRTest.cpp [pseudo] Key guards by RuleID, add guards to literals (and 0). 2022-07-21 22:42:31 +02:00
GrammarTest.cpp [pseudo] Key guards by RuleID, add guards to literals (and 0). 2022-07-21 22:42:31 +02:00
LRTableTest.cpp [pseudo] Eliminate LRTable::Action. NFC 2022-07-05 14:35:41 +02:00
TokenTest.cpp Use pseudo parser for folding ranges 2022-07-18 11:35:34 +02:00