[PATCH] D126633: [pseudo] Use the pseudoCXX library in fuzzer.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 2 06:39:38 PDT 2022
sammccall added a comment.
As discussed offline:
- this should really be a cross-cutting change for all tools
- we're going to have multiple grammars or variants (e.g. c, c++, obj-c)
- it would be nice to preserve the ability for tools to use a grammar from a file
This all points at having a library shared between {fuzzer, clang-pseudo, benchmark} that supports `--grammar=cxx` and `--grammar=/some/path`.
It needs to depend on CXX but isn't itself CXX, so I think it's a new library. Maybe `clangPseudoCLI`? I think for now the easiest thing is for the library to define the cl::opt flags and just expose functions to get the "current" grammar. (And maybe langopts should go there too)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126633/new/
https://reviews.llvm.org/D126633
More information about the cfe-commits
mailing list