]> granicus.if.org Git - clang/commit
Corrrect warn_unused_result attribute
authorErich Keane <erich.keane@intel.com>
Wed, 19 Apr 2017 21:24:55 +0000 (21:24 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 19 Apr 2017 21:24:55 +0000 (21:24 +0000)
commit50cdd18bb1c87febc93cd84eaa1bafd74d9d1c16
treec8b1a5d9e963ca21a0630887308ba7eba094047d
parente6df5fb1026dda5b4c81363c802532b10e5f15c5
Corrrect warn_unused_result attribute

The original idea was that if the attribute on an operator,
that the return-value unused-ness wouldn't matter. However,
all of the operators except postfix inc/dec return
references! References don't result in this warning
anyway, so those are already excluded.

Differential Revision: https://reviews.llvm.org/D32207

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300764 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/AST/Decl.cpp
test/SemaCXX/warn-unused-result.cpp