Home
last modified time | relevance | path

Searched refs:getLocWithOffset (Results 1 – 25 of 66) sorted by relevance

123

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DComment.h350 return SourceRange(getBeginLoc().getLocWithOffset(-1), getEndLoc()); in getCommandNameRange()
400 return SourceRange(L.getLocWithOffset(1), in getTagNameSourceRange()
401 L.getLocWithOffset(1 + TagName.size())); in getTagNameSourceRange()
443 return NameLocBegin.getLocWithOffset(Name.size()); in getNameLocEnd()
460 LocBegin.getLocWithOffset(1), in HTMLStartTagComment()
461 LocBegin.getLocWithOffset(1 + TagName.size())) { in HTMLStartTagComment()
516 LocBegin.getLocWithOffset(2), in HTMLEndTagComment()
517 LocBegin.getLocWithOffset(2 + TagName.size())) in HTMLEndTagComment()
660 return getBeginLoc().getLocWithOffset(1); in getCommandNameBeginLoc()
666 getBeginLoc().getLocWithOffset(1 + Name.size())); in getCommandNameRange()
[all …]
H A DCommentLexer.h87 return Loc.getLocWithOffset(Length - 1); in getEndLocation()
313 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DSelectorLocationsKind.cpp32 return EndLoc.getLocWithOffset(-Len); in getStandardSelLoc()
42 return ArgLoc.getLocWithOffset(-Len); in getStandardSelLoc()
61 return Loc.getLocWithOffset(-1); in getArgLoc()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DSymbolOccurrences.cpp26 Locations[0], Locations[0].getLocWithOffset(NamePieces[0].size())); in SymbolOccurrence()
35 Loc.value().getLocWithOffset(NamePieces[Loc.index()].size())); in SymbolOccurrence()
H A DUSRLocFinder.cpp101 BeginLoc.getLocWithOffset(Offset)); in checkAndAddLocation()
135 .getLocWithOffset(-1); in EndLocationForType()
262 ? Expr->getLAngleLoc().getLocWithOffset(-1) in VisitDeclRefExpr()
306 EndLoc = Expr->getQualifierLoc().getEndLoc().getLocWithOffset(-1); in VisitDeclRefExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DAffectedRangeManager.cpp78 Start = Start.getLocWithOffset(First.LastNewlineOffset); in affectsTokenRange()
80 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()
88 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
H A DTokenAnalyzer.cpp46 SourceLocation Start = StartOfFile.getLocWithOffset(Range.getOffset()); in Environment()
47 SourceLocation End = Start.getLocWithOffset(Range.getLength()); in Environment()
H A DFormatTokenLexer.cpp465 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1); in getStashedToken()
484 FormatTok->Tok.getLocation().getLocWithOffset(-TrailingWhitespace); in getNextToken()
599 WhitespaceStart, WhitespaceStart.getLocWithOffset(WhitespaceLength)); in getNextToken()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Edit/
H A DCommit.cpp27 Loc = Loc.getLocWithOffset(Offset.getOffset()); in getFileLocation()
34 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length)); in getFileRange()
39 Loc = Loc.getLocWithOffset(InsertFromRangeOffs.getOffset()); in getInsertFromRange()
41 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length)); in getInsertFromRange()
258 AfterLoc = loc.getLocWithOffset(tokLen); in canInsertAfterToken()
H A DEditedSource.cpp389 Loc = Loc.getLocWithOffset(offs.getOffset()); in applyRewrite()
396 Loc.getLocWithOffset(len)); in applyRewrite()
460 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset()); in getSourceText()
463 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset()); in getSourceText()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp486 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
506 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
529 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
548 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
557 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
580 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
594 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
H A DASTUnit.cpp2359 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset); in TranslateStoredDiagnostics()
2365 SourceLocation BL = FileLoc.getLocWithOffset(Range.first); in TranslateStoredDiagnostics()
2366 SourceLocation EL = FileLoc.getLocWithOffset(Range.second); in TranslateStoredDiagnostics()
2376 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics()
2377 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
2482 return SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Offset)); in getLocation()
2500 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble()
2521 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp749 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
779 startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewritePropertyImplDecl()
1808 startLoc = startLoc.getLocWithOffset(1); in RewriteObjCTryStmt()
1889 bodyLoc = bodyLoc.getLocWithOffset(-1); in RewriteObjCTryStmt()
1917 startLoc = startLoc.getLocWithOffset(1); in RewriteObjCTryStmt()
1919 endLoc = endLoc.getLocWithOffset(-1); in RewriteObjCTryStmt()
1943 lastCurlyLoc = lastCurlyLoc.getLocWithOffset(1); in RewriteObjCTryStmt()
2164 Loc.getLocWithOffset(startRef-startFuncBuf); in RewriteObjCQualifiedInterfaceTypes()
2166 Loc.getLocWithOffset(endRef-startFuncBuf+1); in RewriteObjCQualifiedInterfaceTypes()
3162 LocStart.getLocWithOffset(cursor-startBuf+1); in RewriteObjCInternalStruct()
[all …]
H A DRewriteModernObjC.cpp823 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
1826 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1); in RewriteObjCForCollectionStmt()
2232 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-endBuf); in RewriteObjCQualifiedInterfaceTypes()
2255 Loc.getLocWithOffset(startRef-startFuncBuf); in RewriteObjCQualifiedInterfaceTypes()
2257 Loc.getLocWithOffset(endRef-startFuncBuf+1); in RewriteObjCQualifiedInterfaceTypes()
4751 LocStart = LocStart.getLocWithOffset(argPtr-startBuf); in RewriteCastExpr()
4785 DeclLoc = DeclLoc.getLocWithOffset(startArgList-startBuf); in RewriteBlockPointerFunctionArgs()
4794 DeclLoc = DeclLoc.getLocWithOffset(argPtr-startArgList); in RewriteBlockPointerFunctionArgs()
4891 SourceLocation Start = DeclLoc.getLocWithOffset(startBuf-endBuf); in RewriteBlockPointerDecl()
5128 DeclLoc = DeclLoc.getLocWithOffset(commaBuf - startDeclBuf); in RewriteByRefVar()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DSourceManager.cpp898 Loc = Loc.getLocWithOffset(LocInfo.second); in getSpellingLocSlowCase()
940 Loc = Loc.getLocWithOffset(Offset); in getDecomposedSpellingLocSlowCase()
958 return Loc.getLocWithOffset(LocInfo.second); in getImmediateSpellingLoc()
1057 SourceLocation NextLoc = Loc.getLocWithOffset(1); in isAtEndOfImmediateMacroExpansion()
1470 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc()
1721 return FileLoc.getLocWithOffset(Size); in translateLineCol()
1729 return FileLoc.getLocWithOffset(FilePos); in translateLineCol()
1736 return FileLoc.getLocWithOffset(FilePos + i); in translateLineCol()
1830 Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs), in associateFileChunkWithMacroArgExp()
1839 ExpansionLoc = ExpansionLoc.getLocWithOffset(advance); in associateFileChunkWithMacroArgExp()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DScratchBuffer.cpp65 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1); in getToken()
H A DLexer.cpp519 SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second); in getBeginningOfFileToken()
562 return Loc.getLocWithOffset(BeginFileLocInfo.second - FileLocInfo.second); in GetBeginningOfToken()
788 return Loc.getLocWithOffset(Len); in getLocForEndOfToken()
826 SourceLocation afterLoc = loc.getLocWithOffset(tokLen); in isAtEndOfMacroExpansion()
1108 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc()
1128 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
1291 return TokenLoc.getLocWithOffset(Tok->getLength() + NumWhitespaceChars); in findLocationAfterToken()
2104 FileLoc.getLocWithOffset(StartOfFilename - BufferStart), in codeCompleteIncludedFile()
2105 FileLoc.getLocWithOffset(CompletionPoint - BufferStart)); in codeCompleteIncludedFile()
2948 SourceLocation Loc = FileLoc.getLocWithOffset(CurPtr-BufferStart); in isCodeCompletionPoint()
H A DPPLexerChange.cpp93 CodeCompletionFileLoc.getLocWithOffset(CodeCompletionOffset); in EnterSourceFile()
501 Result.setLocation(Result.getLocation().getLocWithOffset(-1)); in HandleEndOfFile()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Lex/
H A DLexer.h353 return TokStart.getLocWithOffset( in AdvanceToTokenCharacter()
386 Range.getBegin(), End.getLocWithOffset(-1)); in getAsCharRange()
H A DToken.h153 : getLocation().getLocWithOffset(getLength()); in getEndLoc()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/
H A DRecursiveSymbolVisitor.h127 Loc.getLocWithOffset(ND->getNameAsString().length() - 1)); in visit()
/freebsd-12.1/contrib/llvm/tools/clang/tools/clang-format/
H A DClangFormat.cpp185 Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]); in fillRanges()
194 End = Start.getLocWithOffset(Lengths[i]); in fillRanges()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DObjCMT.cpp297 EndLoc = EndLoc.getLocWithOffset(-1); in rewriteToPropertyDotSyntax()
547 StartGetterSelectorLoc.getLocWithOffset(GetterSelector.getNameForSlot(0).size()); in rewriteToObjCProperty()
554 EndLoc = EndLoc.getLocWithOffset(1); in rewriteToObjCProperty()
558 BeginOfSetterDclLoc = BeginOfSetterDclLoc.getLocWithOffset(-1); in rewriteToObjCProperty()
752 BeginOfEnumDclLoc = BeginOfEnumDclLoc.getLocWithOffset(-1); in rewriteToNSEnumDecl()
784 StartTypedefLoc = StartTypedefLoc.getLocWithOffset(+1); in rewriteToNSMacroDecl()
2178 SM.getLocForStartOfFile(FID).getLocWithOffset(Entry.Offset); in applyEditsToTemp()
2182 Loc.getLocWithOffset(Entry.RemoveLen)); in applyEditsToTemp()
H A DTransEmptyStatementsAndDealloc.cpp51 AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size()); in isEmptyARCMTMacroStatement()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenAction.cpp403 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset); in ConvertBackendLocation()
452 B << SourceRange(Loc.getLocWithOffset(Range.first - Column), in InlineAsmDiagHandler2()
453 Loc.getLocWithOffset(Range.second - Column)); in InlineAsmDiagHandler2()

123