| 1 |
import("//llvm/utils/gn/build/compiled_action.gni") |
| 2 |
|
| 3 |
compiled_action("Confusables.inc") { |
| 4 |
tool = "ConfusableTable:clang-tidy-confusable-chars-gen" |
| 5 |
inputs = [ "ConfusableTable/confusables.txt" ] |
| 6 |
outputs = [ "$target_gen_dir/$target_name" ] |
| 7 |
args = [ |
| 8 |
rebase_path(inputs[0], root_build_dir), |
| 9 |
rebase_path(outputs[0], root_build_dir), |
| 10 |
] |
| 11 |
} |
| 12 |
|
| 13 |
static_library("misc") { |
| 14 |
output_name = "clangTidyMiscModule" |
| 15 |
configs += [ "//llvm/utils/gn/build:clang_code" ] |
| 16 |
include_dirs = [ |
| 17 |
target_gen_dir, |
| 18 |
"//clang-tools-extra/include-cleaner/include", |
| 19 |
] |
| 20 |
deps = [ |
| 21 |
":Confusables.inc", |
| 22 |
"//clang-tools-extra/clang-tidy", |
| 23 |
"//clang-tools-extra/clang-tidy/utils", |
| 24 |
"//clang-tools-extra/include-cleaner/lib", |
| 25 |
"//clang/lib/AST", |
| 26 |
"//clang/lib/ASTMatchers", |
| 27 |
"//clang/lib/Analysis", |
| 28 |
"//clang/lib/Basic", |
| 29 |
"//clang/lib/Lex", |
| 30 |
"//clang/lib/Serialization", |
| 31 |
"//clang/lib/Tooling", |
| 32 |
"//llvm/lib/Support", |
| 33 |
] |
| 34 |
sources = [ |
| 35 |
"ConfusableIdentifierCheck.cpp", |
| 36 |
"ConstCorrectnessCheck.cpp", |
| 37 |
"CoroutineHostileRAIICheck.cpp", |
| 38 |
"DefinitionsInHeadersCheck.cpp", |
| 39 |
"HeaderIncludeCycleCheck.cpp", |
| 40 |
"IncludeCleanerCheck.cpp", |
| 41 |
"MiscTidyModule.cpp", |
| 42 |
"MisleadingBidirectional.cpp", |
| 43 |
"MisleadingIdentifier.cpp", |
| 44 |
"MisplacedConstCheck.cpp", |
| 45 |
"NewDeleteOverloadsCheck.cpp", |
| 46 |
"NoRecursionCheck.cpp", |
| 47 |
"NonCopyableObjects.cpp", |
| 48 |
"NonPrivateMemberVariablesInClassesCheck.cpp", |
| 49 |
"RedundantExpressionCheck.cpp", |
| 50 |
"StaticAssertCheck.cpp", |
| 51 |
"ThrowByValueCatchByReferenceCheck.cpp", |
| 52 |
"UnconventionalAssignOperatorCheck.cpp", |
| 53 |
"UniqueptrResetReleaseCheck.cpp", |
| 54 |
"UnusedAliasDeclsCheck.cpp", |
| 55 |
"UnusedParametersCheck.cpp", |
| 56 |
"UnusedUsingDeclsCheck.cpp", |
| 57 |
"UseAnonymousNamespaceCheck.cpp", |
| 58 |
"UseInternalLinkageCheck.cpp", |
| 59 |
] |
| 60 |
} |