Skip to content

Commit 4cb13f2

Browse files
carlosgalvezpCarlos Gálvez
andauthored
[clang-tidy] Remove cert-dcl21-cpp check (#80181)
Deprecated since clang-tidy 17. The rule DCL21-CPP has been removed from the CERT guidelines, so it does not make sense to keep the check. Fixes #42788 Co-authored-by: Carlos Gálvez <[email protected]>
1 parent fa42589 commit 4cb13f2

File tree

11 files changed

+3
-285
lines changed

11 files changed

+3
-285
lines changed

clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include "LimitedRandomnessCheck.h"
3434
#include "MutatingCopyCheck.h"
3535
#include "NonTrivialTypesLibcMemoryCallsCheck.h"
36-
#include "PostfixOperatorCheck.h"
3736
#include "ProperlySeededRandomGeneratorCheck.h"
3837
#include "SetLongJmpCheck.h"
3938
#include "StaticObjectExceptionCheck.h"
@@ -239,8 +238,6 @@ class CERTModule : public ClangTidyModule {
239238
CheckFactories.registerCheck<bugprone::SpuriouslyWakeUpFunctionsCheck>(
240239
"cert-con54-cpp");
241240
// DCL
242-
CheckFactories.registerCheck<PostfixOperatorCheck>(
243-
"cert-dcl21-cpp");
244241
CheckFactories.registerCheck<VariadicFunctionDefCheck>("cert-dcl50-cpp");
245242
CheckFactories.registerCheck<bugprone::ReservedIdentifierCheck>(
246243
"cert-dcl51-cpp");

clang-tools-extra/clang-tidy/cert/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ add_clang_library(clangTidyCERTModule
1212
LimitedRandomnessCheck.cpp
1313
MutatingCopyCheck.cpp
1414
NonTrivialTypesLibcMemoryCallsCheck.cpp
15-
PostfixOperatorCheck.cpp
1615
ProperlySeededRandomGeneratorCheck.cpp
1716
SetLongJmpCheck.cpp
1817
StaticObjectExceptionCheck.cpp

clang-tools-extra/clang-tidy/cert/PostfixOperatorCheck.cpp

Lines changed: 0 additions & 80 deletions
This file was deleted.

clang-tools-extra/clang-tidy/cert/PostfixOperatorCheck.h

Lines changed: 0 additions & 34 deletions
This file was deleted.

clang-tools-extra/clangd/TidyFastChecks.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ FAST(cert-con36-c, 2.0)
116116
FAST(cert-con54-cpp, 3.0)
117117
FAST(cert-dcl03-c, 2.0)
118118
FAST(cert-dcl16-c, -1.0)
119-
FAST(cert-dcl21-cpp, 0.0)
120119
FAST(cert-dcl37-c, 3.0)
121120
FAST(cert-dcl50-cpp, -1.0)
122121
FAST(cert-dcl51-cpp, 1.0)

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ Changes in existing checks
109109
Removed checks
110110
^^^^^^^^^^^^^^
111111

112+
- Removed `cert-dcl21-cpp`, which was deprecated since :program:`clang-tidy` 17,
113+
since the rule DCL21-CPP has been removed from the CERT guidelines.
114+
112115
Improvements to include-fixer
113116
-----------------------------
114117

clang-tools-extra/docs/clang-tidy/checks/cert/dcl21-cpp.rst

Lines changed: 0 additions & 28 deletions
This file was deleted.

clang-tools-extra/docs/clang-tidy/checks/list.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ Clang-Tidy Checks
155155
:doc:`bugprone-unused-return-value <bugprone/unused-return-value>`,
156156
:doc:`bugprone-use-after-move <bugprone/use-after-move>`,
157157
:doc:`bugprone-virtual-near-miss <bugprone/virtual-near-miss>`, "Yes"
158-
:doc:`cert-dcl21-cpp <cert/dcl21-cpp>`, "Yes"
159158
:doc:`cert-dcl50-cpp <cert/dcl50-cpp>`,
160159
:doc:`cert-dcl58-cpp <cert/dcl58-cpp>`,
161160
:doc:`cert-env33-c <cert/env33-c>`,

clang-tools-extra/test/clang-tidy/checkers/cert/dcl21-cpp.cpp

Lines changed: 0 additions & 134 deletions
This file was deleted.

clang/docs/tools/clang-formatted-files.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,6 @@ clang-tools-extra/clang-tidy/cert/MutatingCopyCheck.cpp
985985
clang-tools-extra/clang-tidy/cert/MutatingCopyCheck.h
986986
clang-tools-extra/clang-tidy/cert/NonTrivialTypesLibcMemoryCallsCheck.cpp
987987
clang-tools-extra/clang-tidy/cert/NonTrivialTypesLibcMemoryCallsCheck.h
988-
clang-tools-extra/clang-tidy/cert/PostfixOperatorCheck.cpp
989-
clang-tools-extra/clang-tidy/cert/PostfixOperatorCheck.h
990988
clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
991989
clang-tools-extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.h
992990
clang-tools-extra/clang-tidy/cert/SetLongJmpCheck.cpp

llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/cert/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static_library("cert") {
2323
"LimitedRandomnessCheck.cpp",
2424
"MutatingCopyCheck.cpp",
2525
"NonTrivialTypesLibcMemoryCallsCheck.cpp",
26-
"PostfixOperatorCheck.cpp",
2726
"ProperlySeededRandomGeneratorCheck.cpp",
2827
"SetLongJmpCheck.cpp",
2928
"StaticObjectExceptionCheck.cpp",

0 commit comments

Comments
 (0)