Page MenuHomePhabricator

[analyzer] NFC: Move PathDiagnostic::resetDiagnosticLocationToMainFile to bug reporter.

Authored by NoQ on Tue, Sep 10, 4:29 PM.



This function uses AnalysisManager, which is Static Analyzer-specific entity, but i want path diagnostics to be independent of the Static Analyzer.

In fact it only uses AnalysisManager::isInCodeFile() which is essentially static and might be useful outside of the Analyzer; however, Clang-Tidy has its own idea of what code to analyze, so i feel i can't enforce this method on them.

More importantly, though, i'm only handing off the PathDiagnostic data structure, but not the procedure of constructing those particularly neat analyzer-like path diagnostics. And this whole function is definitely part of the construction procedure, not of the data structure itself, so it shouldn't be handed off.

Diff Detail


Event Timeline

NoQ created this revision.Tue, Sep 10, 4:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptTue, Sep 10, 4:29 PM
This revision is now accepted and ready to land.Wed, Sep 11, 2:47 AM
gribozavr accepted this revision.Wed, Sep 11, 5:42 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptWed, Sep 11, 1:54 PM