diff options
author | Hans Wennborg <hans@hanshq.net> | 2011-06-09 17:06:51 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2011-06-09 17:06:51 +0000 |
commit | 2f072b442879b8bba8c5dea11d7c61bedb1924ae (patch) | |
tree | 5fa094e1f4ec6f64cb8db3d06824c1364eb49952 /lib/CodeGen/CGClass.cpp | |
parent | d7bc7a210993fc4f67cdf5764ce4ef33f2a8ede3 (diff) |
Handle overloaded operators in ?: precedence warning
This is a follow-up to r132565, and should address the rest of PR9969:
Warn about cases such as
int foo(A a, bool b) {
return a + b ? 1 : 2; // user probably meant a + (b ? 1 : 2);
}
also when + is an overloaded operator call.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions