[clang-itdy] Simplify virtual near-miss check
authorStephen Kelly <steveire@gmail.com>
Tue, 29 Dec 2020 13:18:57 +0000 (13:18 +0000)
committerStephen Kelly <steveire@gmail.com>
Sat, 20 Feb 2021 22:02:00 +0000 (22:02 +0000)
commit9a4b574dd6a07d6811356529ebb8a3f15d6e40a2
tree079912fbaabab4de143cd15d059484178422e4bd
parenta852234f70e344b238824b9d71e8df9c46de62f2
[clang-itdy] Simplify virtual near-miss check

Diagnose the problem in templates in the context of the template
declaration instead of in the context of all of the (possibly very many)
template instantiations.

Differential Revision: https://reviews.llvm.org/D96224
clang-tools-extra/clang-tidy/bugprone/VirtualNearMissCheck.cpp
clang-tools-extra/clang-tidy/bugprone/VirtualNearMissCheck.h
clang-tools-extra/test/clang-tidy/checkers/bugprone-virtual-near-miss.cpp