[all-commits] [llvm/llvm-project] a189b3: [clang-tidy] performance-for-range-copy: Don't tri...

Felix Berger via All-commits all-commits at lists.llvm.org
Tue Mar 2 17:04:09 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a189b3b9e8bb398d9fe8770956f8ad1d58c2a214
      https://github.com/llvm/llvm-project/commit/a189b3b9e8bb398d9fe8770956f8ad1d58c2a214
  Author: Felix Berger <flx at google.com>
  Date:   2021-03-02 (Tue, 02 Mar 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/performance/ForRangeCopyCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/performance-for-range-copy.cpp

  Log Message:
  -----------
  [clang-tidy] performance-for-range-copy: Don't trigger on implicit type conversions.

This disables the check for false positive cases where implicit type conversion
through either an implicit single argument constructor or a member conversion
operator is triggered when constructing the loop variable.

Fix the test cases that meant to cover these cases.

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

Reviewed-by: hokein




More information about the All-commits mailing list