[clang-tidy] Added a case to UnconventionalAssignOperatorCheck.
authorBalázs Kéri <1.int32@gmail.com>
Wed, 19 Feb 2020 09:06:58 +0000 (10:06 +0100)
committerBalázs Kéri <1.int32@gmail.com>
Wed, 19 Feb 2020 09:07:34 +0000 (10:07 +0100)
commitfa6aef44277230adecb541c78a71978172accd5c
tree7e26a21ac161578ed8ed3b08bcb2a73265a85dce
parent7cbf710396df77e854bbb2611492336c0d37b996
[clang-tidy] Added a case to UnconventionalAssignOperatorCheck.

Summary:
The check accepts now a `return (*this = something);` as return
statement too (beneath of `*this`).

Reviewers: alexfh, hokein, aaron.ballman, JonasToth

Reviewed By: aaron.ballman

Subscribers: xazax.hun, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D74529
clang-tools-extra/clang-tidy/misc/UnconventionalAssignOperatorCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/misc-unconventional-assign-operator.cpp