This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] BugReporterVisitors: Refactor and documentation
Needs ReviewPublic

Authored by Charusso on Jan 27 2020, 6:37 PM.

Details

Reviewers
NoQ
Summary

-

Diff Detail

Event Timeline

Charusso created this revision.Jan 27 2020, 6:37 PM
Charusso marked 2 inline comments as done.Jan 27 2020, 7:35 PM
Charusso added inline comments.
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
195

I have made every tag a small-string.

203

I have put every Profile into the header, so it is easier to see which members are not added to the Profile. I think the root cause of https://bugs.llvm.org/show_bug.cgi?id=42938 could be some issue with differentiating between visitors.

NoQ added inline comments.Feb 3 2020, 7:59 AM
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
195

This way it's harder to be sure that the tags are unique. And non-unique tags may cause terrible pain while debugging.

203

I like this!

Thanks! Bug report generation seems far less of a mess than is used to be :)

clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
44–45

I suspect \emoji wasn't intentional here, given that it needs another argument :^)

Charusso updated this revision to Diff 248110.Mar 3 2020, 11:14 PM
Charusso marked 4 inline comments as done.
  • Make the tags robust and more unique.
Charusso added inline comments.Mar 3 2020, 11:14 PM
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
44–45

Well, it is "So Pro" (- Apple) and I really like that. Someone wrote "along a path", but we are definitely mentioning the 🐛 path.