"//clang-tools-extra/clang-tidy:all-checks",
"//clang-tools-extra/clang-tidy:clang-tidy-config",
"//clang-tools-extra/clangd/support",
+ "//clang-tools-extra/include-cleaner/lib",
"//clang-tools-extra/pseudo/lib",
"//clang/lib/AST",
"//clang/lib/ASTMatchers",
include_dirs = [
".",
+ # For "clang-include-cleaner/..." includes.
+ "//clang-tools-extra/include-cleaner/include",
+
# For "clang-pseudo/..." includes.
"//clang-tools-extra/pseudo/include",
"//clang/lib/Tooling/Core",
"//llvm/lib/Support",
]
- include_dirs = [ "../.." ]
+ include_dirs = [
+ "../..",
+
+ # For "clang-include-cleaner/..." includes.
+ "//clang-tools-extra/include-cleaner/include",
+ ]
sources = [
"AddUsing.cpp",
"AnnotateHighlightings.cpp",
]
}
- include_dirs = [ ".." ]
+ include_dirs = [
+ "..",
+
+ # For "clang-include-cleaner/..." includes.
+ "//clang-tools-extra/include-cleaner/include",
+ ]
sources = [
"Check.cpp",
"ClangdMain.cpp",
--- /dev/null
+static_library("lib") {
+ output_name = "clangIncludeCleaner"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/AST",
+ "//clang/lib/Basic",
+ "//clang/lib/Format",
+ "//clang/lib/Tooling/Core",
+ "//clang/lib/Tooling/Inclusions",
+ "//clang/lib/Tooling/Inclusions/Stdlib",
+ "//llvm/lib/Support",
+ ]
+ include_dirs = [ "../include" ]
+ sources = [
+ "Analysis.cpp",
+ "FindHeaders.cpp",
+ "HTMLReport.cpp",
+ "LocateSymbol.cpp",
+ "Record.cpp",
+ "Types.cpp",
+ "WalkAST.cpp",
+ ]
+}