[all-commits] [llvm/llvm-project] 00edae: [clang-tidy] performance-unnecessary-copy-initiali...
Felix Berger via All-commits
all-commits at lists.llvm.org
Thu Jul 22 12:18:07 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 00edae9203c9a4f50da058d4bd25dc2e6a4930c1
https://github.com/llvm/llvm-project/commit/00edae9203c9a4f50da058d4bd25dc2e6a4930c1
Author: Felix Berger <flx at google.com>
Date: 2021-07-22 (Thu, 22 Jul 2021)
Changed paths:
M clang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
M clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization.cpp
Log Message:
-----------
[clang-tidy] performance-unnecessary-copy-initialization: Disable check when variable and initializer have different replaced template param types.
This can happen when a template with two parameter types is instantiated with a
single type. The fix would only be valid for this instantiation but fail for
others that rely on an implicit type conversion.
The test cases illustrate when the check should trigger and when not.
Differential Revision: https://reviews.llvm.org/D106011
More information about the All-commits
mailing list