[clang-tools-extra] 712dfec - [clang-tidy] Deprecate cert-dcl21-cpp
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 4 23:33:48 PDT 2023
Author: Carlos Galvez
Date: 2023-04-05T06:33:40Z
New Revision: 712dfec1781db8aa92782b98cac5517db548b7f9
URL: https://github.com/llvm/llvm-project/commit/712dfec1781db8aa92782b98cac5517db548b7f9
DIFF: https://github.com/llvm/llvm-project/commit/712dfec1781db8aa92782b98cac5517db548b7f9.diff
LOG: [clang-tidy] Deprecate cert-dcl21-cpp
It is no longer part of the CERT standard. Looking at the
CERT webpage, we can see it has been moved to the Void
section:
https://wiki.sei.cmu.edu/confluence/display/cplusplus/5+The+Void
Differential Revision: https://reviews.llvm.org/D147563
Added:
Modified:
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
Removed:
################################################################################
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst
index 8e57424ae8157..2dfc29e630624 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -183,6 +183,9 @@ Changes in existing checks
<clang-tidy/checks/bugprone/use-after-move>` check to also cover constructor
initializers.
+- Deprecated :doc:`cert-dcl21-cpp
+ <clang-tidy/checks/cert/dcl21-cpp>` check.
+
- Deprecated check-local options `HeaderFileExtensions`
in :doc:`google-build-namespaces
<clang-tidy/checks/google/build-namespaces>` check.
diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst b/clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
index 2b19172f1736c..9845c2776e11d 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
@@ -3,6 +3,10 @@
cert-dcl21-cpp
==============
+.. note::
+ This check is deprecated since it's no longer part of the CERT standard.
+ It will be removed in :program:`clang-tidy` version 19.
+
This check flags postfix ``operator++`` and ``operator--`` declarations
if the return type is not a const object. This also warns if the return type
is a reference type.
More information about the cfe-commits
mailing list