Home
last modified time | relevance | path

Searched refs:isLValue (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/AST/
H A DAPValue.cpp951 if (isLValue() && isNullPointer()) { in toIntegralConstant()
956 if (isLValue() && !getLValueBase()) { in toIntegralConstant()
965 assert(isLValue() && "Invalid accessor"); in getLValueBase()
970 assert(isLValue() && "Invalid accessor"); in isLValueOnePastTheEnd()
975 assert(isLValue() && "Invalid accessor"); in getLValueOffset()
980 assert(isLValue() && "Invalid accessor"); in hasLValuePath()
991 assert(isLValue() && "Invalid accessor"); in getLValueCallIndex()
996 assert(isLValue() && "Invalid accessor"); in getLValueVersion()
1001 assert(isLValue() && "Invalid usage"); in isNullPointer()
1007 assert(isLValue() && "Invalid accessor"); in setLValue()
[all …]
H A DExprClassification.cpp57 assert(isLValue()); in ClassifyImpl()
156 return !E->isLValue() ? ClassifyTemporary(E->getType()) : Cl::CL_LValue; in ClassifyInternal()
629 if (CE->getSubExpr()->IgnoreParenImpCasts()->isLValue()) { in IsModifiable()
H A DExprConstant.cpp1994 return CLE->isFileScope() && CLE->isLValue(); in IsGlobalLValue()
2413 if (Value.isLValue() && in CheckEvaluationResult()
2984 assert(LHSValue.isLValue() && in handleVectorVectorBinOp()
5789 assert(Result.isLValue() && in HandleCovariantReturnAdjustment()
6088 if (NonNull && V.isLValue() && V.isNullPointer()) { in EvaluateCallArg()
7309 assert(SourceValue.isLValue() && in handleLValueToRValueBitCast()
10576 if (SubExprValue.isLValue()) in VisitUnaryOperator()
11834 if (Src.isLValue()) { in VisitBuiltinCallExpr()
12649 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
12655 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
[all …]
H A DComputeDependence.cpp64 Result.Val.isLValue()) { in computeDependence()
H A DExpr.cpp216 if (Value.isLValue() && Value.getLValueOffset().isZero()) in getAsBuiltinConstantDeclRef()
3906 assert((E->isLValue() && E->getObjectKind() == OK_ObjCProperty) && in getObjCProperty()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DReplaceAutoPtrCheck.cpp36 AST_MATCHER(Expr, isLValue) { return Node.getValueKind() == VK_LValue; } in AST_MATCHER() argument
84 expr(isLValue(), hasType(AutoPtrType)).bind(AutoPtrOwnershipTransferId); in registerMatchers()
H A DAvoidBindCheck.cpp241 if (!ME->isLValue() || !isa<FieldDecl>(ME->getMemberDecl())) in tryCaptureAsMemberVariable()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransBlockObjCVariable.cpp56 if (castE->getCastKind() == CK_NoOp && castE->isLValue() && in TraverseImplicitCastExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DThrowByValueCatchByReferenceCheck.cpp121 if (CurrentSubExpr->isLValue()) { in diagnoseThrowLocations()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DMoveConstArgCheck.cpp75 Arg->isLValue()) { in IsRValueReferenceParam()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DStringConstructorCheck.cpp174 (ConstPtr.Val.isLValue() && ConstPtr.Val.isNullPointer()))) { in check()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaFixItUtils.cpp132 if (!Expr->isLValue() || Expr->getObjectKind() != OK_Ordinary) in tryToFixConversion()
H A DSemaStmtAsm.cpp94 if (E->isLValue()) in CheckAsmLValue()
100 if (E != E2 && E2->isLValue()) { in CheckAsmLValue()
H A DSemaCast.cpp819 if (!SrcExpr.get()->isLValue()) { in CheckDynamicCast()
1505 msg = SrcExpr->isLValue() ? diag::err_bad_lvalue_to_rvalue_cast in TryLValueToRValueCast()
1545 if (!RValueRef && !SrcExpr->isLValue()) { in TryStaticReferenceDowncast()
1903 if (isa<LValueReferenceType>(DestTypeTmp) && !SrcExpr.get()->isLValue()) { in TryConstCast()
H A DSemaInit.cpp4839 if (InitCategory.isLValue() && !isNonReferenceableGLValue(Initializer) && in TryReferenceInitializationCore()
4912 else if (!InitCategory.isLValue()) in TryReferenceInitializationCore()
5038 isRValueRef && InitCategory.isLValue()) { in TryReferenceInitializationCore()
5106 InitCategory.isLValue()) { in TryReferenceInitializationCore()
8467 assert(CurInit.get()->isLValue() && in Perform()
9281 << OnlyArg->isLValue() in Diagnose()
9292 << OnlyArg->isLValue() in Diagnose()
H A DSemaStmt.cpp149 CanAssign = Op->getLHS()->IgnoreParenImpCasts()->isLValue(); in DiagnoseUnusedComparison()
172 CanAssign = Op->getArg(0)->IgnoreParenImpCasts()->isLValue(); in DiagnoseUnusedComparison()
2334 if (!FirstE->isTypeDependent() && !FirstE->isLValue()) in ActOnObjCForCollectionStmt()
H A DSemaAttr.cpp407 if (E->isLValue()) in ConstantFoldAttrArgs()
H A DSemaOpenMP.cpp11575 if (ShouldBeLValue && !E->isLValue()) { in CheckValue()
12412 if (!X->isLValue() || !V->isLValue()) { in ActOnOpenMPAtomicDirective()
12413 const Expr *NotLValueExpr = X->isLValue() ? V : X; in ActOnOpenMPAtomicDirective()
12475 if (!X->isLValue()) { in ActOnOpenMPAtomicDirective()
20199 if (!Depobj->isLValue()) { in ActOnOpenMPDepobjClause()
20377 if (!RefExpr->isLValue()) { in ActOnOpenMPDependClause()
20415 (!RefExpr->IgnoreParenImpCasts()->isLValue() || in ActOnOpenMPDependClause()
20915 if (SemaRef.getLangOpts().OpenMP < 50 || !UO->isLValue() || in VisitUnaryOperator()
21475 if (!RE->isLValue()) { in checkMappableExpressionList()
23352 !AllocatorExpr->isLValue()))) { in ActOnOpenMPUsesAllocatorClause()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExplodedGraph.cpp51 if (!Ex->isLValue()) in isInterestingLValueExpr()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DLiveVariables.cpp446 assert(subEx->isLValue()); in VisitUnaryExprOrTypeTraitExpr()
H A DBodyFarm.cpp474 assert(Deref->isLValue()); in create_call_once()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAPValue.h398 bool isLValue() const { return Kind == LValue; }
H A DExpr.h270 bool isLValue() const { return getValueKind() == VK_LValue; } in isLValue() function
373 bool isLValue() const { return Kind == CL_LValue; } in isLValue() function
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp5926 assert(V->isLValue() && "V of 'omp atomic read' is not lvalue"); in emitOMPAtomicReadExpr()
5927 assert(X->isLValue() && "X of 'omp atomic read' is not lvalue"); in emitOMPAtomicReadExpr()
5957 assert(X->isLValue() && "X of 'omp atomic write' is not lvalue"); in emitOMPAtomicWriteExpr()
6136 assert(X->isLValue() && "X of 'omp atomic update' is not lvalue"); in emitOMPAtomicUpdateExpr()
6194 assert(X->isLValue() && "X of 'omp atomic capture' is not lvalue"); in emitOMPAtomicCaptureExpr()
6195 assert(V->isLValue() && "V of 'omp atomic capture' is not lvalue"); in emitOMPAtomicCaptureExpr()
H A DCGOpenMPRuntimeGPU.cpp428 if (Arg->isLValue()) { in VisitCallExpr()
479 if (!E->isLValue()) in VisitExpr()

12