xref: /minix3/external/bsd/llvm/lib/libclangStaticAnalyzerCheckers/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc#	$NetBSD: Makefile,v 1.24 2014/08/10 17:35:06 joerg Exp $
2f4a2713aSLionel Sambuc
3f4a2713aSLionel SambucLIB=	clangStaticAnalyzerCheckers
4f4a2713aSLionel Sambuc
5f4a2713aSLionel Sambuc.include <bsd.init.mk>
6f4a2713aSLionel Sambuc
7f4a2713aSLionel Sambuc.PATH: ${CLANG_SRCDIR}/lib/StaticAnalyzer/Checkers
8f4a2713aSLionel Sambuc
9f4a2713aSLionel SambucSRCS+=	AllocationDiagnostics.cpp \
10f4a2713aSLionel Sambuc	AnalyzerStatsChecker.cpp \
11f4a2713aSLionel Sambuc	ArrayBoundChecker.cpp \
12f4a2713aSLionel Sambuc	ArrayBoundCheckerV2.cpp \
13f4a2713aSLionel Sambuc	BasicObjCFoundationChecks.cpp \
14f4a2713aSLionel Sambuc	BoolAssignmentChecker.cpp \
15f4a2713aSLionel Sambuc	BuiltinFunctionChecker.cpp \
16f4a2713aSLionel Sambuc	ClangCheckers.cpp \
17f4a2713aSLionel Sambuc	CStringChecker.cpp \
18f4a2713aSLionel Sambuc	CStringSyntaxChecker.cpp \
19f4a2713aSLionel Sambuc	CallAndMessageChecker.cpp \
20f4a2713aSLionel Sambuc	CastSizeChecker.cpp \
21f4a2713aSLionel Sambuc	CastToStructChecker.cpp \
22f4a2713aSLionel Sambuc	CheckObjCDealloc.cpp \
23f4a2713aSLionel Sambuc	CheckObjCInstMethSignature.cpp \
24f4a2713aSLionel Sambuc	CheckSecuritySyntaxOnly.cpp \
25f4a2713aSLionel Sambuc	CheckSizeofPointer.cpp \
26f4a2713aSLionel Sambuc	CheckerDocumentation.cpp \
27f4a2713aSLionel Sambuc	ChrootChecker.cpp \
28f4a2713aSLionel Sambuc	DeadStoresChecker.cpp \
29f4a2713aSLionel Sambuc	DebugCheckers.cpp \
30f4a2713aSLionel Sambuc	DereferenceChecker.cpp \
31f4a2713aSLionel Sambuc	DirectIvarAssignment.cpp \
32f4a2713aSLionel Sambuc	DivZeroChecker.cpp \
33f4a2713aSLionel Sambuc	DynamicTypePropagation.cpp \
34f4a2713aSLionel Sambuc	ExprInspectionChecker.cpp \
35f4a2713aSLionel Sambuc	FixedAddressChecker.cpp \
36f4a2713aSLionel Sambuc	GenericTaintChecker.cpp \
37f4a2713aSLionel Sambuc	IdenticalExprChecker.cpp \
38f4a2713aSLionel Sambuc	IvarInvalidationChecker.cpp \
39f4a2713aSLionel Sambuc	LLVMConventionsChecker.cpp \
40f4a2713aSLionel Sambuc	MacOSKeychainAPIChecker.cpp \
41f4a2713aSLionel Sambuc	MacOSXAPIChecker.cpp \
42f4a2713aSLionel Sambuc	MallocChecker.cpp \
43f4a2713aSLionel Sambuc	MallocOverflowSecurityChecker.cpp \
44f4a2713aSLionel Sambuc	MallocSizeofChecker.cpp \
45f4a2713aSLionel Sambuc	NSAutoreleasePoolChecker.cpp \
46f4a2713aSLionel Sambuc	NSErrorChecker.cpp \
47f4a2713aSLionel Sambuc	NoReturnFunctionChecker.cpp \
48f4a2713aSLionel Sambuc	NonNullParamChecker.cpp \
49f4a2713aSLionel Sambuc	ObjCAtSyncChecker.cpp \
50f4a2713aSLionel Sambuc	ObjCContainersASTChecker.cpp \
51f4a2713aSLionel Sambuc	ObjCContainersChecker.cpp \
52f4a2713aSLionel Sambuc	ObjCMissingSuperCallChecker.cpp \
53f4a2713aSLionel Sambuc	ObjCSelfInitChecker.cpp \
54f4a2713aSLionel Sambuc	ObjCUnusedIVarsChecker.cpp \
55f4a2713aSLionel Sambuc	PointerArithChecker.cpp \
56f4a2713aSLionel Sambuc	PointerSubChecker.cpp \
57f4a2713aSLionel Sambuc	PthreadLockChecker.cpp \
58f4a2713aSLionel Sambuc	RetainCountChecker.cpp \
59f4a2713aSLionel Sambuc	ReturnPointerRangeChecker.cpp \
60f4a2713aSLionel Sambuc	ReturnUndefChecker.cpp \
61f4a2713aSLionel Sambuc	SimpleStreamChecker.cpp \
62f4a2713aSLionel Sambuc	StackAddrEscapeChecker.cpp \
63f4a2713aSLionel Sambuc	StreamChecker.cpp \
64f4a2713aSLionel Sambuc	TaintTesterChecker.cpp \
65*0a6a1f1dSLionel Sambuc	TestAfterDivZeroChecker.cpp \
66f4a2713aSLionel Sambuc	TraversalChecker.cpp \
67f4a2713aSLionel Sambuc	UndefBranchChecker.cpp \
68f4a2713aSLionel Sambuc	UndefCapturedBlockVarChecker.cpp \
69f4a2713aSLionel Sambuc	UndefResultChecker.cpp \
70f4a2713aSLionel Sambuc	UndefinedArraySubscriptChecker.cpp \
71f4a2713aSLionel Sambuc	UndefinedAssignmentChecker.cpp \
72f4a2713aSLionel Sambuc	UnixAPIChecker.cpp \
73f4a2713aSLionel Sambuc	UnreachableCodeChecker.cpp \
74f4a2713aSLionel Sambuc	VLASizeChecker.cpp \
75f4a2713aSLionel Sambuc	VirtualCallChecker.cpp
76f4a2713aSLionel Sambuc
77f4a2713aSLionel SambucCLANG_TABLEGEN_SRC=		Checkers.td
78f4a2713aSLionel SambucCLANG_TABLEGEN_INCLUDES=	-I${CLANG_SRCDIR}/include
79f4a2713aSLionel SambucCLANG_TABLEGEN_OUTPUT=	Checkers.inc|-gen-clang-sa-checkers
80f4a2713aSLionel Sambuc
81f4a2713aSLionel Sambuc.include "${.PARSEDIR}/../../tablegen.mk"
82f4a2713aSLionel Sambuc
83f4a2713aSLionel Sambuc.if defined(HOSTLIB)
84f4a2713aSLionel Sambuc.include <bsd.hostlib.mk>
85f4a2713aSLionel Sambuc.else
86f4a2713aSLionel Sambuc.include <bsd.lib.mk>
87f4a2713aSLionel Sambuc.endif
88