]> granicus.if.org Git - clang/commit
[analyzer] Improve VirtualCallChecker diagnostics and move into optin package.
authorDevin Coughlin <dcoughlin@apple.com>
Sat, 10 Dec 2016 01:16:09 +0000 (01:16 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Sat, 10 Dec 2016 01:16:09 +0000 (01:16 +0000)
commit325ff3614675cd2de15e8876b82adf981db7b94c
tree0662f145b8923eddea8c21c874091fff0b960766
parentb81258f7ef1203761a504367995eb3ea0e0657cf
[analyzer] Improve VirtualCallChecker diagnostics and move into optin package.

The VirtualCallChecker is in alpha because its interprocedural diagnostics
represent the call path textually in the diagnostic message rather than with a
path sensitive diagnostic.

This patch turns off the AST-based interprocedural analysis in the checker so
that no call path is needed and improves with diagnostic text. With these
changes, the checker is ready to be moved into the optin package.

Ultimately the right fix is to rewrite this checker to be path sensitive -- but
there is still value in enabling the checker for intraprocedural analysis only
The interprocedural mode can be re-enabled with an -analyzer-config flag.

Differential Revision: https://reviews.llvm.org/D26768

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289309 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
test/Analysis/virtualcall.cpp
test/Analysis/virtualcall.h