[clang-tidy] Ignore implicit code in bugprone-branch-clone
authorPiotr Zegar <me@piotrzegar.pl>
Tue, 23 May 2023 18:45:22 +0000 (18:45 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Tue, 23 May 2023 19:32:36 +0000 (19:32 +0000)
commit42c83e32706e2284acb880468295701743d437c6
tree639a0452082aa3e50b17396fede8e4f6013af9f9
parent77f191e81ed475fbbc8eaa2e2dbe6a0a02f3b0c2
[clang-tidy] Ignore implicit code in bugprone-branch-clone

Implicit code like, template instances, compiler generated
code are not excluded in this check by using
TK_IgnoreUnlessSpelledInSource.

Fixes #62693

Reviewed By: donat.nagy

Differential Revision: https://reviews.llvm.org/D151133
clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone.cpp