diff options
author | Lang Hames <lhames@gmail.com> | 2011-12-05 20:49:50 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2011-12-05 20:49:50 +0000 |
commit | e14ca9f509dc22d8fcc5d21d70d28a5848983b42 (patch) | |
tree | fb770f80bd76355fe1f461f1761962e21add4ae4 /include/clang/Basic/Module.h | |
parent | 0dd7a25e8d679de1dc0ce788222d6dee0e879885 (diff) |
Add a warning for implicit conversion from function literals (and static
methods) to bool. E.g.
void foo() {}
if (f) { ... // <- Warns here.
}
Only applies to non-weak functions, and does not apply if the function address
is taken explicitly with the addr-of operator.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Module.h')
0 files changed, 0 insertions, 0 deletions