[clang-tidy] Clarify bugprone-branch-clone diagnostic message
authorDonát Nagy <m1nagdon@protonmail.com>
Mon, 13 Feb 2023 14:35:24 +0000 (15:35 +0100)
committerDonát Nagy <m1nagdon@protonmail.com>
Fri, 17 Feb 2023 16:05:19 +0000 (17:05 +0100)
commit2b51c8cd2ac6b9a6a5b713700c8299954980242d
treecb3e47a429647b1b3b7da49144d43b45e3527dd1
parentdf82394e7a2d06506718cafa347bf7827c79fc4f
[clang-tidy] Clarify bugprone-branch-clone diagnostic message

This simple commit inserts "body" into the message "repeated branch _body_ in
conditional chain". This is motivated by feedback from a user who (at first
glance) thought that clang-tidy complained about a repeated branch _condition_.

Differential Revision: https://reviews.llvm.org/D143917
clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone-if-constexpr-template.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone-macro-crash.c
clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone.cpp