[llvm] 721875d - Reland "[gn build] (manually) port b94db7ed7eaf (Confusables.inc)"
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 22 07:39:01 PDT 2022
Author: Nico Weber
Date: 2022-06-22T10:38:14-04:00
New Revision: 721875db2b8a1bff8ac2ed353aca7809904d7187
URL: https://github.com/llvm/llvm-project/commit/721875db2b8a1bff8ac2ed353aca7809904d7187
DIFF: https://github.com/llvm/llvm-project/commit/721875db2b8a1bff8ac2ed353aca7809904d7187.diff
LOG: Reland "[gn build] (manually) port b94db7ed7eaf (Confusables.inc)"
b94db7ed7eaf relanded in c3574ef739fb.
This relands commit 180bae08a04d4dc, rebased across the new version of
commit c3574ef739fb, and rebased across 10f7255d32b690.
Added:
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/ConfusableTable/BUILD.gn
Modified:
clang-tools-extra/clang-tidy/misc/ConfusableTable/CMakeLists.txt
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/BUILD.gn
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/misc/ConfusableTable/CMakeLists.txt b/clang-tools-extra/clang-tidy/misc/ConfusableTable/CMakeLists.txt
index 56eb23ff05dd3..836863c80b762 100644
--- a/clang-tools-extra/clang-tidy/misc/ConfusableTable/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/misc/ConfusableTable/CMakeLists.txt
@@ -1 +1,3 @@
-add_llvm_executable(make-confusable-table BuildConfusableTable.cpp)
+add_llvm_executable(make-confusable-table
+ BuildConfusableTable.cpp
+ )
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/BUILD.gn
index 5463d61e5ff84..aa7c11170c667 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/BUILD.gn
@@ -1,7 +1,22 @@
+import("//llvm/utils/gn/build/compiled_action.gni")
+
+compiled_action("Confusables.inc") {
+ tool = "ConfusableTable:make_confusable_table"
+
+ inputs = [ "ConfusableTable/confusables.txt" ]
+ outputs = [ "$target_gen_dir/$target_name" ]
+ args = [
+ rebase_path(inputs[0], root_build_dir),
+ rebase_path(outputs[0], root_build_dir),
+ ]
+}
+
static_library("misc") {
output_name = "clangTidyMiscModule"
configs += [ "//llvm/utils/gn/build:clang_code" ]
+ include_dirs = [ target_gen_dir ]
deps = [
+ ":Confusables.inc",
"//clang-tools-extra/clang-tidy",
"//clang-tools-extra/clang-tidy/utils",
"//clang/lib/AST",
@@ -14,6 +29,7 @@ static_library("misc") {
"//llvm/lib/Support",
]
sources = [
+ "ConfusableIdentifierCheck.cpp",
"DefinitionsInHeadersCheck.cpp",
"MiscTidyModule.cpp",
"MisleadingBidirectional.cpp",
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/ConfusableTable/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/ConfusableTable/BUILD.gn
new file mode 100644
index 0000000000000..41be2ae88d7cb
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/ConfusableTable/BUILD.gn
@@ -0,0 +1,4 @@
+executable("make_confusable_table") {
+ deps = [ "//llvm/lib/Support" ]
+ sources = [ "BuildConfusableTable.cpp" ]
+}
More information about the llvm-commits
mailing list