[clang-tidy] Use new mapping matchers
authorStephen Kelly <steveire@gmail.com>
Sat, 2 Jan 2021 21:18:29 +0000 (21:18 +0000)
committerStephen Kelly <steveire@gmail.com>
Wed, 3 Feb 2021 23:21:17 +0000 (23:21 +0000)
commitc0199b2a21705747c999a59bfa77d7fc6e4500a5
tree3eb505feb2b5641a88098c5b227b9fbf870ab36d
parent1f06f41993b6363e6b2c4f22a13488a3e687f31b
[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
16 files changed:
clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
clang-tools-extra/clang-tidy/bugprone/SpuriouslyWakeUpFunctionsCheck.cpp
clang-tools-extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
clang-tools-extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp
clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
clang-tools-extra/clang-tidy/cert/MutatingCopyCheck.cpp
clang-tools-extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp
clang-tools-extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
clang-tools-extra/clang-tidy/performance/MoveConstArgCheck.cpp
clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
clang-tools-extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
clang-tools-extra/test/clang-tidy/checkers/modernize-loop-convert-rewritten-binop.cpp [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/checkers/readability-container-size-empty-cxx20.cpp [new file with mode: 0644]