Index: clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp =================================================================== --- clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp +++ clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp @@ -74,15 +74,15 @@ // lead to an assertion failure when using hasName(std::string) being used // in the matcher below. If empty then exit indicating no move calls present // for the function argument being examined. - const auto paramName = Param.getName(); + const auto ParamName = Param.getName(); - if (paramName.empty()) { + if (ParamName.empty()) { return false; } auto Matches = match( callExpr( callee(functionDecl(hasName("::std::move"))), argumentCountIs(1), - hasArgument(0, declRefExpr(to(parmVarDecl(hasName(paramName)))))), + hasArgument(0, declRefExpr(to(parmVarDecl(hasName(ParamName)))))), Context); return !Matches.empty();