Home
last modified time | relevance | path

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

1234567

/openbsd/src/gnu/llvm/clang/lib/Tooling/Refactoring/
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 …]
/openbsd/src/gnu/llvm/clang/lib/Tooling/
DNodeIntrospection.cpp69 if (LHS.first.getEnd() < RHS.first.getEnd()) in operator ()()
71 else if (LHS.first.getEnd() != RHS.first.getEnd()) in operator ()()
/openbsd/src/gnu/llvm/clang/lib/Rewrite/
DRewriter.cpp148 !isRewritable(Range.getEnd())) return -1; in getRangeSize()
152 unsigned EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRangeSize()
170 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRangeSize()
186 !isRewritable(Range.getEnd())) in getRewrittenText()
192 EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRewrittenText()
209 Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRewrittenText()
220 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRewrittenText()
333 if (!isRewritable(range.getEnd())) return true; in ReplaceText()
349 if (!isRewritable(range.getEnd())) return true; in IncreaseIndentation()
356 EndOff = getLocationOffsetAndFileID(range.getEnd(), EndFileID); in IncreaseIndentation()
/openbsd/src/gnu/llvm/clang/lib/Tooling/Transformer/
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 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateRange()
113 spelledInMacroDefinition(EditRange.getEnd(), SM)) in getRange()
117 auto E = SM.getSpellingLoc(EditRange.getEnd()); in getRange()
181 auto FileOffset = SM.getDecomposedLoc(ExpansionRange.getEnd()); in getEntityEndLoc()
402 atOrBeforeSeparation(SM, Range.getEnd(), LangOpts)) { in getAssociatedRange()
DRangeSelector.cpp120 SourceLocation End = SelectedRange->getEnd(); in after()
129 CharSourceRange::getTokenRange(SelectedRange->getEnd()), in after()
134 End = Range.getEnd(); in after()
173 SourceLocation E = EndRange->getEnd(); in enclose()
/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCoverageMappingGen.cpp67 SourceMgr.isWrittenInSameFile(SkippedRanges.back().Range.getEnd(), in AddSkippedRange()
69 SkippedRanges.back().Range.setEnd(Range.getEnd()); in AddSkippedRange()
281 SourceLocation getEnd(const Stmt *S) { in getEnd() function in __anon678788ec0211::CoverageMappingBuilder
383 auto LocEnd = Range.getEnd(); in gatherSkippedRegions()
501 SourceLocation End = getEnd(Body); in VisitDecl()
702 SourceLocation EndLoc = getEnd(S); in propagateCounts()
744 popRegions(pushRegion(Counter::getZero(), getStart(C), getEnd(C), in createBranchRegion()
748 popRegions(pushRegion(TrueCnt, getStart(C), getEnd(C), FalseCnt)); in createBranchRegion()
876 SourceLocation EndLoc = getEnd(S); in terminateRegion()
985 auto Gap = findGapAreaBetween(getEnd(LastStmt), getStart(Child)); in VisitStmt()
[all …]
/openbsd/src/gnu/llvm/clang/lib/Edit/
DCommit.cpp109 commitableAfter = insertAfterToken(range.getEnd(), after); in insertWrap()
111 commitableAfter = insert(range.getEnd(), after); in insertWrap()
160 addRemove(replacementRange.getEnd(), in replaceWithInner()
303 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange()
306 SM.isInSystemHeader(range.getEnd())) in canRemoveRange()
313 std::pair<FileID, unsigned> endInfo = SM.getDecomposedLoc(range.getEnd()); in canRemoveRange()
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()
866 SourceLocation LitE = LitInfo.WithoutSuffRange.getEnd(); in rewriteToNumberLiteral()
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DContainerModeling.cpp218 if (CData.getEnd()) { in checkLiveSymbols()
219 SR.markLive(CData.getEnd()); in checkLiveSymbols()
220 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getEnd())) in checkLiveSymbols()
313 if (const auto OldEndSym = OldCData->getEnd()) { in handleAssignment()
394 if (const auto EndSym = CData->getEnd()) { in handleClear()
429 if (const auto EndSym = CData->getEnd()) { in handlePushBack()
461 if (const auto EndSym = CData->getEnd()) { in handlePopBack()
581 if (const auto EndSym = CData->getEnd()) { in handleInsert()
613 if (const auto EndSym = CData->getEnd()) { in handleErase()
648 if (const auto EndSym = CData->getEnd()) { in handleErase()
[all …]
/openbsd/src/gnu/llvm/clang/lib/Frontend/
DDiagnosticRenderer.cpp72 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
288 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation()
307 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation()
324 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs()
366 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges()
387 End = Exp.getEnd(); in mapDiagnosticRanges()
477 SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd(); in checkRangeForMacroArgExpansion()
DSARIFDiagnostic.cpp90 CharSourceRange ERange = SM.getExpansionRange(Range.getEnd()); in addLocationToResult()
91 SourceLocation E = ERange.getEnd(); in addLocationToResult()
/openbsd/src/gnu/llvm/llvm/include/llvm/IR/
DDominators.h116 const BasicBlock *getEnd() const { in getEnd() function
139 BBInfo::getHashValue(Edge.getEnd()));
144 BBInfo::isEqual(LHS.getEnd(), RHS.getEnd());
/openbsd/src/gnu/llvm/clang/lib/ARCMigrate/
DTransformActions.cpp68 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange()
410 return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd()); in canRemoveRange()
474 if (replacementRange.getEnd() != range.getEnd()) in commitReplace()
476 getLocForEndOfToken(replacementRange.getEnd(), in commitReplace()
478 range.getEnd())); in commitReplace()
597 return Exp.getEnd(); in getLocForEndOfToken()
598 loc = Exp.getEnd(); in getLocForEndOfToken()
DTransProtectedScope.cpp177 Pass.TA.insert(info.Range.getEnd(), "}\n"); in tryFixing()
195 SM.isBeforeInTranslationUnit(Loc, R.getEnd()); in isInRange()
/openbsd/src/gnu/llvm/clang/lib/Lex/
DPreprocessingRecord.cpp139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
174 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd()); in findLocalPreprocessedEntitiesInRange()
229 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
509 EndLoc = FilenameRange.getEnd(); in InclusionDirective()
DPPConditionalDirectiveRecord.cpp33 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc())) in rangeIntersectsConditionalDirective()
38 Range.getEnd(), CondDirectiveLoc::Comp(SourceMgr)); in rangeIntersectsConditionalDirective()
/openbsd/src/gnu/llvm/llvm/lib/IR/
DDominators.cpp212 const BasicBlock *End = BBE.getEnd(); in dominates()
261 if (PN && PN->getParent() == BBE.getEnd() && in dominates()
353 if (BBE1.getStart() == BBE2.getStart() && BBE1.getEnd() == BBE2.getEnd()) in dominates()
/openbsd/src/gnu/llvm/clang/lib/Tooling/Syntax/
DTokens.cpp50 return !SM.isBeforeInTranslationUnit(R.getEnd(), T.location()); in getTokensCovering()
153 Bound = (&Bound == &Prev) ? Exp.getBegin() : Exp.getEnd(); in spelledForExpandedSlow()
161 Bound = (&Bound == &Prev) ? Exp.getEnd() : Exp.getBegin(); in spelledForExpandedSlow()
173 auto DecLast = SM.getDecomposedLoc(Candidate.getEnd()); in spelledForExpandedSlow()
184 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Next).getEnd()); in spelledForExpandedSlow()
301 const auto E = ExpandedTokIndex.find(R.getEnd()); in expandedTokens()
688 if (!Range.getEnd().isFileID()) in MacroExpands()
693 !SM.isBeforeInTranslationUnit(LastExpansionEnd, Range.getEnd())) in MacroExpands()
705 Collector->Expansions[Range.getBegin()] = Range.getEnd(); in MacroExpands()
706 LastExpansionEnd = Range.getEnd(); in MacroExpands()
/openbsd/src/gnu/llvm/clang/lib/Sema/
DParsedAttr.cpp313 if (Second.Range.getEnd().isValid()) in takeAndConcatenateAttrs()
314 Result.Range.setEnd(Second.Range.getEnd()); in takeAndConcatenateAttrs()
316 Result.Range.setEnd(First.Range.getEnd()); in takeAndConcatenateAttrs()
/openbsd/src/gnu/llvm/clang/lib/Format/
DAffectedRangeManager.cpp64 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), R.getBegin()) && in affectsCharSourceRange()
65 !SourceMgr.isBeforeInTranslationUnit(R.getEnd(), Range.getBegin())) { in affectsCharSourceRange()
DSortJavaScriptImports.cpp160 InsertionPoint.setEnd(References[References.size() - 1].Range.getEnd()); in analyze()
246 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
330 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference()
357 Buffer += getSourceText(Reference.SymbolsEnd, Reference.Range.getEnd()); in appendReference()
/openbsd/src/gnu/llvm/compiler-rt/lib/ubsan/
Dubsan_diag.cpp236 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound()
264 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet()
291 if (InRange && InRange->getEnd().getMemoryLocation() == P) in PrintMemorySnippet()
311 if (!InRange || InRange->getEnd().getMemoryLocation() == P) in PrintMemorySnippet()
/openbsd/src/gnu/llvm/clang/include/clang/Basic/
DSourceLocation.h220 SourceLocation getEnd() const { return E; }
284 SourceLocation getEnd() const { return Range.getEnd(); }
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
DSarifDiagnostics.cpp117 if (R.getBegin() == R.getEnd()) in convertTokenRangeToCharRange()
125 Lexer::getLocForEndOfToken(R.getEnd(), /* Offset = */ 0, SM, LO); in convertTokenRangeToCharRange()
/openbsd/src/gnu/llvm/clang/include/clang/Serialization/
DASTBitCodes.h188 : Begin(R.getBegin().getRawEncoding()), End(R.getEnd().getRawEncoding()), in PPEntityOffset()
195 SourceLocation getEnd() const { in getEnd() function
208 : Begin(R.getBegin().getRawEncoding()), End(R.getEnd().getRawEncoding()) { in PPSkippedRange()
214 SourceLocation getEnd() const { in getEnd() function

1234567