[llvm] 853553f - [gn build] assert clang-format does not depend on AST, Frontend, Sema at gn time

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 07:25:17 PDT 2020


Author: Nico Weber
Date: 2020-10-20T10:23:42-04:00
New Revision: 853553f81b0b5839f623fa0677f5fba8dd742bd1

URL: https://github.com/llvm/llvm-project/commit/853553f81b0b5839f623fa0677f5fba8dd742bd1
DIFF: https://github.com/llvm/llvm-project/commit/853553f81b0b5839f623fa0677f5fba8dd742bd1.diff

LOG: [gn build] assert clang-format does not depend on AST, Frontend, Sema at gn time

To catch things like https://reviews.llvm.org/D69854 and
https://reviews.llvm.org/D89708 earlier next time they happen.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/clang/tools/clang-format/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang/tools/clang-format/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-format/BUILD.gn
index 89cea975a51a7..b2a6e8db40493 100644
--- a/llvm/utils/gn/secondary/clang/tools/clang-format/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/clang-format/BUILD.gn
@@ -7,5 +7,10 @@ executable("clang-format") {
     "//clang/lib/Tooling/Core",
     "//llvm/lib/Support",
   ]
+  assert_no_deps = [
+    "//clang/lib/AST/",
+    "//clang/lib/Frontend/",
+    "//clang/lib/Sema/",
+  ]
   sources = [ "ClangFormat.cpp" ]
 }


        


More information about the llvm-commits mailing list