[all-commits] [llvm/llvm-project] 263746: [clang-tidy]Fix PreferMemberInitializer false posi...

Congcong Cai via All-commits all-commits at lists.llvm.org
Fri Oct 27 08:56:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 263746754ab2ad099ffb22112cda5926d7ae3353
      https://github.com/llvm/llvm-project/commit/263746754ab2ad099ffb22112cda5926d7ae3353
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2023-10-27 (Fri, 27 Oct 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/cppcoreguidelines/PreferMemberInitializerCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer.cpp

  Log Message:
  -----------
  [clang-tidy]Fix PreferMemberInitializer false positive for reassignment (#70316)

- assignment twice cannot be simplified to once when assigning to
reference type
- safe assignment cannot be advanced before unsafe assignment




More information about the All-commits mailing list