new clang-tidy checker for assignments within condition clause of if statement
authorDmitri Gribenko <gribozavr@gmail.com>
Tue, 5 Jul 2022 20:48:53 +0000 (22:48 +0200)
committerDmitri Gribenko <gribozavr@gmail.com>
Tue, 5 Jul 2022 21:04:12 +0000 (23:04 +0200)
commit05130a6ba7d9974136388c1fbe63125596325d2e
tree55e24731c8cbb179453745707ee537fcf64fbb03
parentac3e26bcffa29d3519f87be678ad09431a6bf6f2
new clang-tidy checker for assignments within condition clause of if statement

new clang-tidy checker for assignments within the condition clause of an 'if' statement.

Reviewed By: gribozavr2

Differential Revision: https://reviews.llvm.org/D127114
clang-tools-extra/clang-tidy/bugprone/AssignmentInIfConditionCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/bugprone/AssignmentInIfConditionCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone/assignment-in-if-condition.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone-assignment-in-if-condition.cpp [new file with mode: 0644]