Some checkers require ASTContext. Having it in the constructor saves a lot of boilerplate of having to pass it around.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | ||
---|---|---|
299 ↗ | (On Diff #158400) | I'm pretty sure PP.getLangOpts() would be the same as Context.getLangOpts(), so there's no need to pass them separately: they can be obtained from the context within the constructor. |