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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to