[cfe-dev] [analyzer] On eliminating BugReporterVisitors.

Artem Dergachev via cfe-dev cfe-dev at lists.llvm.org
Tue Feb 19 12:12:31 PST 2019


Just wanted to attract a bit more attention to my proposal in 
https://reviews.llvm.org/D58367 - it's an improved checker API that 
eliminates the need to write bug reporter visitors in checkers, but 
instead enables squeezing note-generating code directly into addTransition.

This is cool because the message is generated within the part of code 
that already has all the information that's necessary to generate the 
message, which is much easier than reverse-engineering what happened "a 
posteriori" in order to re-construct that information. This doesn't 
really remove the old API and i don't see any obvious downsides.



More information about the cfe-dev mailing list