Index: clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp =================================================================== --- clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp +++ clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp @@ -73,9 +73,9 @@ hasType(referenceType(pointee(hasCanonicalType(templateTypeParmType())))), hasType(referenceType(pointee(substTemplateTypeParmType())))); - const auto AutoTemplateType = varDecl( - anyOf(hasType(autoType()), hasType(referenceType(pointee(autoType()))), - hasType(pointerType(pointee(autoType()))))); + const auto AutoTemplateType = + varDecl(anyOf(hasType(referenceType(pointee(autoType()))), + hasType(pointerType(pointee(autoType()))))); const auto FunctionPointerRef = hasType(hasCanonicalType(referenceType(pointee(functionType()))));