[RFC] A C++ pseudo parser for tooling

Thanks Aaron, we’re going to move the code out of clang and into clang-tools-extra.
I’m working on a patch with the exact layout, probably clang-tools-extra/pseudo with #include "clang-pseudo/Token.h" as the public interface, and clang-pseudo kept as the name for the standalone tool.

EDIT: review is up: ⚙ D121233 [pseudo] Move pseudoparser from clang to clang-tools-extra

Will do. There is likely to be a step where a header needs to be generated from the grammar (to allow code to refer directly to grammar rules). Ensuring that both its dependencies and its includers are minimized should minimize the impact on incremental builds at least. (And no impact on check-clang, which is a benefit we forgot to mention).

1 Like