Lines Matching refs:MethodDec
221 bool isStateResetMethod(const CXXMethodDecl *MethodDec) const;
222 bool isMoveSafeMethod(const CXXMethodDecl *MethodDec) const;
494 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
497 dyn_cast_or_null<CXXConversionDecl>(MethodDec)) { in isMoveSafeMethod()
505 return (MethodDec && MethodDec->getDeclName().isIdentifier() && in isMoveSafeMethod()
506 (MethodDec->getName().lower() == "empty" || in isMoveSafeMethod()
507 MethodDec->getName().lower() == "isempty")); in isMoveSafeMethod()
510 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
511 if (!MethodDec) in isStateResetMethod()
513 if (MethodDec->hasAttr<ReinitializesAttr>()) in isStateResetMethod()
515 if (MethodDec->getDeclName().isIdentifier()) { in isStateResetMethod()
516 std::string MethodName = MethodDec->getName().lower(); in isStateResetMethod()
534 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec); in isInMoveSafeContext() local
536 (MethodDec && MethodDec->isOverloadedOperator() && in isInMoveSafeContext()
537 MethodDec->getOverloadedOperator() == OO_Equal) || in isInMoveSafeContext()
538 isStateResetMethod(MethodDec) || isMoveSafeMethod(MethodDec)) in isInMoveSafeContext()