[cfe-dev] Making FrontendActions composable (or not)

Ted Kremenek kremenek at apple.com
Mon Nov 18 10:53:17 PST 2013


On Nov 18, 2013, at 8:47 AM, Jordan Rose <jordan_rose at apple.com> wrote:

> It’s been a while since I’ve looked at the frontend-ish parts of the analyzer, but AFAICT it’s not actually using PPCallbacks in any way. I don’t think there’s any problem with jumping directly to the AnalysisConsumer.
> 
> That said, if we ever want to add preprocessing-time checks, they wouldn’t be included in clang-tidy without a separate mechanism, but I think I’m okay with that. The current model is certainly intended to behave as an idempotent ASTConsumer.
> 
> Jordan

This is correct.  The analyzer waits until the entire translation unit is available before doing anything.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131118/c1c39910/attachment.html>


More information about the cfe-dev mailing list