[clang-tools-extra] Document clang tidy unit tests target
authorRichard <legalize@xmission.com>
Fri, 4 Mar 2022 00:18:08 +0000 (17:18 -0700)
committerRichard <legalize@xmission.com>
Mon, 7 Mar 2022 15:24:08 +0000 (08:24 -0700)
Differential Revision: https://reviews.llvm.org/D121019

clang-tools-extra/docs/clang-tidy/Contributing.rst

index b177157..5849353 100644 (file)
@@ -364,6 +364,11 @@ other support classes by writing a unit test than by writing a ``FileCheck`` int
 test.  The ``ASTMatchersTests`` target contains unit tests for the public AST matcher
 classes and is a good source of testing idioms for matchers.
 
+You can build the Clang-tidy unit tests by building the ``ClangTidyTests`` target.
+Test targets in LLVM and Clang are excluded from the "build all" style action of
+IDE-based CMake generators, so you need to explicitly build the target for the unit
+tests to be built.
+
 Making your check robust
 ^^^^^^^^^^^^^^^^^^^^^^^^