I intend to add a new flag macro-expnasions-as-events, and unfortunately I'll only be able to convert the macro piece into an event one once I'm about to emit it, due to the lack of an avaible Preprocessor object in the BugReporter.
Details
Details
- Reviewers
george.karpenkov NoQ - Commits
- rG40271e4fde2e: [analyzer][NFC] Refactor functions in PlistDiagnostics to take AnalyzerOptions…
rL343620: [analyzer][NFC] Refactor functions in PlistDiagnostics to take AnalyzerOptions…
rC343620: [analyzer][NFC] Refactor functions in PlistDiagnostics to take AnalyzerOptions…
Diff Detail
Diff Detail
Event Timeline
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp | ||
---|---|---|
306–307 | That would probably be super-invasive for this file, from what I'm seeing. I might end up doing that, but this would mean pretty much a complete refactoring. To be honest, almost all functions here should be a method, the output stream, FIDMap, Preprocessor, AnalyzerOptions could all be left out. |
Comment Actions
I'll probably do something with this parameter spaghetti, it bothers me too, but maybe in a separate patch :)
Maybe just make this function non-static instead of passing members around manually?