diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-07-11 08:08:47 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-07-11 08:08:47 +0000 |
| commit | 1c8b31753b0699960d314a67dba2c71ba832e6ae (patch) | |
| tree | baa10f2e41cb0f56787cb9fe1776011537c8211b /clang/utils/token-delta.py | |
| parent | 780ce0f8e3505e7a3df0ee5f5d421d8e0e253079 (diff) | |
| download | bcm5719-llvm-1c8b31753b0699960d314a67dba2c71ba832e6ae.tar.gz bcm5719-llvm-1c8b31753b0699960d314a67dba2c71ba832e6ae.zip | |
[clang-tidy] Add a checker for implicit bool conversion of a bool*.
The goal is to find code like the example below, which is likely a typo
where someone meant to write "if (*b)".
bool *b = SomeFunction();
if (b) {
// b never dereferenced
}
This checker naturally has a relatively high false positive rate so it
applies some heuristics to avoid cases where the pointer is checked for
nullptr before being written.
Differential Revision: http://reviews.llvm.org/D4458
llvm-svn: 212797
Diffstat (limited to 'clang/utils/token-delta.py')
0 files changed, 0 insertions, 0 deletions

