[clang-tidy] Simplify inaccurate erase check
authorStephen Kelly <steveire@gmail.com>
Sun, 3 Jan 2021 16:43:54 +0000 (16:43 +0000)
committerStephen Kelly <steveire@gmail.com>
Sat, 13 Feb 2021 13:51:27 +0000 (13:51 +0000)
commitf2f920b987f3810863b9d0160cbb52df3fa2ab6f
tree54298010ae2fad9f6cec4a8d081f66e226527ba7
parent1709bb8c7395418236ec94fe3b9d91fed746452b
[clang-tidy] Simplify inaccurate erase check

The normalization of matchers means that this now works in all language
modes.

Differential Revision: https://reviews.llvm.org/D96139
clang-tools-extra/clang-tidy/bugprone/InaccurateEraseCheck.cpp
clang-tools-extra/clang-tidy/bugprone/InaccurateEraseCheck.h
clang-tools-extra/test/clang-tidy/checkers/bugprone-inaccurate-erase.cpp