ChrisThrasher created this revision. ChrisThrasher added a reviewer: JonasToth. Herald added subscribers: PiotrZSL, carlosgalvezp, xazax.hun. Herald added a reviewer: njames93. Herald added a project: All. ChrisThrasher requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D145856 Files: clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp 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()))));
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()))));
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits