I am developing an application that uses the ClangdServer class to get information about the code.
But for some tasks, ClangdServer doesnt provide enough information. Therefore, I would like to run an ASTMatcher as done in this demo project (GitHub - lanl/CoARCT: Code Analysis and Refactoring with Clang Tools).
The problem is, the apps in this demos always start from scratch and it is quite slow. My hope is, that when I use an available ParsedAST it would be a lot faster to run a matcher on it. Unfortunately, I cannot find anything how to use an ParsedAST with an ASTMatcher.
Clangd already has these ParsedASTs during runtime (If I understand the code correctly), and I would like to reuse these.
Is this in anyway possible?