[all-commits] [llvm/llvm-project] 72b6a5: [clang-tidy] fix false positives when using name-i...

Congcong Cai via All-commits all-commits at lists.llvm.org
Wed Jan 8 04:57:12 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72b6a573639fe85eb121c66e47b2c9e6ea64df5e
      https://github.com/llvm/llvm-project/commit/72b6a573639fe85eb121c66e47b2c9e6ea64df5e
  Author: Congcong Cai <congcongcai0907 at 163.com>
  Date:   2025-01-08 (Wed, 08 Jan 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/UnusedLocalNonTrivialVariableCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/bugprone/unused-local-non-trivial-variable.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/unused-local-non-trivial-variable-name-independence.cpp

  Log Message:
  -----------
  [clang-tidy] fix false positives when using name-independent variables after C++26 for bugprone-unused-local-non-trivial-variable (#121783)

Fixed: #121731
According to https://eel.is/c++draft/basic.scope.scope#5, name
independent declaration should not be warned as unused



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