[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2022-02-04 Thread Haojian Wu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGe1db505b42f4: [syntax][pseudo] Introduce the C++ spec grammar. (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTIO

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2022-02-04 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 405904. hokein marked 2 inline comments as done. hokein added a comment. rebase and address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115856/new/ https://reviews.llvm.org/D115856 Files: clang/li

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2022-02-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Tooling/Syntax/Pseudo/cxx.bnf:40 +# gram.basic +# !Custom modifications to eliminate optional declaration-seq +translation-unit := declaration

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2022-01-20 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang/lib/Tooling/Syntax/Pseudo/cxx.bnf:27 +# FIXME: +# - support annotations (lazy parsing, contextual identifiers) +# - empty input should be parsed successfully (special-case it?) sammccall wrote: > I think we shou

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2022-01-20 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 401561. hokein marked an inline comment as done. hokein added a comment. add new line to eof Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115856/new/ https://reviews.llvm.org/D115856 Files: clang/lib/Tooling

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2022-01-20 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 401559. hokein marked 7 inline comments as done. hokein added a comment. address comments and add lit test to verify cxx.bnf Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115856/new/ https://reviews.llvm.org/D11

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2021-12-21 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang/lib/Tooling/Syntax/Pseudo/cxx.bnf:12 +# - attributes are omitted, which will be handled as comments; +# - we don't allow nullable non-terminal symbols (except translation-unit). +#There are few nullable non-terminals in the

[PATCH] D115856: [syntax][pseudo] Introduce the spec C++ grammar.

2021-12-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added a subscriber: mgorny. hokein requested review of this revision. Herald added a project: clang. Also, add a dummy clang-pseudo tool (right now it accepts and parses the grammar file). Repository: rG LLVM Github Monor