[PATCH] D157181: [clang-tidy] Re-add cppcoreguidelines-macro-to-enum alias
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 5 00:41:01 PDT 2023
PiotrZSL created this revision.
PiotrZSL added reviewers: njames93, carlosgalvezp.
Herald added subscribers: jeroen.dobbelaere, shchenz, kbarton, xazax.hun, nemanjai.
Herald added a project: All.
PiotrZSL requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
Looks like somewere in clang-16 this alias were removed,
even that is mention in clang-tidy 15 release notes.
Fixes: #64342
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157181
Files:
clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
Index: clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
===================================================================
--- clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
+++ clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
@@ -12,6 +12,7 @@
#include "../misc/NonPrivateMemberVariablesInClassesCheck.h"
#include "../misc/UnconventionalAssignOperatorCheck.h"
#include "../modernize/AvoidCArraysCheck.h"
+#include "../modernize/MacroToEnumCheck.h"
#include "../modernize/UseDefaultMemberInitCheck.h"
#include "../modernize/UseOverrideCheck.h"
#include "../performance/NoexceptDestructorCheck.h"
@@ -77,6 +78,8 @@
"cppcoreguidelines-init-variables");
CheckFactories.registerCheck<InterfacesGlobalInitCheck>(
"cppcoreguidelines-interfaces-global-init");
+ CheckFactories.registerCheck<modernize::MacroToEnumCheck>(
+ "cppcoreguidelines-macro-to-enum");
CheckFactories.registerCheck<MacroUsageCheck>(
"cppcoreguidelines-macro-usage");
CheckFactories.registerCheck<MisleadingCaptureDefaultByValueCheck>(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157181.547458.patch
Type: text/x-patch
Size: 1152 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230805/bc9295a3/attachment.bin>
More information about the cfe-commits
mailing list