From: Nico Weber Date: Tue, 20 Oct 2020 14:23:40 +0000 (-0400) Subject: [gn build] assert clang-format does not depend on AST, Frontend, Sema at gn time X-Git-Tag: llvmorg-13-init~8727 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=853553f81b0b5839f623fa0677f5fba8dd742bd1;p=platform%2Fupstream%2Fllvm.git [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. --- 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 89cea97..b2a6e8d 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" ] }