[PATCH] D55949: Correctly handle function pointers returning a type marked nodiscard
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 21 11:11:25 PST 2018
aaron.ballman updated this revision to Diff 179318.
aaron.ballman marked 3 inline comments as done.
aaron.ballman added a comment.
Updated based on review feedback.
Moved `FunctionDecl::hasUnusedResultAttr()` and `FunctionDecl::getUnusedResultAttr()` to `CallExpr` to reduce logic duplication on checking.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55949/new/
https://reviews.llvm.org/D55949
Files:
include/clang/AST/Decl.h
include/clang/AST/Expr.h
lib/AST/Decl.cpp
lib/AST/Expr.cpp
lib/Sema/SemaStmt.cpp
test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55949.179318.patch
Type: text/x-patch
Size: 6551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181221/8a5542ce/attachment-0001.bin>
More information about the cfe-commits
mailing list