This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Minor fixes and improvements to debug.ExprInspection
ClosedPublic

Authored by NoQ on Nov 17 2016, 11:29 PM.

Details

Summary
  • Fix the bug with transition handling in checkDeadSymbols, that was noticed back in D18860, which never landed.
  • Test this bug by adding a new function clang_analyzer_numTimesReached() to catch number of passes through the code, which should be handy for testing against unintended state splits.
  • Add two more functions should help debugging issues quickly without running the debugger or dumping exploded graphs - clang_analyzer_dump() which dump()s an SVal argument to a warning message, and clang_analyzer_printState(), which dump()s the current program state to stderr.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ updated this revision to Diff 78468.Nov 17 2016, 11:29 PM
NoQ retitled this revision from to [analyzer] Minor fixes and improvements to debug.ExprInspection.
NoQ updated this object.
NoQ added a subscriber: cfe-commits.
This revision was automatically updated to reflect the committed changes.