]> granicus.if.org Git - clang/commit
For classes that have the warn_unused_result attribute, don't apply the
authorKaelyn Uhrain <rikka@google.com>
Tue, 13 Nov 2012 21:23:31 +0000 (21:23 +0000)
committerKaelyn Uhrain <rikka@google.com>
Tue, 13 Nov 2012 21:23:31 +0000 (21:23 +0000)
commit97c81bfaf0b6c90576081c5af7ea22fab6f2b7f9
treee2436064a2938d7eef35395fa7fe83e3b4f0a188
parent2ccecfaa4852c134191d4075d94e09399ab46fea
For classes that have the warn_unused_result attribute, don't apply the
attribute to the class' methods even when they return an instance of the
class (e.g. assignment operators).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167873 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/warn-unused-result.cpp