[all-commits] [llvm/llvm-project] f0f395: Revert "Reland "[Clang][SemaCXX] Add unused warnin...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Thu Aug 31 11:58:57 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0f395e00e2ec3f1f20ca9021d1554fde73d56c9
      https://github.com/llvm/llvm-project/commit/f0f395e00e2ec3f1f20ca9021d1554fde73d56c9
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2023-08-31 (Thu, 31 Aug 2023)

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

  Log Message:
  -----------
  Revert "Reland "[Clang][SemaCXX] Add unused warning for variables declared in condition expressions""

This reverts commit 92023b15099012a657da07ebf49dd7d94a260f84.

Further issues were uncovered:
- False positive -Wunused-variable on function-static variables with the
  used attribute. https://github.com/ClangBuiltLinux/linux/issues/1926
  A test case needs to be added for this.
- Request for a new flag for these.
  https://reviews.llvm.org/D152495#4628877
  https://reviews.llvm.org/D152495#4628887




More information about the All-commits mailing list