2011-02-21 06:06:32 +08:00
|
|
|
clang_tablegen(Checkers.inc -gen-clang-sa-checkers
|
|
|
|
-I ${CMAKE_CURRENT_SOURCE_DIR}/../../../include
|
|
|
|
SOURCE Checkers.td
|
|
|
|
TARGET ClangSACheckers)
|
2011-02-15 02:13:31 +08:00
|
|
|
|
2011-01-03 22:53:25 +08:00
|
|
|
set(LLVM_USED_LIBS clangBasic clangAST)
|
|
|
|
|
2010-12-24 03:38:26 +08:00
|
|
|
add_clang_library(clangStaticAnalyzerCheckers
|
2010-12-23 02:52:56 +08:00
|
|
|
AdjustedReturnValueChecker.cpp
|
2011-02-09 06:30:36 +08:00
|
|
|
AnalyzerStatsChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
ArrayBoundChecker.cpp
|
2010-12-23 10:42:43 +08:00
|
|
|
ArrayBoundCheckerV2.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
AttrNonNullChecker.cpp
|
|
|
|
BasicObjCFoundationChecks.cpp
|
|
|
|
BuiltinFunctionChecker.cpp
|
2010-12-23 10:42:43 +08:00
|
|
|
CStringChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
CallAndMessageChecker.cpp
|
|
|
|
CastSizeChecker.cpp
|
|
|
|
CastToStructChecker.cpp
|
|
|
|
CheckObjCDealloc.cpp
|
|
|
|
CheckObjCInstMethSignature.cpp
|
|
|
|
CheckSecuritySyntaxOnly.cpp
|
|
|
|
CheckSizeofPointer.cpp
|
|
|
|
ChrootChecker.cpp
|
2011-02-15 02:13:31 +08:00
|
|
|
ClangSACheckerProvider.cpp
|
2011-01-14 04:58:59 +08:00
|
|
|
DeadStoresChecker.cpp
|
2011-02-18 06:07:39 +08:00
|
|
|
DebugCheckers.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
DereferenceChecker.cpp
|
|
|
|
DivZeroChecker.cpp
|
2010-12-23 04:30:07 +08:00
|
|
|
FixedAddressChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
IdempotentOperationChecker.cpp
|
2011-03-12 10:49:15 +08:00
|
|
|
IteratorsChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
LLVMConventionsChecker.cpp
|
2011-08-02 06:40:01 +08:00
|
|
|
MacOSKeychainAPIChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
MacOSXAPIChecker.cpp
|
|
|
|
MallocChecker.cpp
|
|
|
|
NSAutoreleasePoolChecker.cpp
|
|
|
|
NSErrorChecker.cpp
|
|
|
|
NoReturnFunctionChecker.cpp
|
|
|
|
OSAtomicChecker.cpp
|
|
|
|
ObjCAtSyncChecker.cpp
|
2011-01-12 03:45:25 +08:00
|
|
|
ObjCSelfInitChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
ObjCUnusedIVarsChecker.cpp
|
|
|
|
PointerArithChecker.cpp
|
|
|
|
PointerSubChecker.cpp
|
|
|
|
PthreadLockChecker.cpp
|
|
|
|
ReturnPointerRangeChecker.cpp
|
|
|
|
ReturnUndefChecker.cpp
|
2011-02-26 06:00:43 +08:00
|
|
|
StackAddrEscapeChecker.cpp
|
2010-12-23 02:52:56 +08:00
|
|
|
StreamChecker.cpp
|
|
|
|
UndefBranchChecker.cpp
|
|
|
|
UndefCapturedBlockVarChecker.cpp
|
|
|
|
UndefResultChecker.cpp
|
|
|
|
UndefinedArraySubscriptChecker.cpp
|
|
|
|
UndefinedAssignmentChecker.cpp
|
|
|
|
UnixAPIChecker.cpp
|
|
|
|
UnreachableCodeChecker.cpp
|
|
|
|
VLASizeChecker.cpp
|
|
|
|
)
|
|
|
|
|
2011-02-20 05:38:48 +08:00
|
|
|
add_dependencies(clangStaticAnalyzerCheckers
|
|
|
|
clangStaticAnalyzerCore
|
|
|
|
ClangAttrClasses
|
|
|
|
ClangAttrList
|
|
|
|
ClangDeclNodes
|
|
|
|
ClangStmtNodes
|
|
|
|
ClangSACheckers
|
|
|
|
)
|