[all-commits] [llvm/llvm-project] 0ec812: [clang-tidy] performance-unnecessary-copy-initiali...

Felix Berger via All-commits all-commits at lists.llvm.org
Mon Jul 12 13:23:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ec812023b43992810499b04222348fdbdb41ef2
      https://github.com/llvm/llvm-project/commit/0ec812023b43992810499b04222348fdbdb41ef2
  Author: Felix Berger <flx at google.com>
  Date:   2021-07-12 (Mon, 12 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: Do not remove comments on new lines.

When deleting the copy assignment statement because copied variable is not used
only remove trailing comments on the same line.

Differential Revision: https://reviews.llvm.org/D105734

Reviewed-by: ymandel




More information about the All-commits mailing list