[all-commits] [llvm/llvm-project] e3f0ce: [Clang] Do not emit nodiscard warnings for the bas...

cor3ntin via All-commits all-commits at lists.llvm.org
Tue Mar 18 15:40:31 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e3f0ce3ef803a5689fe0710e50052af019474dc0
      https://github.com/llvm/llvm-project/commit/e3f0ce3ef803a5689fe0710e50052af019474dc0
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaExprMember.cpp
    M clang/lib/Sema/SemaStmt.cpp
    M clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp
    M clang/test/SemaCXX/ms-property.cpp

  Log Message:
  -----------
  [Clang] Do not emit nodiscard warnings for the base expr of static member access (#131450)

For an expression `nodiscard_function().static_member(), the nodiscard
warnings added by #120223, are not useful or actionable, and are
disruptive to some library implementations; we just remove them.

Fixes #131410

(cherry picked from commit 9a1e39062b2ab445f1f4424ecdc5ffb46e8cb9e0)


  Commit: 2044b18af046df923536da10fa1f8fbe4b0cd6f6
      https://github.com/llvm/llvm-project/commit/2044b18af046df923536da10fa1f8fbe4b0cd6f6
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/include/clang/Sema/Sema.h

  Log Message:
  -----------
  fix abi


  Commit: 2dc152fb40dbe0b0a80bb17dbcac9cc39ed3761d
      https://github.com/llvm/llvm-project/commit/2dc152fb40dbe0b0a80bb17dbcac9cc39ed3761d
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2025-03-18 (Tue, 18 Mar 2025)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaStmt.cpp

  Log Message:
  -----------
  fix abi (again)


Compare: https://github.com/llvm/llvm-project/compare/0ceb4efefeaa...2dc152fb40db

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