Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp16887 const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr); in DiagnoseSelfMove() local
16891 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()
H A DSemaExpr.cpp14656 const DeclRefExpr *LHSDeclRef = dyn_cast<DeclRefExpr>(LHSExpr); in DiagnoseSelfAssignment() local
14658 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()