Exactly what it says on the tin! There is no reason I think not to have this.
Also, I added test files for checkers that emit warning under the wrong name.
Paths
| Differential D76605
[analyzer] Display the checker name in the text output ClosedPublic Authored by Szelethus on Mar 23 2020, 6:14 AM.
Details Summary Exactly what it says on the tin! There is no reason I think not to have this. Also, I added test files for checkers that emit warning under the wrong name.
Diff Detail Event TimelineHerald added subscribers: cfe-commits, ASDenysPetrov, steakhal and 8 others. · View Herald TranscriptMar 23 2020, 6:14 AM
Szelethus added inline comments.
Comment Actions Sounds great! Does the checker name get printed on the final note as well in text output? We should probably test it.
Szelethus added inline comments.
Szelethus added inline comments.
Szelethus marked 8 inline comments as done. Comment ActionsFixing according to the reviews!
Comment Actions I was just wondering if it would make sense to have a test with display-checker-name=true. Other than that, LGTM! This revision is now accepted and ready to land.Apr 8 2020, 7:28 AM Comment Actions
Could do! Thanks! Closed by commit rGa2b6ece1fd4e: [analyzer] Display the checker name in the text output (authored by Szelethus). · Explain WhyApr 9 2020, 7:35 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 252005 clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
clang/lib/StaticAnalyzer/Core/TextDiagnostics.cpp
clang/test/Analysis/analyzer-config.c
clang/test/Analysis/dispatch-once.m
clang/test/Analysis/explain-svals.c
clang/test/Analysis/explain-svals.cpp
clang/test/Analysis/explain-svals.m
clang/test/Analysis/incorrect-checker-names.cpp
clang/test/Analysis/incorrect-checker-names.mm
|
Why do we need an option? Is it just for tests? Is it for clang-tidy to avoid printing the checker name twice?