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 | df5c121f8ed83da0df666734860762241ee450ca (patch) | |
tree | 17d4b75aea26f96167b8fac54fcb451a1ff8e1fa /clang/lib/Basic/Module.cpp | |
parent | ab7940f6e1ae76a6eb8adf64babf3563c9550830 (diff) | |
download | llvm-df5c121f8ed83da0df666734860762241ee450ca.zip llvm-df5c121f8ed83da0df666734860762241ee450ca.tar.gz llvm-df5c121f8ed83da0df666734860762241ee450ca.tar.bz2 |
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.
llvm-svn: 145849
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions