Lines Matching refs:MethodDec
221 bool isStateResetMethod(const CXXMethodDecl *MethodDec) const;
222 bool isMoveSafeMethod(const CXXMethodDecl *MethodDec) const;
498 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
501 dyn_cast_or_null<CXXConversionDecl>(MethodDec)) { in isMoveSafeMethod()
509 return (MethodDec && MethodDec->getDeclName().isIdentifier() && in isMoveSafeMethod()
510 (MethodDec->getName().lower() == "empty" || in isMoveSafeMethod()
511 MethodDec->getName().lower() == "isempty")); in isMoveSafeMethod()
514 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
515 if (!MethodDec) in isStateResetMethod()
517 if (MethodDec->hasAttr<ReinitializesAttr>()) in isStateResetMethod()
519 if (MethodDec->getDeclName().isIdentifier()) { in isStateResetMethod()
520 std::string MethodName = MethodDec->getName().lower(); in isStateResetMethod()
538 auto *MethodDec = dyn_cast_or_null<CXXMethodDecl>(CtxDec); in isInMoveSafeContext() local
540 (MethodDec && MethodDec->isOverloadedOperator() && in isInMoveSafeContext()
541 MethodDec->getOverloadedOperator() == OO_Equal) || in isInMoveSafeContext()
542 isStateResetMethod(MethodDec) || isMoveSafeMethod(MethodDec)) in isInMoveSafeContext()