[cfe-dev] [cfe-commits] r169670 - in /cfe/trunk: include/clang/AST/DeclCXX.h lib/AST/DeclCXX.cpp lib/Sema/SemaDeclCXX.cpp
Richard Smith
richard at metafoo.co.uk
Sun Dec 9 21:39:11 PST 2012
On Sun, Dec 9, 2012 at 2:12 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
> On Sun, Dec 9, 2012 at 11:11 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
>>
>> I think that's equivalent to our previous;
>>
>> if (hasImplicitDeclaredCopyAssignment) {
>> something(decl->getCopyAssignmentOperator(true));
>> something(decl->getCopyAssignmentOperator(false));
>> }
>
> ... oh, except it also handles move assignment operators, which is nice.
It also only calls 'something' on the implicit copy assignment operator once :)
More information about the cfe-dev
mailing list