Home
last modified time | relevance | path

Searched refs:getRange (Results 1 – 25 of 93) sorted by relevance

1234

/src/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp63 SourceRange getRange() const { return Range; } in getRange() function in __anon7496c2ea0111::PPValue
459 << Result.getRange(); in EvaluateValue()
494 PP.Diag(Loc, diag::warn_pp_expr_overflow) << Result.getRange(); in EvaluateValue()
579 PP.Diag(LHS.getRange().getBegin(), diag::err_pp_expr_bad_token_lparen) in diagnoseUnexpectedOperator()
583 << LHS.getRange(); in diagnoseUnexpectedOperator()
692 << LHS.getRange() << RHS.getRange(); in EvaluateDirectiveSubExpr()
697 << LHS.getRange() << RHS.getRange(); in EvaluateDirectiveSubExpr()
711 << LHS.getRange() << RHS.getRange(); in EvaluateDirectiveSubExpr()
723 << LHS.getRange() << RHS.getRange(); in EvaluateDirectiveSubExpr()
810 << LHS.getRange() << RHS.getRange(); in EvaluateDirectiveSubExpr()
[all …]
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugSuppression.cpp38 template <class NodeType> inline SourceRange getRange(const NodeType *Node) { in getRange() function
41 template <> inline SourceRange getRange(const AttributedStmt *S) { in getRange() function
50 return getRange(S->getSubStmt()); in getRange()
106 addRange(getRange(Node)); in VisitAttributedNode()
H A DRangeConstraintManager.cpp1941 RangeSet getRange(ProgramStateRef State, SymbolRef Sym);
1942 RangeSet getRange(ProgramStateRef State, EquivalenceClass Class);
3029 RangeSet RangeConstraintManager::getRange(ProgramStateRef State, in getRange() function in RangeConstraintManager
3062 RangeSet New = getRange(St, Sym); in assumeSymNE()
3079 RangeSet New = getRange(St, Sym); in assumeSymEQ()
3097 return getRange(St, Sym); in getSymLTRange()
3110 RangeSet Result = getRange(St, Sym); in getSymLTRange()
3130 return getRange(St, Sym); in getSymGTRange()
3147 RangeSet SymRange = getRange(St, Sym); in getSymGTRange()
3167 return getRange(St, Sym); in getSymGERange()
[all …]
/src/contrib/llvm-project/clang/lib/AST/Interp/
H A DSource.cpp25 SourceRange SourceInfo::getRange() const { in getRange() function in SourceInfo
51 SourceRange SourceMapper::getRange(const Function *F, CodePtr PC) const { in getRange() function in SourceMapper
52 return getSource(F, PC).getRange(); in getRange()
H A DInterpFrame.cpp202 if (SourceRange NullRange = S.getRange(nullptr, {}); NullRange.isValid()) in getCallRange()
206 return S.getRange(Caller->Func, RetPC - sizeof(uintptr_t)); in getCallRange()
263 SourceRange InterpFrame::getRange(CodePtr PC) const { in getRange() function in InterpFrame
265 return Caller->getRange(RetPC); in getRange()
267 return S.getRange(Func, PC); in getRange()
H A DSource.h79 SourceRange getRange() const;
105 SourceRange getRange(const Function *F, CodePtr PC) const;
H A DInterp.cpp347 << CSK << S.Current->getRange(OpPC); in CheckNull()
358 << AK << S.Current->getRange(OpPC); in CheckRange()
368 << CSK << S.Current->getRange(OpPC); in CheckRange()
379 << CSK << S.Current->getRange(OpPC); in CheckSubobject()
491 << AK << /*uninitialized=*/true << S.Current->getRange(OpPC); in CheckInitialized()
689 << /*NaN=*/true << S.Current->getRange(OpPC); in CheckFloatResult()
H A DInterpFrame.h118 SourceRange getRange(CodePtr PC) const;
/src/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp458 ArrayRef<syntax::Token> getRange(SourceRange Range) const { in getRange() function in syntax::TreeBuilder
460 return getRange(Range.getBegin(), Range.getEnd()); in getRange()
466 ArrayRef<syntax::Token> getRange(SourceLocation First, in getRange() function in syntax::TreeBuilder
477 auto Tokens = getRange(D->getSourceRange()); in getTemplateRange()
513 Tokens = getRange(S->TypeDecl::getBeginLoc(), S->getEndLoc()); in getDeclarationRange()
515 Tokens = getRange(D->getSourceRange()); in getDeclarationRange()
520 return getRange(E->getSourceRange()); in getExprRange()
526 auto Tokens = getRange(S->getSourceRange()); in getStmtRange()
985 Builder.getRange(getLocalSourceRange(NNSLoc)).drop_back(); in buildNameSpecifier()
1038 Builder.foldNode(Builder.getRange(QualifierLoc.getSourceRange()), in TraverseNestedNameSpecifierLoc()
[all …]
/src/contrib/llvm-project/llvm/lib/Analysis/
H A DLazyValueInfo.cpp131 return ValueLatticeElement::getRange( in intersect()
599 if (std::optional<ConstantRange> Range = cast<CallBase>(BBI)->getRange()) in getFromRangeMetadata()
600 return ValueLatticeElement::getRange(*Range); in getFromRangeMetadata()
605 return ValueLatticeElement::getRange( in getFromRangeMetadata()
723 if (std::optional<ConstantRange> Range = cast<Argument>(Val)->getRange()) in solveBlockValueNonLocal()
724 return ValueLatticeElement::getRange(*Range); in solveBlockValueNonLocal()
884 return ValueLatticeElement::getRange( in solveBlockValueSelect()
891 return ValueLatticeElement::getRange( in solveBlockValueSelect()
894 return ValueLatticeElement::getRange( in solveBlockValueSelect()
901 return ValueLatticeElement::getRange( in solveBlockValueSelect()
[all …]
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaCXXScopeSpec.cpp215 if (loc.isInvalid()) loc = SS.getRange().getBegin(); in RequireCompleteDeclContext()
219 SS.getRange())) { in RequireCompleteDeclContext()
220 SS.SetInvalid(SS.getRange()); in RequireCompleteDeclContext()
261 SS->SetInvalid(SS->getRange()); in RequireCompleteEnumDecl()
270 << QualType(EnumD->getTypeForDecl(), 0) << SS->getRange(); in RequireCompleteEnumDecl()
271 SS->SetInvalid(SS->getRange()); in RequireCompleteEnumDecl()
437 Found.setContextRange(SS.getRange()); in BuildCXXNestedNameSpecifier()
559 << SS.getRange()); in BuildCXXNestedNameSpecifier()
766 << LookupCtx << SS.getRange(); in BuildCXXNestedNameSpecifier()
902 if (SS.getRange().isValid()) in ActOnCXXNestedNameSpecifier()
[all …]
H A DSemaStmtAttr.cpp32 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) in handleFallThroughAttr()
41 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); in handleFallThroughAttr()
427 << A << A.getRange(); in handleMSConstexprAttr()
535 SourceLocation OptionLoc = LH->getRange().getBegin(); in CheckForIncompatibleAttributes()
577 S.Diag(A.getRange().getBegin(), in handleOpenCLUnrollHint()
600 << A << AANT_ArgumentIntegerConstant << A.getRange(); in handleHLSLLoopHintAttr()
639 << A << A.getRange(); in ProcessStmtAttribute()
679 S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt) in ProcessStmtAttribute()
H A DSemaExprMember.cpp229 if (SS.isSet()) Range.setBegin(SS.getRange().getBegin()); in diagnoseInstanceReference()
613 << SS.getRange() << rep << BaseType; in DiagnoseQualifiedMemberReference()
756 << SS.getRange()); in LookupMemberExprInRecord()
759 << Typo << DC << (SS.isSet() ? SS.getRange() : BaseRange); in LookupMemberExprInRecord()
1066 ? SS.getRange() in BuildMemberReferenceExpr()
1128 if (SS.getRange().isValid()) in BuildMemberReferenceExpr()
1129 Loc = SS.getRange().getBegin(); in BuildMemberReferenceExpr()
1374 S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access) in LookupMemberExpr()
1376 << FixItHint::CreateRemoval(SS.getRange()); in LookupMemberExpr()
1536 S.Diag(SS.getRange().getBegin(), diag::err_qualified_objc_access) in LookupMemberExpr()
[all …]
H A DSemaDeclAttr.cpp1339 << AL << AL.getRange() << 0; in handleNoEscapeAttr()
1366 << &TmpAttr << TmpAttr.getRange() << SR; in AddAssumeAlignedAttr()
1392 << CI.getRange() << Sema::MaximumAlignment; in AddAssumeAlignedAttr()
1415 << &TmpAttr << CI.getRange() << getFunctionOrMethodResultSourceRange(D); in AddAllocAlignAttr()
1849 S.Diag(A.getLoc(), diag::warn_deprecated_noreturn_spelling) << A.getRange(); in handleStandardNoReturnAttr()
1876 << AL << AL.getRange(); in CheckAttrTarget()
2209 if (checkAvailabilityAttr(*this, OldAA->getRange(), Platform, in mergeAvailabilityAttr()
2232 if (!checkAvailabilityAttr(*this, CI.getRange(), Platform, MergedIntroduced, in mergeAvailabilityAttr()
2247 S.Diag(AL.getRange().getBegin(), diag::warn_deprecated_ignored_on_using) in handleAvailabilityAttr()
2430 return S.getDarwinSDKInfoForAvailabilityChecking(AL.getRange().getBegin(), in handleAvailabilityAttr()
[all …]
H A DSemaObjC.cpp1604 << AL << AL.getRange(); in handleSuppresProtocolAttr()
1748 /*ExtraArgs=*/CI.getRange(), "os_consumed", /*pointers*/ 1); in AddXConsumedAttr()
1761 /*ExtraArgs=*/CI.getRange(), "ns_consumed", /*objc pointers*/ 0); in AddXConsumedAttr()
1767 /*ExtraArgs=*/CI.getRange(), "cf_consumed", /*pointers*/ 1); in AddXConsumedAttr()
1839 << AL << DiagID << AL.getRange(); in handleXReturnsXRetainedAttr()
1863 << AL.getRange() << AL << AL.isRegularKeywordAttribute() in handleXReturnsXRetainedAttr()
1905 << AL << ParmDiagID << AL.getRange(); in handleXReturnsXRetainedAttr()
1914 << AL << SubjectKind << Cf << AL.getRange(); in handleXReturnsXRetainedAttr()
2144 << AL.getRange() << AL << AL.isRegularKeywordAttribute() in handleOwnershipAttr()
/src/contrib/llvm-project/llvm/include/llvm/Option/
H A DArgList.h142 OptRange getRange(std::initializer_list<OptSpecifier> Ids) const;
206 OptRange Range = getRange({toOptSpecifier(Ids)...}); in filtered()
217 OptRange Range = getRange({toOptSpecifier(Ids)...}); in filtered_reverse()
/src/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp152 static CharSourceRange getRange(const CharSourceRange &EditRange, in getRange() function
178 getRange(EditRange, SM, LangOpts, IncludeMacroExpansion); in getFileRangeForEdit()
189 getRange(EditRange, SM, LangOpts, IncludeMacroExpansion); in getFileRange()
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRangeList.h57 ConstantRange getRange(unsigned i) const { return Ranges[i]; } in getRange() function
H A DArgument.h75 std::optional<ConstantRange> getRange() const;
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DELFNixPlatform.cpp561 InitSeq->InitSections[Sec->getName()].push_back(R.getRange()); in registerInitInfo()
691 POSR.EHFrameSection = R.getRange(); in addEHAndTLVSupportPasses()
715 POSR.ThreadDataSection = R.getRange(); in addEHAndTLVSupportPasses()
791 dbgs() << " " << Sec->getName() << ": " << R.getRange() << "\n"; in registerInitSections()
H A DMachOPlatform.cpp1261 SecRange = (*Sec.blocks().begin())->getRange(); in findUnwindSectionInfo()
1263 auto R = B->getRange(); in findUnwindSectionInfo()
1296 US.CodeRanges.push_back(B->getRange()); in findUnwindSectionInfo()
1298 US.CodeRanges.back().End = B->getRange().End; in findUnwindSectionInfo()
1353 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
1362 MachOPlatformSecs.push_back({MachOThreadDataSectionName, R.getRange()}); in registerObjectPlatformSections()
1378 MachOPlatformSecs.push_back({SecName, R.getRange()}); in registerObjectPlatformSections()
/src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp817 if (std::optional<ConstantRange> Range = A->getRange()) { in trackValueOfArgument()
1303 mergeInValue(LV, &I, ValueLatticeElement::getRange(Res)); in visitCastInst()
1324 mergeInValue(&EVI, ValueLatticeElement::getRange(Res)); in handleExtractOfWithOverflow()
1536 mergeInValue(&I, ValueLatticeElement::getRange(R)); in visitBinaryOperator()
1626 return ValueLatticeElement::getRange( in getValueFromMetadata()
1630 if (std::optional<ConstantRange> Range = CB->getRange()) in getValueFromMetadata()
1631 return ValueLatticeElement::getRange(*Range); in getValueFromMetadata()
1831 ValueLatticeElement::getRange(NewCR, /*MayIncludeUndef*/ false)); in handleCallResult()
1866 return (void)mergeInValue(II, ValueLatticeElement::getRange(Result)); in handleCallResult()
/src/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVVMIntrRange.cpp59 if (auto CurrentRange = II->getRange()) in addRangeAttr()
/src/contrib/llvm-project/clang/lib/Basic/
H A DSourceMgrAdapter.cpp132 CharSourceRange Range(mapRange(*LLVMSrcMgr, FixIt.getRange()), false); in handleDiag()
/src/contrib/llvm-project/clang/include/clang/Basic/
H A DPartialDiagnostic.h103 AddSourceRange(Other.getRange(I)); in PartialDiagnostic()

1234