llvm-project/clang-tools-extra/pseudo/lib
Sam McCall 56c54cf66b [pseudo] Placeholder disambiguation strategy: always choose second
Mostly mechanics here. Interesting decisions:
 - apply disambiguation in-place instead of copying the forest
   debatable, but even the final tree size is significant
 - split decide/apply into different functions - this allows the hard part
   (decide) to be tested non-destructively and combined with HTML forest easily
 - add non-const accessors to forest to enable apply
 - unit tests but no lit tests: my plan is to test actual C++ disambiguation
   heuristics with lit, generic disambiguation mechanics without the C++ grammar

Differential Revision: https://reviews.llvm.org/D132487
2022-08-26 13:16:09 +02:00
..
cli [pseudo] Define recovery strategy as grammar extension. 2022-07-06 15:03:38 +02:00
cxx [pseudo] Eliminate a false parse of structured binding declaration. 2022-08-23 15:25:52 +02:00
grammar [pseudo] Start rules are `_ := start-symbol EOF`, improve recovery. 2022-08-19 16:49:37 +02:00
Bracket.cpp [pseudo] (trivial) bracket-matching 2022-05-24 15:13:36 +02:00
CMakeLists.txt [pseudo] Placeholder disambiguation strategy: always choose second 2022-08-26 13:16:09 +02:00
DirectiveTree.cpp [pseudo] Use C++17 variant to simplify the DirectiveTree::Chunk class, NFC. 2022-08-11 14:27:38 +02:00
Disambiguate.cpp [pseudo] Placeholder disambiguation strategy: always choose second 2022-08-26 13:16:09 +02:00
Forest.cpp [pseudo] Start rules are `_ := start-symbol EOF`, improve recovery. 2022-08-19 16:49:37 +02:00
GLR.cpp [pseudo] Placeholder disambiguation strategy: always choose second 2022-08-26 13:16:09 +02:00
Lex.cpp Use pseudo parser for folding ranges 2022-07-18 11:35:34 +02:00
Token.cpp [pseudo] Share the underly payload when stripping comments for a token stream 2022-07-15 15:20:48 +02:00