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
Event Timeline
clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | ||
---|---|---|
297–298 | 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. |
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.