[all-commits] [llvm/llvm-project] 90453f: [Clang][Sema] Warn unused cxx vardecl which entire...
Youngsuk Kim via All-commits
all-commits at lists.llvm.org
Thu Apr 4 17:45:40 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 90453f4a9a8955ac612959504941153aa376cb0c
https://github.com/llvm/llvm-project/commit/90453f4a9a8955ac612959504941153aa376cb0c
Author: Youngsuk Kim <joseph942010 at gmail.com>
Date: 2024-04-04 (Thu, 04 Apr 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/AST/Decl.h
M clang/lib/Sema/SemaDecl.cpp
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/SemaCXX/warn-unused-but-set-variables-cpp.cpp
Log Message:
-----------
[Clang][Sema] Warn unused cxx vardecl which entirely consists condition expr of if/while/for construct (#87348)
Emit `-Wunused-but-set-variable` warning on C++ variables whose
declaration (with initializer) entirely consist the condition expression
of a if/while/for construct but are not actually used in the body of the
if/while/for construct.
Fixes #41447
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