[all-commits] [llvm/llvm-project] 84f0a3: [Clang] Do not warn on unused lifetime-extending v...

cor3ntin via All-commits all-commits at lists.llvm.org
Tue Apr 5 12:03:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84f0a36b14bbd464d65cb1a6135134072b828447
      https://github.com/llvm/llvm-project/commit/84f0a36b14bbd464d65cb1a6135134072b828447
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2022-04-05 (Tue, 05 Apr 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/SemaCXX/warn-unused-variables.cpp

  Log Message:
  -----------
  [Clang] Do not warn on unused lifetime-extending vars with side effects...

const auto & var = ObjectWithSideEffects();

Fixes https://github.com/llvm/llvm-project/issues/54489

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list