[all-commits] [llvm/llvm-project] c0199b: [clang-tidy] Use new mapping matchers

Stephen Kelly via All-commits all-commits at lists.llvm.org
Wed Feb 3 15:21:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0199b2a21705747c999a59bfa77d7fc6e4500a5
      https://github.com/llvm/llvm-project/commit/c0199b2a21705747c999a59bfa77d7fc6e4500a5
  Author: Stephen Kelly <steveire at gmail.com>
  Date:   2021-02-03 (Wed, 03 Feb 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/SpuriouslyWakeUpFunctionsCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp
    M clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
    M clang-tools-extra/clang-tidy/cert/MutatingCopyCheck.cpp
    M clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp
    M clang-tools-extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
    M clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
    M clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
    M clang-tools-extra/clang-tidy/performance/MoveConstArgCheck.cpp
    M clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
    M clang-tools-extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
    M clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
    A clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-rewritten-binop.cpp
    A clang-tools-extra/test/clang-tidy/checkers/readability-container-size-empty-cxx20.cpp

  Log Message:
  -----------
  [clang-tidy] Use new mapping matchers

Use mapAnyOf() and matchers based on it.

Use of binaryOperation() means that modernize-loop-convert and
readability-container-size-empty can now be used with rewritten binary
operators.

Differential Revision: https://reviews.llvm.org/D94131




More information about the All-commits mailing list