<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">I'm writing some tools with clang-tidy using AST matchers. </div><div dir="auto"><br></div><div dir="auto">I'm storing the changes in yamls files. It would be useful to try to compile the result after doing that storage. </div><div dir="auto"><br></div><div dir="auto">I think the way to do that is: </div><div dir="auto"><br></div><div dir="auto">After handleErrors in clangtidy.cpp, </div><div dir="auto"><br></div><div dir="auto">* Create an in-memory filesystem containing buffers for each of the files changed in the replacements. </div><div dir="auto">* Create an overlay filesystem combining the real filesystem and my in memory one. </div><div dir="auto">* Apply the replacements with applyAllReplacements in the normal way.</div><div dir="auto">* Compile in the normal way with the same args.</div><div dir="auto"><br></div><div dir="auto">I think I can create the virtual filesystem, but I'm not sure how to create the compiler invocation with the correct args. Do I need to go back to the compiledb and filter out the args etc?</div><div dir="auto"><br></div><div dir="auto">Is there some simple way to do this that I'm missing?</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">Stephen. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div>