Let checker depend on PPCallbacks

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Let checker depend on PPCallbacks

Deep Majumder via cfe-dev
Hi all,

Is it possible to let a checker depend on a PPCallbacks implementation?  For
example, currently I've implemented a checker in a shared library which I load
and register via

extern "C"
void clang_registerCheckers(CheckerRegistry &registry) {
  registry.addChecker<Foobar>("foobar", "", "");
}

extern "C"
const char clang_analyzerAPIVersionString[] =
  CLANG_ANALYZER_API_VERSION_STRING;

Prior running the checker I would like to register and run a PPCallbacks
implementation and pass the collected information to the checker.  Is there a
supposed way to accomplish that?

Cheers,
Stefan
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev