llvm.org GIT mirror llvm / 476811f
[gn build] Add build files for clang/lib/{ASTMatchers,CrossTU}, clang/lib/StaticAnalyzer/{Checkers,Core,Frontend} The intent is to add the build file for clang/lib/StaticAnalyzer/Frontend; everything else is pulled in by that. Differential Revision: https://reviews.llvm.org/D55978 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349986 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
7 changed file(s) with 266 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 group("default") {
11 deps = [
2 "//clang/lib/AST",
3 "//clang/lib/ASTMatchers",
24 "//clang/lib/CodeGen",
5 "//clang/lib/CrossTU",
36 "//clang/lib/Driver",
47 "//clang/lib/Frontend",
58 "//clang/lib/Frontend/Rewrite",
9 "//clang/lib/Index",
610 "//clang/lib/Parse",
711 "//clang/lib/Serialization",
12 "//clang/lib/StaticAnalyzer/Checkers",
13 "//clang/lib/StaticAnalyzer/Core",
14 "//clang/lib/StaticAnalyzer/Frontend",
815 "//clang/tools/clang-format",
916 "//lld/test",
1017 "//llvm/tools/llvm-undname",
0 static_library("ASTMatchers") {
1 output_name = "clangASTMatchers"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/lib/AST",
5 "//clang/lib/Basic",
6 "//llvm/lib/Support",
7 ]
8 sources = [
9 "ASTMatchFinder.cpp",
10 "ASTMatchersInternal.cpp",
11 ]
12 }
0 static_library("CrossTU") {
1 output_name = "clangCrossTU"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/lib/AST",
5 "//clang/lib/Basic",
6 "//clang/lib/Frontend",
7 "//clang/lib/Index",
8 "//llvm/lib/Support",
9 ]
10 sources = [
11 "CrossTranslationUnit.cpp",
12 ]
13 }
0 static_library("Index") {
1 output_name = "clangIndex"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/lib/AST",
5 "//clang/lib/Basic",
6 "//clang/lib/Format",
7 "//clang/lib/Frontend",
8 "//clang/lib/Rewrite",
9 "//clang/lib/Serialization",
10 "//clang/lib/Tooling/Core",
11 "//llvm/lib/IR",
12 "//llvm/lib/Support",
13 ]
14 sources = [
15 "CodegenNameGenerator.cpp",
16 "CommentToXML.cpp",
17 "IndexBody.cpp",
18 "IndexDecl.cpp",
19 "IndexSymbol.cpp",
20 "IndexTypeSourceInfo.cpp",
21 "IndexingAction.cpp",
22 "IndexingContext.cpp",
23 "IndexingContext.h",
24 "SimpleFormatContext.h",
25 "USRGeneration.cpp",
26 ]
27 }
0 static_library("Checkers") {
1 output_name = "clangStaticAnalyzerCheckers"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/include/clang/StaticAnalyzer/Checkers",
5 "//clang/lib/AST",
6 "//clang/lib/ASTMatchers",
7 "//clang/lib/Analysis",
8 "//clang/lib/Basic",
9 "//clang/lib/Lex",
10 "//clang/lib/StaticAnalyzer/Core",
11 "//llvm/lib/Support",
12 ]
13 sources = [
14 "AnalysisOrderChecker.cpp",
15 "AnalyzerStatsChecker.cpp",
16 "ArrayBoundChecker.cpp",
17 "ArrayBoundCheckerV2.cpp",
18 "BasicObjCFoundationChecks.cpp",
19 "BlockInCriticalSectionChecker.cpp",
20 "BoolAssignmentChecker.cpp",
21 "BuiltinFunctionChecker.cpp",
22 "CStringChecker.cpp",
23 "CStringSyntaxChecker.cpp",
24 "CXXSelfAssignmentChecker.cpp",
25 "CallAndMessageChecker.cpp",
26 "CastSizeChecker.cpp",
27 "CastToStructChecker.cpp",
28 "CheckObjCDealloc.cpp",
29 "CheckObjCInstMethSignature.cpp",
30 "CheckSecuritySyntaxOnly.cpp",
31 "CheckSizeofPointer.cpp",
32 "CheckerDocumentation.cpp",
33 "ChrootChecker.cpp",
34 "CloneChecker.cpp",
35 "ConversionChecker.cpp",
36 "DeadStoresChecker.cpp",
37 "DebugCheckers.cpp",
38 "DeleteWithNonVirtualDtorChecker.cpp",
39 "DereferenceChecker.cpp",
40 "DirectIvarAssignment.cpp",
41 "DivZeroChecker.cpp",
42 "DynamicTypeChecker.cpp",
43 "DynamicTypePropagation.cpp",
44 "EnumCastOutOfRangeChecker.cpp",
45 "ExprInspectionChecker.cpp",
46 "FixedAddressChecker.cpp",
47 "GCDAntipatternChecker.cpp",
48 "GTestChecker.cpp",
49 "GenericTaintChecker.cpp",
50 "IdenticalExprChecker.cpp",
51 "InnerPointerChecker.cpp",
52 "IteratorChecker.cpp",
53 "IvarInvalidationChecker.cpp",
54 "LLVMConventionsChecker.cpp",
55 "LocalizationChecker.cpp",
56 "MPI-Checker/MPIBugReporter.cpp",
57 "MPI-Checker/MPIChecker.cpp",
58 "MPI-Checker/MPIFunctionClassifier.cpp",
59 "MacOSKeychainAPIChecker.cpp",
60 "MacOSXAPIChecker.cpp",
61 "MallocChecker.cpp",
62 "MallocOverflowSecurityChecker.cpp",
63 "MallocSizeofChecker.cpp",
64 "MmapWriteExecChecker.cpp",
65 "MoveChecker.cpp",
66 "NSAutoreleasePoolChecker.cpp",
67 "NSErrorChecker.cpp",
68 "NoReturnFunctionChecker.cpp",
69 "NonNullParamChecker.cpp",
70 "NonnullGlobalConstantsChecker.cpp",
71 "NullabilityChecker.cpp",
72 "NumberObjectConversionChecker.cpp",
73 "ObjCAtSyncChecker.cpp",
74 "ObjCAutoreleaseWriteChecker.cpp",
75 "ObjCContainersASTChecker.cpp",
76 "ObjCContainersChecker.cpp",
77 "ObjCMissingSuperCallChecker.cpp",
78 "ObjCPropertyChecker.cpp",
79 "ObjCSelfInitChecker.cpp",
80 "ObjCSuperDeallocChecker.cpp",
81 "ObjCUnusedIVarsChecker.cpp",
82 "PaddingChecker.cpp",
83 "PointerArithChecker.cpp",
84 "PointerSubChecker.cpp",
85 "PthreadLockChecker.cpp",
86 "RetainCountChecker/RetainCountChecker.cpp",
87 "RetainCountChecker/RetainCountDiagnostics.cpp",
88 "ReturnPointerRangeChecker.cpp",
89 "ReturnUndefChecker.cpp",
90 "RunLoopAutoreleaseLeakChecker.cpp",
91 "SimpleStreamChecker.cpp",
92 "StackAddrEscapeChecker.cpp",
93 "StdLibraryFunctionsChecker.cpp",
94 "StreamChecker.cpp",
95 "TaintTesterChecker.cpp",
96 "TestAfterDivZeroChecker.cpp",
97 "TraversalChecker.cpp",
98 "TrustNonnullChecker.cpp",
99 "UndefBranchChecker.cpp",
100 "UndefCapturedBlockVarChecker.cpp",
101 "UndefResultChecker.cpp",
102 "UndefinedArraySubscriptChecker.cpp",
103 "UndefinedAssignmentChecker.cpp",
104 "UninitializedObject/UninitializedObjectChecker.cpp",
105 "UninitializedObject/UninitializedPointee.cpp",
106 "UnixAPIChecker.cpp",
107 "UnreachableCodeChecker.cpp",
108 "VLASizeChecker.cpp",
109 "ValistChecker.cpp",
110 "VforkChecker.cpp",
111 "VirtualCallChecker.cpp",
112 ]
113 }
0 static_library("Core") {
1 output_name = "clangStaticAnalyzerCore"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/include/clang/Config",
5 "//clang/lib/AST",
6 "//clang/lib/ASTMatchers",
7 "//clang/lib/Analysis",
8 "//clang/lib/Basic",
9 "//clang/lib/CrossTU",
10 "//clang/lib/Lex",
11 "//clang/lib/Rewrite",
12 "//llvm/lib/Support",
13 ]
14 sources = [
15 "APSIntType.cpp",
16 "AnalysisManager.cpp",
17 "AnalyzerOptions.cpp",
18 "BasicValueFactory.cpp",
19 "BlockCounter.cpp",
20 "BugReporter.cpp",
21 "BugReporterVisitors.cpp",
22 "CallEvent.cpp",
23 "Checker.cpp",
24 "CheckerContext.cpp",
25 "CheckerHelpers.cpp",
26 "CheckerManager.cpp",
27 "CommonBugCategories.cpp",
28 "ConstraintManager.cpp",
29 "CoreEngine.cpp",
30 "DynamicTypeMap.cpp",
31 "Environment.cpp",
32 "ExplodedGraph.cpp",
33 "ExprEngine.cpp",
34 "ExprEngineC.cpp",
35 "ExprEngineCXX.cpp",
36 "ExprEngineCallAndReturn.cpp",
37 "ExprEngineObjC.cpp",
38 "FunctionSummary.cpp",
39 "HTMLDiagnostics.cpp",
40 "IssueHash.cpp",
41 "LoopUnrolling.cpp",
42 "LoopWidening.cpp",
43 "MemRegion.cpp",
44 "PathDiagnostic.cpp",
45 "PlistDiagnostics.cpp",
46 "ProgramState.cpp",
47 "RangeConstraintManager.cpp",
48 "RangedConstraintManager.cpp",
49 "RegionStore.cpp",
50 "RetainSummaryManager.cpp",
51 "SValBuilder.cpp",
52 "SVals.cpp",
53 "SarifDiagnostics.cpp",
54 "SimpleConstraintManager.cpp",
55 "SimpleSValBuilder.cpp",
56 "Store.cpp",
57 "SubEngine.cpp",
58 "SymbolManager.cpp",
59 "TaintManager.cpp",
60 "WorkList.cpp",
61 "Z3ConstraintManager.cpp",
62 ]
63
64 # FIXME: clang/Config/BUILD.gn currently always sets CLANG_ANALYZER_WITH_Z3
65 # to false. If that changes we need to link to Z3 libs here.
66 }
0 static_library("Frontend") {
1 output_name = "clangStaticAnalyzerFrontend"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/lib/AST",
5 "//clang/lib/Analysis",
6 "//clang/lib/Basic",
7 "//clang/lib/CrossTU",
8 "//clang/lib/Frontend",
9 "//clang/lib/Lex",
10 "//clang/lib/StaticAnalyzer/Checkers",
11 "//clang/lib/StaticAnalyzer/Core",
12 "//llvm/lib/Support",
13 ]
14 sources = [
15 "AnalysisConsumer.cpp",
16 "CheckerRegistration.cpp",
17 "CheckerRegistry.cpp",
18 "FrontendActions.cpp",
19 "ModelConsumer.cpp",
20 "ModelInjector.cpp",
21 ]
22 }