[all-commits] [llvm/llvm-project] 5dbe3b: [clang-tidy] performance-unnecessary-copy-initiali...
Felix Berger via All-commits
all-commits at lists.llvm.org
Wed Jun 9 12:54:21 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5dbe3bf4b8dbb7e67d41c7c1360f15d512dd72a0
https://github.com/llvm/llvm-project/commit/5dbe3bf4b8dbb7e67d41c7c1360f15d512dd72a0
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/clang-tidy/performance/UnnecessaryCopyInitialization.h
M clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization-allowed-types.cpp
M clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization.cpp
Log Message:
-----------
[clang-tidy] performance-unnecessary-copy-initialization: Remove the complete statement when the copied variable is unused.
It is not useful to keep the statement around and can lead to compiler
warnings when -Wall (-Wunused-variable specifically) turned on.
Differential Revision: https://reviews.llvm.org/D102175
Reviewed-by: ymandel
More information about the All-commits
mailing list