[clang-tidy]: fix false positive of cert-oop54-cpp check.
authorTamás Zolnai <tamas.zolnai@collabora.com>
Sat, 4 Apr 2020 15:17:52 +0000 (17:17 +0200)
committerTamás Zolnai <tamas.zolnai@collabora.com>
Sat, 4 Apr 2020 15:19:17 +0000 (17:19 +0200)
commit0f9e1e3ae750df483b7fff905a8bc89262e3179e
tree5749221c834fe5459f2668f57c6267127baa0c2c
parent2e9839729d3708311dead60240c8d00ddc650032
[clang-tidy]: fix false positive of cert-oop54-cpp check.

Summary:
It seems we need a different matcher for binary operator
in a template context.

Fixes this issue:
https://bugs.llvm.org/show_bug.cgi?id=44499

Reviewers: aaron.ballman, alexfh, hokein, njames93

Reviewed By: aaron.ballman

Subscribers: xazax.hun, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D76990
clang-tools-extra/clang-tidy/bugprone/UnhandledSelfAssignmentCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone-unhandled-self-assignment.cpp