[clang-tools-extra] 7ca1269 - [clang-tidy][docs] Fix ExplicitConstructorCheck example links (#229932)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 11 08:00:13 PDT 2026
Author: Mehdi Amini
Date: 2026-10-11T15:00:07Z
New Revision: 7ca12695011c0430086cc298992d10609843cad5
URL: https://github.com/llvm/llvm-project/commit/7ca12695011c0430086cc298992d10609843cad5
DIFF: https://github.com/llvm/llvm-project/commit/7ca12695011c0430086cc298992d10609843cad5.diff
LOG: [clang-tidy][docs] Fix ExplicitConstructorCheck example links (#229932)
Point the contribution guide at the current
misc/ExplicitConstructorCheck header and implementation. Replace the
obsolete Phabricator source-browser link with the GitHub source link.
Assisted-by: Codex
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 7534b69cec2f6..71c1334428814 100644
--- a/clang-tools-extra/docs/clang-tidy/Contributing.rst
+++ b/clang-tools-extra/docs/clang-tidy/Contributing.rst
@@ -225,10 +225,10 @@ which can further inspect them and report diagnostics.
}
(If you want to see an example of a useful check, look at
-`clang-tidy/google/ExplicitConstructorCheck.h
-<https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/google/ExplicitConstructorCheck.h>`_
-and `clang-tidy/google/ExplicitConstructorCheck.cpp
-<https://reviews.llvm.org/
diff usion/L/browse/clang-tools-extra/trunk/clang-tidy/google/ExplicitConstructorCheck.cpp>`_).
+`clang-tidy/misc/ExplicitConstructorCheck.h
+<https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/misc/ExplicitConstructorCheck.h>`_
+and `clang-tidy/misc/ExplicitConstructorCheck.cpp
+<https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/misc/ExplicitConstructorCheck.cpp>`_).
If you need to interact with macros or preprocessor directives, you will want
to override the method ``registerPPCallbacks``. The ``add_new_check.py``
More information about the cfe-commits
mailing list