Home
last modified time | relevance | path

Searched refs:getEnd (Results 1 – 25 of 159) sorted by relevance

1234567

/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp28 R.getEnd(), tok::raw_identifier, SM, LangOpts, in getLexicalDeclRange()
44 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
46 : Selection.getEnd()), in ASTSelectionFinder()
88 if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID()) in TraverseDecl()
89 FileLoc = DeclRange.getEnd(); in TraverseDecl()
102 if (DeclRange.getEnd().isValid() && in TraverseDecl()
105 DeclRange.getEnd())) { in TraverseDecl()
141 SourceLocation End = Range.getEnd(); in selectionKindFor()
187 SelectionRange.getEnd()) && in findSelectedASTNodes()
191 assert(Context.getSourceManager().getFileID(SelectionRange.getEnd()) == in findSelectedASTNodes()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DRewriter.cpp49 !isRewritable(Range.getEnd())) return -1; in getRangeSize()
53 unsigned EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRangeSize()
71 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRangeSize()
87 !isRewritable(Range.getEnd())) in getRewrittenText()
93 EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRewrittenText()
110 Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRewrittenText()
121 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRewrittenText()
234 if (!isRewritable(range.getEnd())) return true; in ReplaceText()
250 if (!isRewritable(range.getEnd())) return true; in IncreaseIndentation()
257 EndOff = getLocationOffsetAndFileID(range.getEnd(), EndFileID); in IncreaseIndentation()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp46 Lexer::getRawToken(R.getEnd(), Tok, Context.getSourceManager(), in maybeExtendRange()
60 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateRange()
66 SM.isInSystemHeader(Range.getEnd())) in validateRange()
72 FileIDAndOffset EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateRange()
133 auto EndToken = getExpansionForSplitToken(Range.getEnd(), SM, LangOpts); in getRangeForSplitTokens()
140 return CharSourceRange::getCharRange(BeginLoc, EndToken->getEnd()); in getRangeForSplitTokens()
146 Range.getEnd()); in getRangeForSplitTokens()
162 spelledInMacroDefinition(AdjustedRange.getEnd(), SM)) in getRange()
166 auto E = SM.getSpellingLoc(AdjustedRange.getEnd()); in getRange()
230 auto FileOffset = SM.getDecomposedLoc(ExpansionRange.getEnd()); in getEntityEndLoc()
[all …]
H A DRangeSelector.cpp112 SourceLocation End = SelectedRange->getEnd(); in after()
121 CharSourceRange::getTokenRange(SelectedRange->getEnd()), in after()
126 End = Range.getEnd(); in after()
165 SourceLocation E = EndRange->getEnd(); in enclose()
323 R.getEnd()); in getConstructArgumentsRange()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp81 SourceMgr.isWrittenInSameFile(SkippedRanges.back().Range.getEnd(), in AddSkippedRange()
83 SkippedRanges.back().Range.setEnd(Range.getEnd()); in AddSkippedRange()
317 EndLoc = ExpansionRange.getEnd(); in getNonScratchExpansionLoc()
359 SourceLocation getEnd(const Stmt *S) { in getEnd() function in __anon413222f00211::CoverageMappingBuilder
481 auto LocEnd = Range.getEnd(); in gatherSkippedRegions()
619 SourceLocation End = getEnd(Body); in VisitDecl()
1124 SourceLocation EndLoc = getEnd(S); in propagateCounts()
1176 pushRegion(TrueCnt, getStart(C), getEnd(C), FalseCnt, BranchParams));
1185 popRegions(pushRegion(DecisionParams, getStart(C), getEnd(C))); in createDecisionRegion()
1316 SourceLocation EndLoc = getEnd(S); in terminateRegion()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DCommit.cpp108 commitableAfter = insertAfterToken(range.getEnd(), after); in insertWrap()
110 commitableAfter = insert(range.getEnd(), after); in insertWrap()
159 addRemove(replacementRange.getEnd(), in replaceWithInner()
302 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange()
305 SM.isInSystemHeader(range.getEnd())) in canRemoveRange()
312 FileIDAndOffset endInfo = SM.getDecomposedLoc(range.getEnd()); in canRemoveRange()
H A DRewriteObjCFoundationAPI.cpp196 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon()
248 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet()
284 commit.replaceWithInner(SourceRange(Arg0Range.getBegin(), MsgRange.getEnd()), in rewriteToDictionarySubscriptSet()
518 commit.insertAfterToken(ValRange.getEnd(), "}"); in rewriteToDictionaryLiteral()
545 commit.insertAfterToken(KeyRange.getEnd(), ": "); in rewriteToDictionaryLiteral()
546 commit.insertFromRange(KeyRange.getEnd(), ValRange, /*afterToken=*/true); in rewriteToDictionaryLiteral()
589 commit.insertAfterToken(KeyRange.getEnd(), ": "); in rewriteToDictionaryLiteral()
590 commit.insertFromRange(KeyRange.getEnd(), ValRange, /*afterToken=*/true); in rewriteToDictionaryLiteral()
687 literalRange.getEnd().isMacroID()) in getLiteralInfo()
862 SourceLocation LitE = LitInfo.WithoutSuffRange.getEnd(); in rewriteToNumberLiteral()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp71 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
284 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation()
303 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation()
320 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs()
362 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges()
383 End = Exp.getEnd(); in mapDiagnosticRanges()
473 if (Begin == R.getEnd()) { in rangesInsideSameMacroArgExpansion()
479 while (Begin != R.getEnd()) { in rangesInsideSameMacroArgExpansion()
H A DSARIFDiagnostic.cpp90 CharSourceRange ERange = SM.getExpansionRange(Range.getEnd()); in addLocationToResult()
91 SourceLocation E = ERange.getEnd(); in addLocationToResult()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp226 if (CData.getEnd()) { in checkLiveSymbols()
227 SR.markLive(CData.getEnd()); in checkLiveSymbols()
228 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getEnd())) in checkLiveSymbols()
322 if (const auto OldEndSym = OldCData->getEnd()) { in handleAssignment()
403 if (const auto EndSym = CData->getEnd()) { in handleClear()
438 if (const auto EndSym = CData->getEnd()) { in handlePushBack()
470 if (const auto EndSym = CData->getEnd()) { in handlePopBack()
590 if (const auto EndSym = CData->getEnd()) { in handleInsert()
622 if (const auto EndSym = CData->getEnd()) { in handleErase()
657 if (const auto EndSym = CData->getEnd()) { in handleErase()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDominators.h115 const BasicBlock *getEnd() const { in getEnd() function
138 BBInfo::getHashValue(Edge.getEnd()));
143 BBInfo::isEqual(LHS.getEnd(), RHS.getEnd());
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp165 const SCEV *getEnd() const { return End; } in getEnd() function in __anona4c10e620111::InductiveRangeCheck
201 const SCEV *getEnd() const { return End; } in getEnd() function in __anona4c10e620111::InductiveRangeCheck::Range
656 SE.isKnownPredicate(PredLT, GreatestSeen, Range.getEnd()); in calculateSubRanges()
658 Result.HighLimit = Clamp(Range.getEnd()); in calculateSubRanges()
674 auto *EndType = dyn_cast<IntegerType>(getEnd()->getType()); in computeSafeIterationSpace()
810 const SCEV *REnd = getEnd(); in computeSafeIterationSpace()
863 const SCEV *NewEnd = SE.getSMinExpr(R1Value.getEnd(), R2.getEnd()); in IntersectSignedRange()
892 const SCEV *NewEnd = SE.getUMinExpr(R1Value.getEnd(), R2.getEnd()); in IntersectUnsignedRange()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDominators.cpp218 const BasicBlock *End = BBE.getEnd(); in dominates()
267 if (PN && PN->getParent() == BBE.getEnd() && in dominates()
352 if (BBE1.getStart() == BBE2.getStart() && BBE1.getEnd() == BBE2.getEnd()) in dominates()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DHTMLLogger.cpp433 EltRange.getEnd() >= Range.getEnd() || in writeCode()
434 EltRange.getEnd() < Range.getBegin() || in writeCode()
435 EltRange.getEnd() >= Range.getEnd()) in writeCode()
439 unsigned Len = EltRange.getEnd().getRawEncoding() - in writeCode()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp136 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
168 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
171 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd()); in findLocalPreprocessedEntitiesInRange()
226 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
501 EndLoc = FilenameRange.getEnd(); in InclusionDirective()
H A DPPConditionalDirectiveRecord.cpp33 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) in rangeIntersectsConditionalDirective()
38 Range.getEnd(), CondDirectiveLoc::Comp(SourceMgr)); in rangeIntersectsConditionalDirective()
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DAffectedRangeManager.cpp64 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), R.getBegin()) && in affectsCharSourceRange()
65 !SourceMgr.isBeforeInTranslationUnit(R.getEnd(), Range.getBegin())) { in affectsCharSourceRange()
H A DSortJavaScriptImports.cpp157 InsertionPoint.setEnd(References[References.size() - 1].Range.getEnd()); in analyze()
242 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
326 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference()
353 Buffer += getSourceText(Reference.SymbolsEnd, Reference.Range.getEnd()); in appendReference()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugSuppression.cpp78 isLessOrEqual(Smaller.getEnd(), Larger.getEnd(), SM); in fullyContains()
H A DSarifDiagnostics.cpp115 if (R.getBegin() == R.getEnd()) in convertTokenRangeToCharRange()
123 Lexer::getLocForEndOfToken(R.getEnd(), /* Offset = */ 0, SM, LO); in convertTokenRangeToCharRange()
H A DHTMLDiagnostics.cpp726 return !(Range.getBegin().isMacroID() || Range.getEnd().isMacroID()); in shouldDisplayPopUpRange()
736 html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", in HandlePopUpPieceStartTag()
769 html::HighlightRange(R, Range.getBegin(), Range.getEnd(), in HandlePopUpPieceEndTag()
774 html::HighlightRange(R, Range.getBegin(), Range.getEnd(), "", Buf.c_str(), in HandlePopUpPieceEndTag()
1235 HighlightRange(R, BugFileID, LPair.getEnd().asRange().getBegin(), in ProcessControlFlowPiece()
1252 SourceLocation InstantiationEnd = SM.getExpansionLoc(Range.getEnd()); in HighlightRange()
1268 EndColNo += Lexer::MeasureTokenLength(Range.getEnd(), SM, LangOpts)-1; in HighlightRange()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenStmtOpenACC.cpp130 mlir::Location end = getLoc(s.getSourceRange().getEnd()); in emitOpenACCComputeConstruct()
153 mlir::Location end = getLoc(s.getSourceRange().getEnd()); in emitOpenACCDataConstruct()
223 mlir::Location end = getLoc(s.getSourceRange().getEnd()); in emitOpenACCCombinedConstruct()
246 mlir::Location end = getLoc(s.getSourceRange().getEnd()); in emitOpenACCHostDataConstruct()
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.cpp244 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound()
272 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet()
299 if (InRange && InRange->getEnd().getMemoryLocation() == P) in PrintMemorySnippet()
319 if (!InRange || InRange->getEnd().getMemoryLocation() == P) in PrintMemorySnippet()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTokens.cpp48 return !SM.isBeforeInTranslationUnit(R.getEnd(), T.location()); in getTokensCovering()
118 auto DecLast = SM.getDecomposedExpansionLoc(Candidate.getEnd()); in spelledForExpandedSlow()
130 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Next).getEnd()); in spelledForExpandedSlow()
247 const auto E = ExpandedTokIndex.find(R.getEnd()); in expandedTokens()
641 if (!Range.getEnd().isFileID()) in MacroExpands()
646 !SM.isBeforeInTranslationUnit(LastExpansionEnd, Range.getEnd())) in MacroExpands()
658 Collector->Expansions[Range.getBegin()] = Range.getEnd(); in MacroExpands()
659 LastExpansionEnd = Range.getEnd(); in MacroExpands()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h225 SourceLocation getEnd() const { return E; }
289 SourceLocation getEnd() const { return Range.getEnd(); }

1234567