1LOCAL_PATH:= $(call my-dir)
2
3clang_static_analyzer_checkers_TBLGEN_TABLES := \
4  AttrKinds.inc \
5  AttrList.inc \
6  AttrParsedAttrList.inc \
7  Attrs.inc \
8  AttrVisitor.inc \
9  Checkers.inc \
10  CommentCommandList.inc \
11  CommentNodes.inc \
12  DeclNodes.inc \
13  DiagnosticCommonKinds.inc \
14  StmtNodes.inc
15
16clang_static_analyzer_checkers_SRC_FILES := \
17  AllocationDiagnostics.cpp \
18  AnalyzerStatsChecker.cpp \
19  ArrayBoundChecker.cpp \
20  ArrayBoundCheckerV2.cpp \
21  BasicObjCFoundationChecks.cpp \
22  BoolAssignmentChecker.cpp \
23  BuiltinFunctionChecker.cpp \
24  CallAndMessageChecker.cpp \
25  CastSizeChecker.cpp \
26  CastToStructChecker.cpp \
27  CheckerDocumentation.cpp \
28  CheckObjCDealloc.cpp \
29  CheckObjCInstMethSignature.cpp \
30  CheckSecuritySyntaxOnly.cpp \
31  CheckSizeofPointer.cpp \
32  ChrootChecker.cpp \
33  ClangCheckers.cpp \
34  CStringChecker.cpp \
35  CStringSyntaxChecker.cpp \
36  DeadStoresChecker.cpp \
37  DebugCheckers.cpp \
38  DereferenceChecker.cpp \
39  DirectIvarAssignment.cpp \
40  DivZeroChecker.cpp \
41  DynamicTypeChecker.cpp \
42  DynamicTypePropagation.cpp \
43  ExprInspectionChecker.cpp \
44  FixedAddressChecker.cpp \
45  GenericTaintChecker.cpp \
46  IdenticalExprChecker.cpp \
47  IvarInvalidationChecker.cpp \
48  LLVMConventionsChecker.cpp \
49  LocalizationChecker.cpp \
50  MacOSKeychainAPIChecker.cpp \
51  MacOSXAPIChecker.cpp \
52  MallocChecker.cpp \
53  MallocOverflowSecurityChecker.cpp \
54  MallocSizeofChecker.cpp \
55  NonNullParamChecker.cpp \
56  NoReturnFunctionChecker.cpp \
57  NSAutoreleasePoolChecker.cpp \
58  NSErrorChecker.cpp \
59  NullabilityChecker.cpp \
60  ObjCAtSyncChecker.cpp \
61  ObjCContainersASTChecker.cpp \
62  ObjCContainersChecker.cpp \
63  ObjCMissingSuperCallChecker.cpp \
64  ObjCSelfInitChecker.cpp \
65  ObjCUnusedIVarsChecker.cpp \
66  PaddingChecker.cpp \
67  PointerArithChecker.cpp \
68  PointerSubChecker.cpp \
69  PthreadLockChecker.cpp \
70  RetainCountChecker.cpp \
71  ReturnPointerRangeChecker.cpp \
72  ReturnUndefChecker.cpp \
73  SimpleStreamChecker.cpp \
74  StackAddrEscapeChecker.cpp \
75  StreamChecker.cpp \
76  TaintTesterChecker.cpp \
77  TestAfterDivZeroChecker.cpp \
78  TraversalChecker.cpp \
79  UndefBranchChecker.cpp \
80  UndefCapturedBlockVarChecker.cpp \
81  UndefinedArraySubscriptChecker.cpp \
82  UndefinedAssignmentChecker.cpp \
83  UndefResultChecker.cpp \
84  UnixAPIChecker.cpp \
85  UnreachableCodeChecker.cpp \
86  VforkChecker.cpp \
87  VirtualCallChecker.cpp \
88  VLASizeChecker.cpp
89
90# For the host only
91# =====================================================
92include $(CLEAR_VARS)
93include $(CLEAR_TBLGEN_VARS)
94
95TBLGEN_TABLES := $(clang_static_analyzer_checkers_TBLGEN_TABLES)
96
97LOCAL_SRC_FILES := $(clang_static_analyzer_checkers_SRC_FILES)
98
99LOCAL_MODULE:= libclangStaticAnalyzerCheckers
100
101LOCAL_MODULE_TAGS := optional
102
103include $(CLANG_HOST_BUILD_MK)
104include $(CLANG_TBLGEN_RULES_MK)
105include $(CLANG_VERSION_INC_MK)
106include $(BUILD_HOST_STATIC_LIBRARY)
107