From 1f228e572da238c656958bf7f85b371d773eb588 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Mon, 29 Jun 2020 15:28:07 +0100 Subject: [PATCH] [clang-tidy] Fix hicpp-named-paramater Currently this alias instantiates the readability-identifier-naming check, just swap it out to use the readability-named-paramater check. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D82711 --- clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp b/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp index ad367dc..253c389 100644 --- a/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp @@ -9,6 +9,7 @@ #include "../ClangTidy.h" #include "../ClangTidyModule.h" #include "../ClangTidyModuleRegistry.h" +#include "../bugprone/UndelegatedConstructorCheck.h" #include "../bugprone/UseAfterMoveCheck.h" #include "../cppcoreguidelines/AvoidGotoCheck.h" #include "../cppcoreguidelines/NoMallocCheck.h" @@ -20,7 +21,6 @@ #include "../google/ExplicitConstructorCheck.h" #include "../misc/NewDeleteOverloadsCheck.h" #include "../misc/StaticAssertCheck.h" -#include "../bugprone/UndelegatedConstructorCheck.h" #include "../modernize/AvoidCArraysCheck.h" #include "../modernize/DeprecatedHeadersCheck.h" #include "../modernize/UseAutoCheck.h" @@ -34,7 +34,7 @@ #include "../performance/NoexceptMoveConstructorCheck.h" #include "../readability/BracesAroundStatementsCheck.h" #include "../readability/FunctionSizeCheck.h" -#include "../readability/IdentifierNamingCheck.h" +#include "../readability/NamedParameterCheck.h" #include "../readability/UppercaseLiteralSuffixCheck.h" #include "ExceptionBaseclassCheck.h" #include "MultiwayPathsCoveredCheck.h" @@ -65,7 +65,7 @@ public: "hicpp-explicit-conversions"); CheckFactories.registerCheck( "hicpp-function-size"); - CheckFactories.registerCheck( + CheckFactories.registerCheck( "hicpp-named-parameter"); CheckFactories.registerCheck( "hicpp-invalid-access-moved"); -- 2.7.4