Searched refs:LHSDeclRef (Results 1 – 2 of 2) sorted by relevance
16887 const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr); in DiagnoseSelfMove() local16891 if (LHSDeclRef && RHSDeclRef) { in DiagnoseSelfMove()16892 if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl()) in DiagnoseSelfMove()16894 if (LHSDeclRef->getDecl()->getCanonicalDecl() != in DiagnoseSelfMove()16904 << FixItHint::CreateInsertion(LHSDeclRef->getBeginLoc(), "this->"); in DiagnoseSelfMove()16932 LHSDeclRef = dyn_cast<DeclRefExpr>(LHSBase); in DiagnoseSelfMove()16934 if (LHSDeclRef && RHSDeclRef) { in DiagnoseSelfMove()16935 if (!LHSDeclRef->getDecl() || !RHSDeclRef->getDecl()) in DiagnoseSelfMove()16937 if (LHSDeclRef->getDecl()->getCanonicalDecl() != in DiagnoseSelfMove()
14656 const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr); in DiagnoseSelfAssignment() local14658 if (!LHSDeclRef || !RHSDeclRef || in DiagnoseSelfAssignment()14659 LHSDeclRef->getLocation().isMacroID() || in DiagnoseSelfAssignment()14663 cast<ValueDecl>(LHSDeclRef->getDecl()->getCanonicalDecl()); in DiagnoseSelfAssignment()14676 << LHSDeclRef->getType() << LHSExpr->getSourceRange() in DiagnoseSelfAssignment()14681 << FixItHint::CreateInsertion(LHSDeclRef->getBeginLoc(), "this->"); in DiagnoseSelfAssignment()