[all-commits] [llvm/llvm-project] a63bbf: [clang] Diagnose [[nodiscard]] return types in Obj...
halbi2 via All-commits
all-commits at lists.llvm.org
Mon Jul 28 06:26:50 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a63bbf2f1e0d1e1367fb111290ba8d652572d724
https://github.com/llvm/llvm-project/commit/a63bbf2f1e0d1e1367fb111290ba8d652572d724
Author: halbi2 <hehiralbi at gmail.com>
Date: 2025-07-28 (Mon, 28 Jul 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/AST/Expr.h
M clang/include/clang/AST/ExprObjC.h
M clang/lib/AST/Expr.cpp
M clang/lib/AST/ExprObjC.cpp
M clang/lib/Sema/SemaStmt.cpp
M clang/test/SemaCXX/warn-unused-result.cpp
A clang/test/SemaObjC/attr-nodiscard.m
A clang/test/SemaObjCXX/attr-nodiscard.mm
Log Message:
-----------
[clang] Diagnose [[nodiscard]] return types in Objective-C++ (#142541)
My solution was to copy-paste getUnusedResultAttr and
hasUnusedResultAttr from CallExpr into ObjCMessageExpr too.
Fixes #141504
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