[all-commits] [llvm/llvm-project] 98e07b: Restrict UnnecessaryCopyInitialization check to va...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Tue Sep 15 05:46:32 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 98e07b5596c8692c43770bc4e21a2b19467e35f7
https://github.com/llvm/llvm-project/commit/98e07b5596c8692c43770bc4e21a2b19467e35f7
Author: Felix Berger <flx at google.com>
Date: 2020-09-15 (Tue, 15 Sep 2020)
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:
-----------
Restrict UnnecessaryCopyInitialization check to variables initialized from free functions without arguments
This restriction avoids cases where an alias is returned to an argument and
which could lead to to a false positive change.
More information about the All-commits
mailing list