[all-commits] [llvm/llvm-project] 456d07: Reland: [clang][AST] Print name instead of type wh...

Takuya Shimizu via All-commits all-commits at lists.llvm.org
Wed May 24 05:40:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 456d072405d29ac731ad22fa1ec198b9f8265c4e
      https://github.com/llvm/llvm-project/commit/456d072405d29ac731ad22fa1ec198b9f8265c4e
  Author: Takuya Shimizu <shimizu2486 at gmail.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/Interp/Interp.cpp
    M clang/test/AST/Interp/cxx20.cpp
    M clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
    M clang/test/SemaCXX/constant-expression-cxx2a.cpp
    M clang/test/SemaCXX/cxx2a-consteval.cpp

  Log Message:
  -----------
  Reland: [clang][AST] Print name instead of type when diagnosing uninitialized subobject in constexpr variables

This patch improves the diagnostic on uninitialized subobjects in constexpr variables by modifying the diagnostic message to display the subobject's name instead of its type.

Fixes https://github.com/llvm/llvm-project/issues/58601
Differential Revision: https://reviews.llvm.org/D146358


  Commit: 29dc47a9eeeb2e080170109e3e2fb3cd5aad58d2
      https://github.com/llvm/llvm-project/commit/29dc47a9eeeb2e080170109e3e2fb3cd5aad58d2
  Author: Takuya Shimizu <shimizu2486 at gmail.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Sema/warn-shadow.c
    M clang/test/SemaCXX/warn-shadow-in-lambdas.cpp
    M clang/test/SemaCXX/warn-shadow.cpp

  Log Message:
  -----------
  [clang][Sema] `-Wshadow` warns about shadowings by static local variables

This patch makes `-Wshadow` warn about the shadowings by static local variables.

Fixes https://github.com/llvm/llvm-project/issues/62850
Differential Revision: https://reviews.llvm.org/D151214


Compare: https://github.com/llvm/llvm-project/compare/94d608d41026...29dc47a9eeeb


More information about the All-commits mailing list