[Sema]. Warn when logical expression is a pointer
authorFariborz Jahanian <fjahanian@apple.com>
Fri, 14 Nov 2014 17:12:50 +0000 (17:12 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Fri, 14 Nov 2014 17:12:50 +0000 (17:12 +0000)
commitb7859ddf9bdc2b8ef689036fadb4501cf22d79f4
tree520645c32bb4333a17b241f5700b6dc15959556d
parentdf8f2a23cbaf0ff16cdc9d98fba10dc2b323985c
[Sema]. Warn when logical expression is a pointer
which evaluates to true. rdar://18716393.
Reviewed by Richard Trieu

llvm-svn: 222009
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/Analysis/NSContainers.m
clang/test/Analysis/logical-ops.c
clang/test/Analysis/objc-boxing.m
clang/test/Sema/exprs.c
clang/test/Sema/warn-tautological-compare.c [new file with mode: 0644]