[all-commits] [llvm/llvm-project] 77f191: [clang-tidy] Improve bugprone-branch-clone with su...
Piotr Zegar via All-commits
all-commits at lists.llvm.org
Tue May 23 12:32:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 77f191e81ed475fbbc8eaa2e2dbe6a0a02f3b0c2
https://github.com/llvm/llvm-project/commit/77f191e81ed475fbbc8eaa2e2dbe6a0a02f3b0c2
Author: Piotr Zegar <me at piotrzegar.pl>
Date: 2023-05-23 (Tue, 23 May 2023)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/bugprone/branch-clone.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone-fallthrough.cpp
Log Message:
-----------
[clang-tidy] Improve bugprone-branch-clone with support for fallthrough attribute
Ignore duplicated switch cases with [[fallthrough]] attribute to reduce false positives.
Fixes: #47588
Reviewed By: donat.nagy
Differential Revision: https://reviews.llvm.org/D147889
Commit: 42c83e32706e2284acb880468295701743d437c6
https://github.com/llvm/llvm-project/commit/42c83e32706e2284acb880468295701743d437c6
Author: Piotr Zegar <me at piotrzegar.pl>
Date: 2023-05-23 (Tue, 23 May 2023)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone.cpp
Log Message:
-----------
[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
Compare: https://github.com/llvm/llvm-project/compare/8b17728214ec...42c83e32706e
More information about the All-commits
mailing list