| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | APValue.cpp | 951 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 D | ExprClassification.cpp | 57 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 D | ExprConstant.cpp | 1994 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 D | ComputeDependence.cpp | 64 Result.Val.isLValue()) { in computeDependence()
|
| H A D | Expr.cpp | 216 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 D | ReplaceAutoPtrCheck.cpp | 36 AST_MATCHER(Expr, isLValue) { return Node.getValueKind() == VK_LValue; } in AST_MATCHER() argument 84 expr(isLValue(), hasType(AutoPtrType)).bind(AutoPtrOwnershipTransferId); in registerMatchers()
|
| H A D | AvoidBindCheck.cpp | 241 if (!ME->isLValue() || !isa<FieldDecl>(ME->getMemberDecl())) in tryCaptureAsMemberVariable()
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransBlockObjCVariable.cpp | 56 if (castE->getCastKind() == CK_NoOp && castE->isLValue() && in TraverseImplicitCastExpr()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | ThrowByValueCatchByReferenceCheck.cpp | 121 if (CurrentSubExpr->isLValue()) { in diagnoseThrowLocations()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | MoveConstArgCheck.cpp | 75 Arg->isLValue()) { in IsRValueReferenceParam()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | StringConstructorCheck.cpp | 174 (ConstPtr.Val.isLValue() && ConstPtr.Val.isNullPointer()))) { in check()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaFixItUtils.cpp | 132 if (!Expr->isLValue() || Expr->getObjectKind() != OK_Ordinary) in tryToFixConversion()
|
| H A D | SemaStmtAsm.cpp | 94 if (E->isLValue()) in CheckAsmLValue() 100 if (E != E2 && E2->isLValue()) { in CheckAsmLValue()
|
| H A D | SemaCast.cpp | 819 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 D | SemaInit.cpp | 4839 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 D | SemaStmt.cpp | 149 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 D | SemaAttr.cpp | 407 if (E->isLValue()) in ConstantFoldAttrArgs()
|
| H A D | SemaOpenMP.cpp | 11575 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 D | ExplodedGraph.cpp | 51 if (!Ex->isLValue()) in isInterestingLValueExpr()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | LiveVariables.cpp | 446 assert(subEx->isLValue()); in VisitUnaryExprOrTypeTraitExpr()
|
| H A D | BodyFarm.cpp | 474 assert(Deref->isLValue()); in create_call_once()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | APValue.h | 398 bool isLValue() const { return Kind == LValue; }
|
| H A D | Expr.h | 270 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 D | CGStmtOpenMP.cpp | 5926 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 D | CGOpenMPRuntimeGPU.cpp | 428 if (Arg->isLValue()) { in VisitCallExpr() 479 if (!E->isLValue()) in VisitExpr()
|