Home
last modified time | relevance | path

Searched refs:getDecomposedLoc (Results 1 – 25 of 67) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/AST/
H A DRawCommentList.cpp130 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
160 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
161 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd()); in getRawTextSlow()
229 std::pair<FileID, unsigned> Loc1Info = SM.getDecomposedLoc(Loc1); in onlyWhitespaceBetween()
230 std::pair<FileID, unsigned> Loc2Info = SM.getDecomposedLoc(Loc2); in onlyWhitespaceBetween()
285 SourceMgr.getDecomposedLoc(RC.getBeginLoc()); in addComment()
355 SourceMgr.getDecomposedLoc(C->getSourceRange().getEnd()).second; in getCommentEndOffset()
/llvm-project-15.0.7/clang/lib/Edit/
H A DCommit.cpp242 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc); in canInsert()
276 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc); in canInsertAfterToken()
312 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
313 std::pair<FileID, unsigned> endInfo = SM.getDecomposedLoc(range.getEnd()); in canRemoveRange()
/llvm-project-15.0.7/clang/lib/Tooling/Syntax/
H A DTokens.cpp90 auto DecFirst = SM.getDecomposedLoc(First); in spelledForExpandedSlow()
91 auto DecLast = SM.getDecomposedLoc(Last); in spelledForExpandedSlow()
142 auto DecBound = SM.getDecomposedLoc(Bound); in spelledForExpandedSlow()
174 auto DecLast = SM.getDecomposedLoc(Candidate.getEnd()); in spelledForExpandedSlow()
180 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Prev).getBegin()); in spelledForExpandedSlow()
185 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Next).getEnd()); in spelledForExpandedSlow()
218 std::tie(File, StartOffset) = SM.getDecomposedLoc(location()); in range()
248 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
260 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXSourceLocation.cpp260 *offset = SM.getDecomposedLoc(ExpansionLoc).second; in clang_getExpansionLocation()
323 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellLoc); in clang_getSpellingLocation()
359 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(FileLoc); in clang_getFileLocation()
H A DCIndexHigh.cpp195 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in findFileIdRefVisit()
290 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in findFileMacroRefVisit()
362 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in visit()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp68 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateEditRange()
69 std::pair<FileID, unsigned> EndInfo = SM.getDecomposedLoc(Range.getEnd()); in validateEditRange()
137 auto FileOffset = SM.getDecomposedLoc(ExpansionRange.getEnd()); in getEntityEndLoc()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTrailingReturnTypeCheck.cpp145 std::pair<FileID, unsigned> Loc = SM.getDecomposedLoc(Result); in findTrailingReturnTypeSourceLocation()
226 std::pair<FileID, unsigned> Loc = SM.getDecomposedLoc(BeginF); in classifyTokensBeforeFunctionName()
353 SM.getDecomposedLoc(ReturnTypeCVRange.getBegin()).second; in keepSpecifiers()
367 unsigned int TOffset = SM.getDecomposedLoc(CT.T.getLocation()).second; in keepSpecifiers()
H A DUseNullptrCheck.cpp333 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(ArgLoc); in getMacroAndArgLocations()
386 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in expandsFrom()
H A DUseOverrideCheck.cpp49 Sources.getDecomposedLoc(Range.getBegin()); in parseTokens()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DArgumentCommentCheck.cpp86 std::pair<FileID, unsigned> BeginLoc = SM.getDecomposedLoc(Range.getBegin()), in getCommentsInRange()
87 EndLoc = SM.getDecomposedLoc(Range.getEnd()); in getCommentsInRange()
112 SM.getDecomposedLoc(Tok.getLocation()); in getCommentsInRange()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceLocation.cpp270 std::pair<FileID, unsigned> FullSourceLoc::getDecomposedLoc() const { in getDecomposedLoc() function in FullSourceLoc
271 return SrcMgr->getDecomposedLoc(*this); in getDecomposedLoc()
H A DSourceManager.cpp947 std::pair<FileID, unsigned> LocInfo = getDecomposedLoc(Loc); in getSpellingLocSlowCase()
1007 std::pair<FileID, unsigned> LocInfo = getDecomposedLoc(Loc); in getImmediateSpellingLoc()
1079 std::pair<FileID, unsigned> DecompLoc = getDecomposedLoc(Loc); in isAtStartOfImmediateMacroExpansion()
1837 std::tie(SpellFID, SpellRelativeOffs) = getDecomposedLoc(SpellLoc); in associateFileChunkWithMacroArgExp()
1915 std::tie(FID, Offset) = getDecomposedLoc(Loc); in getMacroArgExpandedLocation()
1966 DecompLoc = getDecomposedLoc(UpperLoc); in getDecomposedIncludedLoc()
2020 std::pair<FileID, unsigned> LOffs = getDecomposedLoc(LHS); in isBeforeInTranslationUnit()
2021 std::pair<FileID, unsigned> ROffs = getDecomposedLoc(RHS); in isBeforeInTranslationUnit()
H A DSarif.cpp121 std::pair<FileID, unsigned> LocInfo = Loc.getDecomposedLoc(); in adjustColumnPos()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSemanticSelection.cpp44 const auto Begin = SM.getDecomposedLoc(SR.getBegin()), in toFoldingRange()
45 End = SM.getDecomposedLoc(SR.getEnd()); in toFoldingRange()
H A DSourceCode.cpp246 std::tie(BeginFID, BeginOffset) = Mgr.getDecomposedLoc(R.getBegin()); in isValidFileRange()
250 std::tie(EndFID, EndOffset) = Mgr.getDecomposedLoc(R.getEnd()); in isValidFileRange()
946 std::tie(File, Offset) = SM.getDecomposedLoc(SpelledLoc); in touching()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DTextDiagnostic.cpp871 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(B); in emitDiagnosticLoc()
872 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(E); in emitDiagnosticLoc()
1149 std::pair<FileID, unsigned> LocInfo = Loc.getDecomposedLoc(); in emitSnippetAndCaret()
1183 SM.getDecomposedLoc(SM.translateLineCol(FID, LineNo, 1)).second; in emitSnippetAndCaret()
1333 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(BLoc); in emitParseableFixits()
1334 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(ELoc); in emitParseableFixits()
/llvm-project-15.0.7/clang-tools-extra/include-cleaner/unittests/
H A DWalkASTTest.cpp47 auto NDLoc = SM.getDecomposedLoc(SM.getFileLoc(ND.getLocation())); in testWalk()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransforms.cpp139 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc); in findSemiAfterLocation()
387 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(atLoc); in rewritePropertyAttribute()
468 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(atLoc); in addPropertyAttribute()
/llvm-project-15.0.7/clang/lib/Tooling/Core/
H A DReplacement.cpp124 Sources.getDecomposedLoc(Start); in setFromSourceLocation()
139 std::pair<FileID, unsigned> Start = Sources.getDecomposedLoc(SpellingBegin); in getRangeSize()
140 std::pair<FileID, unsigned> End = Sources.getDecomposedLoc(SpellingEnd); in getRangeSize()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DParsedASTTests.cpp360 : HashOffset(SM.getDecomposedLoc(HashLoc).second), IncTok(IncludeTok), in TEST()
362 FileNameOffset(SM.getDecomposedLoc(FilenameRange.getBegin()).second), in TEST()
462 EXPECT_EQ(SM.getDecomposedLoc(SkippedFiles[I].location()).second, in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp97 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in getLexerStartingFromLoc()
123 return SM.getLocForEndOfFile(SM.getDecomposedLoc(Loc).first) == End in getStartOfNextLine()
159 if (SM.getDecomposedLoc(Start).first != SM.getDecomposedLoc(End).first) { in createReplacement()
/llvm-project-15.0.7/clang/lib/Lex/
H A DLexer.cpp337 std::pair<FileID, unsigned> locInfo = SM.getDecomposedLoc(loc); in getSpelling()
475 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in getRawToken()
517 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in getBeginningOfFileToken()
572 std::pair<FileID, unsigned> FileLocInfo = SM.getDecomposedLoc(FileLoc); in GetBeginningOfToken()
574 SM.getDecomposedLoc(BeginFileLoc); in GetBeginningOfToken()
872 std::tie(FID, BeginOffs) = SM.getDecomposedLoc(Begin); in makeRangeFromFileLocs()
972 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(Range.getBegin()); in getSourceText()
1038 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); in getImmediateMacroName()
1063 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc); in getImmediateMacroNameForDiagnostics()
1097 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Loc); in getIndentationForLine()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.cpp208 SourceManager->getDecomposedLoc(Literal->getLocation()); in isSyntheticValue()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DLexerUtils.cpp121 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Range.getBegin()); in getQualifyingToken()
/llvm-project-15.0.7/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp700 std::pair<FileID, unsigned> BInfo = SM.getDecomposedLoc(BLoc); in ProcessCodeCompleteResults()
701 std::pair<FileID, unsigned> EInfo = SM.getDecomposedLoc(ELoc); in ProcessCodeCompleteResults()

123