llvm-project/clang/lib/Analysis
Jordan Rose 7afd71e4ff Add a check for tautological bitwise comparisons to -Wtautological-compare.
This catches issues like:

if ((x & 8) == 4) { ... }
if ((x | 4) != 3) { ... }

Patch by Anders Rönnholm!

llvm-svn: 209221
2014-05-20 17:31:11 +00:00
..
AnalysisDeclContext.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
BodyFarm.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
BodyFarm.h [analyzer] Tighten up sanity checks on Objective-C property getter synthesis. 2014-01-23 03:59:10 +00:00
CFG.cpp Add a check for tautological bitwise comparisons to -Wtautological-compare. 2014-05-20 17:31:11 +00:00
CFGReachabilityAnalysis.cpp Rework CFG edges to encode potentially unreachable edges, instead of just making them NULL. 2014-02-27 00:24:00 +00:00
CFGStmtMap.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
CMakeLists.txt Thread Safety Analysis: add new node types to thread safety TIL. 2014-05-15 00:50:36 +00:00
CallGraph.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
CocoaConventions.cpp Excise <cctype> from Clang (except clang-tblgen) in favor of CharInfo.h. 2013-02-08 22:30:41 +00:00
Consumed.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
Dominators.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
FormatString.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
FormatStringParsing.h [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
LiveVariables.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
Makefile
ObjCNoReturn.cpp clang/lib/Analysis/ObjCNoReturn.cpp: Fix [-Wnewline-eof] 2012-09-13 05:53:17 +00:00
PostOrderCFGView.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
PrintfFormatString.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
ProgramPoint.cpp [analyzer] Improved checker naming in CFG dump. 2014-02-17 18:25:34 +00:00
PseudoConstantAnalysis.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
ReachableCode.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
ScanfFormatString.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
ThreadSafety.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00
ThreadSafetyCommon.cpp Thread Safety Analysis: add new node types to thread safety TIL. 2014-05-15 00:50:36 +00:00
ThreadSafetyLogical.cpp Add the ability to use logical expressions for capability attributes. This is to allow requirements to be expressed not just in terms of lists, but in terms of logical expressions. Eg) 2014-05-09 18:26:23 +00:00
ThreadSafetyTIL.cpp Thread Safety Analysis: add new node types to thread safety TIL. 2014-05-15 00:50:36 +00:00
UninitializedValues.cpp [C++11] Use 'nullptr'. Analysis edition. 2014-05-20 04:30:07 +00:00