Home
last modified time | relevance | path

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

12345678910

/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp27 R.getEnd(), tok::raw_identifier, SM, LangOpts, in getLexicalDeclRange()
43 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
45 : Selection.getEnd()), in ASTSelectionFinder()
87 if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID()) in TraverseDecl()
88 FileLoc = DeclRange.getEnd(); in TraverseDecl()
101 if (DeclRange.getEnd().isValid() && in TraverseDecl()
104 DeclRange.getEnd())) { in TraverseDecl()
140 SourceLocation End = Range.getEnd(); in selectionKindFor()
186 SelectionRange.getEnd()) && in findSelectedASTNodes()
190 assert(Context.getSourceManager().getFileID(SelectionRange.getEnd()) == in findSelectedASTNodes()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/
H A DNodeIntrospection.cpp69 if (LHS.first.getEnd() < RHS.first.getEnd()) in operator ()()
71 else if (LHS.first.getEnd() != RHS.first.getEnd()) in operator ()()
/llvm-project-15.0.7/clang/lib/Rewrite/
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMakeSmartPtrCheck.cpp204 CharSourceRange::getCharRange(BraceRange.getEnd(), in checkConstruct()
205 BraceRange.getEnd().getLocWithOffset(1)), in checkConstruct()
279 SourceLocation NewEnd = NewRange.getEnd(); in replaceNew()
361 Diag << FixItHint::CreateRemoval(SourceRange(InitRange.getEnd(), NewEnd)); in replaceNew()
402 NewConstruct->getParenOrBraceRange().getEnd().getLocWithOffset(-1)); in replaceNew()
423 New->getInitializer()->getSourceRange().getEnd()); in replaceNew()
428 SourceRange(InitRange.getEnd().getLocWithOffset(1), NewEnd)); in replaceNew()
H A DUseTrailingReturnTypeCheck.cpp132 return Lexer::getLocForEndOfToken(ExceptionSpecRange.getEnd(), 0, SM, in findTrailingReturnTypeSourceLocation()
301 ReturnTypeRange.setEnd(expandIfMacroId(ReturnTypeRange.getEnd(), SM)); in findReturnTypeAndCVSourceRange()
317 if (SM.isBeforeInTranslationUnit(ReturnTypeRange.getEnd(), in findReturnTypeAndCVSourceRange()
327 assert(!ReturnTypeRange.getEnd().isMacroID() && in findReturnTypeAndCVSourceRange()
359 SM.isBeforeInTranslationUnit(ReturnTypeCVRange.getEnd(), in keepSpecifiers()
477 Lexer::getLocForEndOfToken(ReturnTypeCVRange.getEnd(), 0, SM, LangOpts); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-query/
H A DQuery.cpp137 SM.getPresumedLineNumber(Iter->first.getEnd())) in dumpLocations()
154 SM.getPresumedLineNumber(Iter->first.getEnd())) in dumpLocations()
162 auto ColNum = SM.getPresumedColumnNumber(Iter->first.getEnd()); in dumpLocations()
163 auto LastLineLoc = Iter->first.getEnd().getLocWithOffset(-(ColNum - 1)); in dumpLocations()
165 TD.emitDiagnostic(FullSourceLoc(Iter->first.getEnd(), SM), in dumpLocations()
168 SourceRange(LastLineLoc, Iter->first.getEnd())), in dumpLocations()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DQualifiedAutoCheck.cpp72 TypeSpecifier.getEnd().isMacroID()) in getTypeSpecifierLocation()
83 if (TypeSpecifier.getEnd().getLocWithOffset(1) == ConstToken.getLocation()) { in mergeReplacementRange()
193 if (Var->getLocation() == TypeSpecifier.getEnd().getLocWithOffset(1)) in check()
194 TypeSpecifier.setEnd(TypeSpecifier.getEnd().getLocWithOffset(1)); in check()
258 TypeSpec->getEnd().isMacroID()) in check()
280 TypeSpec->getEnd().isMacroID()) in check()
H A DElseAfterReturnCheck.cpp35 assert(Collection.empty() || Collection.back().getEnd() < Loc); in Endif()
211 return LHS.getEnd() < RHS.getEnd(); in hasPreprocessorBranchEndBetweenLocations()
218 return LHS.getEnd() < RHS; in hasPreprocessorBranchEndBetweenLocations()
221 for (; Begin != End && Begin->getEnd() < ExpandedEndLoc; ++Begin) in hasPreprocessorBranchEndBetweenLocations()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp279 SourceLocation getEnd(const Stmt *S) { in getEnd() function in __anon8934bc200211::CoverageMappingBuilder
381 auto LocEnd = Range.getEnd(); in gatherSkippedRegions()
499 SourceLocation End = getEnd(Body); in VisitDecl()
699 SourceLocation EndLoc = getEnd(S); in propagateCounts()
873 SourceLocation EndLoc = getEnd(S); in terminateRegion()
994 handleFileExit(getEnd(S)); in VisitStmt()
1099 adjustForOutOfOrderTraversal(getEnd(S)); in VisitWhileStmt()
1188 adjustForOutOfOrderTraversal(getEnd(S)); in VisitForStmt()
1313 SourceLocation ExitLoc = getEnd(S); in VisitSwitchStmt()
1480 handleFileExit(getEnd(E->getLHS())); in VisitBinLAnd()
[all …]
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp46 Lexer::getRawToken(R.getEnd(), Tok, Context.getSourceManager(), in maybeExtendRange()
59 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateEditRange()
64 SM.isInSystemHeader(Range.getEnd())) in validateEditRange()
69 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateEditRange()
137 auto FileOffset = SM.getDecomposedLoc(ExpansionRange.getEnd()); in getEntityEndLoc()
358 atOrBeforeSeparation(SM, Range.getEnd(), LangOpts)) { in getAssociatedRange()
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.cpp241 if (!R.getBegin().isValid() || !R.getEnd().isValid()) in isValidFileRange()
250 std::tie(EndFID, EndOffset) = Mgr.getDecomposedLoc(R.getEnd()); in isValidFileRange()
328 ? R2.getEnd() in unionTokenRange()
329 : R1.getEnd(); in unionTokenRange()
339 if (SM.isWrittenInSameFile(R.getBegin(), R.getEnd())) in rangeInCommonFile()
351 for (SourceLocation End = R.getEnd(); End.isValid(); in rangeInCommonFile()
355 .getEnd()) { in rangeInCommonFile()
428 SourceRange R2 = getTokenFileRange(R.getEnd(), SM, LangOpts); in toHalfOpenFileRange()
436 Result.setEnd(Result.getEnd().getLocWithOffset(TokLen)); in toHalfOpenFileRange()
449 size_t EndOffset = SM.getFileOffset(R.getEnd()); in toSourceCode()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DFixItTest.cpp102 Hint0.RemoveRange.getEnd().printToString(AST.sourceManager())); in TEST()
110 Hint1.RemoveRange.getEnd().printToString(AST.sourceManager())); in TEST()
121 Hint.RemoveRange.getEnd().printToString(AST.sourceManager())); in TEST()
165 Hint.RemoveRange.getEnd().printToString(AST.sourceManager())); in TEST()
174 Hint.RemoveRange.getEnd().printToString(AST.sourceManager())); in TEST()
/llvm-project-15.0.7/clang/lib/Edit/
H A 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()
H A DRewriteObjCFoundationAPI.cpp195 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon()
247 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet()
283 commit.replaceWithInner(SourceRange(Arg0Range.getBegin(), MsgRange.getEnd()), in rewriteToDictionarySubscriptSet()
517 commit.insertAfterToken(ValRange.getEnd(), "}"); in rewriteToDictionaryLiteral()
544 commit.insertAfterToken(KeyRange.getEnd(), ": "); in rewriteToDictionaryLiteral()
545 commit.insertFromRange(KeyRange.getEnd(), ValRange, /*afterToken=*/true); in rewriteToDictionaryLiteral()
588 commit.insertAfterToken(KeyRange.getEnd(), ": "); in rewriteToDictionaryLiteral()
589 commit.insertFromRange(KeyRange.getEnd(), ValRange, /*afterToken=*/true); in rewriteToDictionaryLiteral()
686 literalRange.getEnd().isMacroID()) in getLiteralInfo()
865 SourceLocation LitE = LitInfo.WithoutSuffRange.getEnd(); in rewriteToNumberLiteral()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DLambdaFunctionNameCheck.h29 return L.getEnd() < R.getEnd(); in operator()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/fuchsia/
H A DDefaultArgumentsDeclarationsCheck.cpp31 if (DefaultArgRange.getEnd() != D->getEndLoc()) in check()
46 DefaultArgRange.getEnd()); in check()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp218 if (CData.getEnd()) { in checkLiveSymbols()
219 SR.markLive(CData.getEnd()); in checkLiveSymbols()
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()
737 if (CData.getEnd()) in printState()
738 CData.getEnd()->dumpToStream(Out); in printState()
835 return CDataPtr->getEnd(); in getContainerEnd()
[all …]
/llvm-project-15.0.7/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp73 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
289 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation()
308 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation()
325 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs()
367 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges()
388 End = Exp.getEnd(); in mapDiagnosticRanges()
478 SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd(); in checkRangeForMacroArgExpansion()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDominators.h116 const BasicBlock *getEnd() const { in getEnd() function
139 BBInfo::getHashValue(Edge.getEnd()));
144 BBInfo::isEqual(LHS.getEnd(), RHS.getEnd());
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DASTUtils.cpp76 SM->isMacroArgExpansion(Range.getEnd(), in rangeIsEntirelyWithinMacroArgument()
85 Range.getBegin().isMacroID() || Range.getEnd().isMacroID(); in rangeContainsMacroExpansion()
H A DLexerUtils.cpp96 while (Loc < Range.getEnd()) { in rangeContainsExpansionsOrDirectives()
130 Range.getEnd() != Tok.getLocation() && in getQualifyingToken()
131 !SM.isBeforeInTranslationUnit(Range.getEnd(), Tok.getLocation())) { in getQualifyingToken()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A 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()
/llvm-project-15.0.7/llvm/lib/IR/
H A 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()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessingRecord.cpp140 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
172 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
175 unsigned End = findEndLocalPreprocessedEntity(Range.getEnd()); in findLocalPreprocessedEntitiesInRange()
230 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
516 EndLoc = FilenameRange.getEnd(); in InclusionDirective()

12345678910