Home
last modified time | relevance | path

Searched refs:MethodDec (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMoveChecker.cpp223 bool isStateResetMethod(const CXXMethodDecl *MethodDec) const;
224 bool isMoveSafeMethod(const CXXMethodDecl *MethodDec) const;
497 bool MoveChecker::isMoveSafeMethod(const CXXMethodDecl *MethodDec) const { in isMoveSafeMethod()
500 dyn_cast_or_null<CXXConversionDecl>(MethodDec)) { in isMoveSafeMethod()
508 return (MethodDec && MethodDec->getDeclName().isIdentifier() && in isMoveSafeMethod()
509 (MethodDec->getName().lower() == "empty" || in isMoveSafeMethod()
510 MethodDec->getName().lower() == "isempty")); in isMoveSafeMethod()
513 bool MoveChecker::isStateResetMethod(const CXXMethodDecl *MethodDec) const { in isStateResetMethod()
514 if (!MethodDec) in isStateResetMethod()
516 if (MethodDec->hasAttr<ReinitializesAttr>()) in isStateResetMethod()
[all …]