| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | Comment.h | 350 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 D | CommentLexer.h | 87 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 D | SelectorLocationsKind.cpp | 32 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 D | SymbolOccurrences.cpp | 26 Locations[0], Locations[0].getLocWithOffset(NamePieces[0].size())); in SymbolOccurrence() 35 Loc.value().getLocWithOffset(NamePieces[Loc.index()].size())); in SymbolOccurrence()
|
| H A D | USRLocFinder.cpp | 101 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 D | AffectedRangeManager.cpp | 78 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 D | TokenAnalyzer.cpp | 46 SourceLocation Start = StartOfFile.getLocWithOffset(Range.getOffset()); in Environment() 47 SourceLocation End = Start.getLocWithOffset(Range.getLength()); in Environment()
|
| H A D | FormatTokenLexer.cpp | 465 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 D | Commit.cpp | 27 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 D | EditedSource.cpp | 389 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 D | VerifyDiagnosticConsumer.cpp | 486 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 D | ASTUnit.cpp | 2359 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 D | RewriteObjC.cpp | 749 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 D | RewriteModernObjC.cpp | 823 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 D | SourceManager.cpp | 898 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 D | ScratchBuffer.cpp | 65 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1); in getToken()
|
| H A D | Lexer.cpp | 519 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 D | PPLexerChange.cpp | 93 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 D | Lexer.h | 353 return TokStart.getLocWithOffset( in AdvanceToTokenCharacter() 386 Range.getBegin(), End.getLocWithOffset(-1)); in getAsCharRange()
|
| H A D | Token.h | 153 : getLocation().getLocWithOffset(getLength()); in getEndLoc()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Refactoring/ |
| H A D | RecursiveSymbolVisitor.h | 127 Loc.getLocWithOffset(ND->getNameAsString().length() - 1)); in visit()
|
| /freebsd-12.1/contrib/llvm/tools/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 185 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 D | ObjCMT.cpp | 297 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 D | TransEmptyStatementsAndDealloc.cpp | 51 AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size()); in isEmptyARCMTMacroStatement()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | CodeGenAction.cpp | 403 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()
|