[PATCH] D147563: [clang-tidy] Deprecate cert-dcl21-cpp
Carlos Galvez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 4 12:46:19 PDT 2023
carlosgalvezp created this revision.
Herald added subscribers: PiotrZSL, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
carlosgalvezp requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147563
Files:
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
Index: clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst
+++ 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.
Index: clang-tools-extra/docs/ReleaseNotes.rst
===================================================================
--- clang-tools-extra/docs/ReleaseNotes.rst
+++ clang-tools-extra/docs/ReleaseNotes.rst
@@ -183,6 +183,9 @@
<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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147563.510899.patch
Type: text/x-patch
Size: 1188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230404/5ee94bec/attachment.bin>
More information about the cfe-commits
mailing list