[all-commits] [llvm/llvm-project] efa4db: [clang-tidy] performance-unnecessary-copy-initiali...
Felix Berger via All-commits
all-commits at lists.llvm.org
Wed Jun 9 13:37:34 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: efa4dbc32ca9b7f3319edbcc6ac502ea962c8f0a
https://github.com/llvm/llvm-project/commit/efa4dbc32ca9b7f3319edbcc6ac502ea962c8f0a
Author: Felix Berger <flx at google.com>
Date: 2021-06-09 (Wed, 09 Jun 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: Look at the canonical type when checking for aliases.
This fixes a false positive case where for instance a pointer is obtained and declared using `auto`.
Differential Revision: https://reviews.llvm.org/D103018
Reviewed-by: ymandel
More information about the All-commits
mailing list