1executable("diagtool") {
2  configs += [ "//llvm/utils/gn/build:clang_code" ]
3  deps = [
4    "//clang/include/clang/Basic:DiagnosticIndexName",
5    "//clang/lib/Basic",
6    "//clang/lib/Frontend",
7    "//llvm/lib/Support",
8  ]
9  sources = [
10    "DiagTool.cpp",
11    "DiagnosticNames.cpp",
12    "FindDiagnosticID.cpp",
13    "ListWarnings.cpp",
14    "ShowEnabledWarnings.cpp",
15    "TreeView.cpp",
16    "diagtool_main.cpp",
17  ]
18}
19