[gn] add ClangIncludeCleanerTests (#213073)

This commit is contained in:
Nico Weber 2026-08-01 11:43:52 -04:00 committed by GitHub
parent 308cb96d70
commit bd427e721e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,32 @@
import("//third-party/unittest/unittest.gni")
unittest("ClangIncludeCleanerTests") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang-tools-extra/include-cleaner/lib",
"//clang/lib/AST",
"//clang/lib/Basic",
"//clang/lib/Format",
"//clang/lib/Frontend",
"//clang/lib/Lex",
"//clang/lib/Serialization",
"//clang/lib/Testing",
"//clang/lib/Tooling/Inclusions/Stdlib",
"//llvm/lib/Support",
"//llvm/lib/Testing/Annotations",
"//llvm/lib/Testing/Support",
]
include_dirs = [
"../lib",
"../include",
]
sources = [
"AnalysisTest.cpp",
"FindHeadersTest.cpp",
"IncludeSpellerTest.cpp",
"LocateSymbolTest.cpp",
"RecordTest.cpp",
"TypesTest.cpp",
"WalkASTTest.cpp",
]
}

View file

@ -10,6 +10,7 @@ group("unittests") {
"clang-move:ClangMoveTests",
"clang-query:ClangQueryTests",
"clang-tidy:ClangTidyTests",
"//clang-tools-extra/include-cleaner/unittests:ClangIncludeCleanerTests",
]
testonly = true
}