[llvm] r349757 - [gn build] Add build files for clang/lib/{Analysis, Edit, Sema}
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 20 05:39:25 PST 2018
Author: nico
Date: Thu Dec 20 05:39:25 2018
New Revision: 349757
URL: http://llvm.org/viewvc/llvm-project?rev=349757&view=rev
Log:
[gn build] Add build files for clang/lib/{Analysis,Edit,Sema}
Differential Revision: https://reviews.llvm.org/D55913
Added:
llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/
llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/lib/Analysis/
llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/lib/Edit/
llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/lib/Sema/
llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn
Modified:
llvm/trunk/utils/gn/secondary/BUILD.gn
Modified: llvm/trunk/utils/gn/secondary/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/BUILD.gn?rev=349757&r1=349756&r2=349757&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/BUILD.gn Thu Dec 20 05:39:25 2018
@@ -1,8 +1,11 @@
group("default") {
deps = [
"//clang/lib/AST",
+ "//clang/lib/Analysis",
"//clang/lib/Basic",
+ "//clang/lib/Edit",
"//clang/lib/Lex",
+ "//clang/lib/Sema",
"//lld/test",
"//llvm/tools/llvm-undname",
]
Added: llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn?rev=349757&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/include/clang/Sema/BUILD.gn Thu Dec 20 05:39:25 2018
@@ -0,0 +1,46 @@
+import("//clang/utils/TableGen/clang_tablegen.gni")
+
+clang_tablegen("AttrTemplateInstantiate") {
+ args = [
+ "-gen-clang-attr-template-instantiate",
+ "-I",
+ rebase_path("../..", root_out_dir),
+ ]
+ td_file = "../Basic/Attr.td"
+}
+
+clang_tablegen("AttrParsedAttrList") {
+ args = [
+ "-gen-clang-attr-parsed-attr-list",
+ "-I",
+ rebase_path("../..", root_out_dir),
+ ]
+ td_file = "../Basic/Attr.td"
+}
+
+clang_tablegen("AttrParsedAttrKinds") {
+ args = [
+ "-gen-clang-attr-parsed-attr-kinds",
+ "-I",
+ rebase_path("../..", root_out_dir),
+ ]
+ td_file = "../Basic/Attr.td"
+}
+
+clang_tablegen("AttrSpellingListIndex") {
+ args = [
+ "-gen-clang-attr-spelling-index",
+ "-I",
+ rebase_path("../..", root_out_dir),
+ ]
+ td_file = "../Basic/Attr.td"
+}
+
+clang_tablegen("AttrParsedAttrImpl") {
+ args = [
+ "-gen-clang-attr-parsed-attr-impl",
+ "-I",
+ rebase_path("../..", root_out_dir),
+ ]
+ td_file = "../Basic/Attr.td"
+}
Added: llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn?rev=349757&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/Analysis/BUILD.gn Thu Dec 20 05:39:25 2018
@@ -0,0 +1,36 @@
+static_library("Analysis") {
+ output_name = "clangAnalysis"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/include/clang/AST:StmtDataCollectors",
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/Lex",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "AnalysisDeclContext.cpp",
+ "BodyFarm.cpp",
+ "CFG.cpp",
+ "CFGReachabilityAnalysis.cpp",
+ "CFGStmtMap.cpp",
+ "CallGraph.cpp",
+ "CloneDetection.cpp",
+ "CocoaConventions.cpp",
+ "CodeInjector.cpp",
+ "ConstructionContext.cpp",
+ "Consumed.cpp",
+ "Dominators.cpp",
+ "ExprMutationAnalyzer.cpp",
+ "LiveVariables.cpp",
+ "ObjCNoReturn.cpp",
+ "PostOrderCFGView.cpp",
+ "ProgramPoint.cpp",
+ "ReachableCode.cpp",
+ "ThreadSafety.cpp",
+ "ThreadSafetyCommon.cpp",
+ "ThreadSafetyLogical.cpp",
+ "ThreadSafetyTIL.cpp",
+ "UninitializedValues.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn?rev=349757&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/Edit/BUILD.gn Thu Dec 20 05:39:25 2018
@@ -0,0 +1,15 @@
+static_library("Edit") {
+ output_name = "clangEdit"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/Lex",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "Commit.cpp",
+ "EditedSource.cpp",
+ "RewriteObjCFoundationAPI.cpp",
+ ]
+}
Added: llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn?rev=349757&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/Sema/BUILD.gn Thu Dec 20 05:39:25 2018
@@ -0,0 +1,66 @@
+static_library("Sema") {
+ output_name = "clangSema"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/include/clang/Sema:AttrParsedAttrImpl",
+ "//clang/include/clang/Sema:AttrParsedAttrKinds",
+ "//clang/include/clang/Sema:AttrParsedAttrList",
+ "//clang/include/clang/Sema:AttrSpellingListIndex",
+ "//clang/include/clang/Sema:AttrTemplateInstantiate",
+ "//clang/lib/AST",
+ "//clang/lib/Analysis",
+ "//clang/lib/Basic",
+ "//clang/lib/Edit",
+ "//clang/lib/Lex",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "AnalysisBasedWarnings.cpp",
+ "CodeCompleteConsumer.cpp",
+ "DeclSpec.cpp",
+ "DelayedDiagnostic.cpp",
+ "IdentifierResolver.cpp",
+ "JumpDiagnostics.cpp",
+ "MultiplexExternalSemaSource.cpp",
+ "ParsedAttr.cpp",
+ "Scope.cpp",
+ "ScopeInfo.cpp",
+ "Sema.cpp",
+ "SemaAccess.cpp",
+ "SemaAttr.cpp",
+ "SemaCUDA.cpp",
+ "SemaCXXScopeSpec.cpp",
+ "SemaCast.cpp",
+ "SemaChecking.cpp",
+ "SemaCodeComplete.cpp",
+ "SemaConsumer.cpp",
+ "SemaCoroutine.cpp",
+ "SemaDecl.cpp",
+ "SemaDeclAttr.cpp",
+ "SemaDeclCXX.cpp",
+ "SemaDeclObjC.cpp",
+ "SemaExceptionSpec.cpp",
+ "SemaExpr.cpp",
+ "SemaExprCXX.cpp",
+ "SemaExprMember.cpp",
+ "SemaExprObjC.cpp",
+ "SemaFixItUtils.cpp",
+ "SemaInit.cpp",
+ "SemaLambda.cpp",
+ "SemaLookup.cpp",
+ "SemaObjCProperty.cpp",
+ "SemaOpenMP.cpp",
+ "SemaOverload.cpp",
+ "SemaPseudoObject.cpp",
+ "SemaStmt.cpp",
+ "SemaStmtAsm.cpp",
+ "SemaStmtAttr.cpp",
+ "SemaTemplate.cpp",
+ "SemaTemplateDeduction.cpp",
+ "SemaTemplateInstantiate.cpp",
+ "SemaTemplateInstantiateDecl.cpp",
+ "SemaTemplateVariadic.cpp",
+ "SemaType.cpp",
+ "TypeLocBuilder.cpp",
+ ]
+}
More information about the llvm-commits
mailing list