| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 27 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 D | NodeIntrospection.cpp | 69 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 D | Rewriter.cpp | 148 !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 D | MakeSmartPtrCheck.cpp | 204 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 D | UseTrailingReturnTypeCheck.cpp | 132 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 D | Query.cpp | 137 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 D | QualifiedAutoCheck.cpp | 72 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 D | ElseAfterReturnCheck.cpp | 35 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 D | CoverageMappingGen.cpp | 279 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 D | SourceCode.cpp | 46 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 D | RangeSelector.cpp | 120 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 D | SourceCode.cpp | 241 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 D | FixItTest.cpp | 102 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 D | Commit.cpp | 109 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 D | RewriteObjCFoundationAPI.cpp | 195 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 D | LambdaFunctionNameCheck.h | 29 return L.getEnd() < R.getEnd(); in operator()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/fuchsia/ |
| H A D | DefaultArgumentsDeclarationsCheck.cpp | 31 if (DefaultArgRange.getEnd() != D->getEndLoc()) in check() 46 DefaultArgRange.getEnd()); in check()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ContainerModeling.cpp | 218 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 D | DiagnosticRenderer.cpp | 73 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 D | Dominators.h | 116 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 D | ASTUtils.cpp | 76 SM->isMacroArgExpansion(Range.getEnd(), in rangeIsEntirelyWithinMacroArgument() 85 Range.getBegin().isMacroID() || Range.getEnd().isMacroID(); in rangeContainsMacroExpansion()
|
| H A D | LexerUtils.cpp | 96 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 D | TransformActions.cpp | 68 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 D | Dominators.cpp | 212 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 D | PreprocessingRecord.cpp | 140 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()
|