[clang-tools-extra] de29719 - [clang-tools-extra] Document clang tidy unit tests target
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 7 07:22:04 PST 2022
Author: Richard
Date: 2022-03-07T08:24:08-07:00
New Revision: de29719af2c7d1772e14b45f8da75626735246e6
URL: https://github.com/llvm/llvm-project/commit/de29719af2c7d1772e14b45f8da75626735246e6
DIFF: https://github.com/llvm/llvm-project/commit/de29719af2c7d1772e14b45f8da75626735246e6.diff
LOG: [clang-tools-extra] Document clang tidy unit tests target
Differential Revision: https://reviews.llvm.org/D121019
Added:
Modified:
clang-tools-extra/docs/clang-tidy/Contributing.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/docs/clang-tidy/Contributing.rst b/clang-tools-extra/docs/clang-tidy/Contributing.rst
index b1771574950a8..5849353591cc2 100644
--- a/clang-tools-extra/docs/clang-tidy/Contributing.rst
+++ b/clang-tools-extra/docs/clang-tidy/Contributing.rst
@@ -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
^^^^^^^^^^^^^^^^^^^^^^^^
More information about the cfe-commits
mailing list