[all-commits] [llvm/llvm-project] 9ab67c: [pseudo] Implement guard extension.
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Jul 5 06:56:41 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9ab67cc8bfe7181b7d775bab4d7a908dc8774889
https://github.com/llvm/llvm-project/commit/9ab67cc8bfe7181b7d775bab4d7a908dc8774889
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2022-07-05 (Tue, 05 Jul 2022)
Changed paths:
M clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
M clang-tools-extra/pseudo/fuzzer/Fuzzer.cpp
M clang-tools-extra/pseudo/gen/Main.cpp
M clang-tools-extra/pseudo/include/clang-pseudo/GLR.h
M clang-tools-extra/pseudo/include/clang-pseudo/Language.h
M clang-tools-extra/pseudo/include/clang-pseudo/cxx/CXX.h
M clang-tools-extra/pseudo/lib/GLR.cpp
M clang-tools-extra/pseudo/lib/cli/CLI.cpp
M clang-tools-extra/pseudo/lib/cxx/CMakeLists.txt
M clang-tools-extra/pseudo/lib/cxx/CXX.cpp
M clang-tools-extra/pseudo/lib/cxx/cxx.bnf
A clang-tools-extra/pseudo/test/cxx/contextual-keywords.cpp
M clang-tools-extra/pseudo/tool/ClangPseudo.cpp
M clang-tools-extra/pseudo/unittests/GLRTest.cpp
Log Message:
-----------
[pseudo] Implement guard extension.
- Extend the GLR parser to allow conditional reduction based on the
guard functions;
- Implement two simple guards (contextual-override/final) for cxx.bnf;
- layering: clangPseudoCXX depends on clangPseudo (as the guard function need
to access the TokenStream);
Differential Revision: https://reviews.llvm.org/D127448
More information about the All-commits
mailing list