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)
commit1137001938500c8939b800fa2cc04d40d6968fb4
tree092445a3929a54c804f7c8d668689d87c9f45b63
parent6657517f37890bcc7f1e4bd9a501bff31507b9de
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).

llvm-svn: 167873
clang/lib/Sema/SemaDecl.cpp
clang/test/SemaCXX/warn-unused-result.cpp