[all-commits] [llvm/llvm-project] 7deca8: [clang-tidy] fix false positive when member initia...

Congcong Cai via All-commits all-commits at lists.llvm.org
Sun Sep 15 18:04:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7deca859e55faf9662c54a00b6e333826d717e19
      https://github.com/llvm/llvm-project/commit/7deca859e55faf9662c54a00b6e333826d717e19
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2024-09-16 (Mon, 16 Sep 2024)

  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 false positive when member initialization depends on structured binging variable in cppcoreguidelines-prefer-member-initializer (#108743)

Fixes: #82970

Detecting dependiences with `varDecl` is too strict. It will ignore the
`bingingDecl`.
This patch wants to use `valueDecl` to match more cases including
`bingingDecl`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list