Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp15032 const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr); in DiagnoseSelfMove() local
15036 if (LHSDeclRef && RHSDeclRef) { in DiagnoseSelfMove()
15037 if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl()) in DiagnoseSelfMove()
15039 if (LHSDeclRef->getDecl()->getCanonicalDecl() != in DiagnoseSelfMove()
15049 << FixItHint::CreateInsertion(LHSDeclRef->getBeginLoc(), "this->"); in DiagnoseSelfMove()
15077 LHSDeclRef = dyn_cast<DeclRefExpr>(LHSBase); in DiagnoseSelfMove()
15079 if (LHSDeclRef && RHSDeclRef) { in DiagnoseSelfMove()
15080 if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl()) in DiagnoseSelfMove()
15082 if (LHSDeclRef->getDecl()->getCanonicalDecl() != in DiagnoseSelfMove()
H A DSemaExpr.cpp14817 const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr); in DiagnoseSelfAssignment() local
14819 if (!LHSDeclRef || !RHSDeclRef || in DiagnoseSelfAssignment()
14820 LHSDeclRef->getLocation().isMacroID() || in DiagnoseSelfAssignment()
14824 cast<ValueDecl>(LHSDeclRef->getDecl()->getCanonicalDecl()); in DiagnoseSelfAssignment()
14837 << LHSDeclRef->getType() << LHSExpr->getSourceRange() in DiagnoseSelfAssignment()
14842 << FixItHint::CreateInsertion(LHSDeclRef->getBeginLoc(), "this->"); in DiagnoseSelfAssignment()