]> granicus.if.org Git - clang/commit
[analyzer] Restart path diagnostic generation if any of the visitors change the repor...
authorJordy Rose <jediknil@belkadan.com>
Sat, 24 Mar 2012 03:03:29 +0000 (03:03 +0000)
committerJordy Rose <jediknil@belkadan.com>
Sat, 24 Mar 2012 03:03:29 +0000 (03:03 +0000)
commit3bc75ca0a636efdc93471c9b6bad43085a22bf3a
treec81cd3a425e0e617d43fc04216e248d1f1a0f8b0
parent011534973e83db51f49098871186238fc64d5f54
[analyzer] Restart path diagnostic generation if any of the visitors change the report configuration while walking the path.

This required adding a change count token to BugReport, but also allowed us to ditch ImmutableList as the BugReporterVisitor data type.

Also, remove the hack from MallocChecker, now that visitors appear in the opposite order. This is not exactly a fix, but the common case -- custom diagnostics after generic ones -- is now the default behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153369 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp