/external/clang/include/clang/AST/ |
D | Comment.h | 354 return SourceRange(getLocStart().getLocWithOffset(-1), in getCommandNameRange() 405 return SourceRange(L.getLocWithOffset(1), in getTagNameSourceRange() 406 L.getLocWithOffset(1 + TagName.size())); in getTagNameSourceRange() 448 return NameLocBegin.getLocWithOffset(Name.size()); in getNameLocEnd() 463 LocBegin, LocBegin.getLocWithOffset(1 + TagName.size()), in HTMLStartTagComment() 465 LocBegin.getLocWithOffset(1), in HTMLStartTagComment() 466 LocBegin.getLocWithOffset(1 + TagName.size())) { in HTMLStartTagComment() 521 LocBegin.getLocWithOffset(2), in HTMLEndTagComment() 522 LocBegin.getLocWithOffset(2 + TagName.size())) in HTMLEndTagComment() 665 return getLocStart().getLocWithOffset(1); in getCommandNameBeginLoc() [all …]
|
D | CommentLexer.h | 88 return Loc.getLocWithOffset(Length - 1); in getEndLocation() 309 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
|
/external/clang/lib/AST/ |
D | SelectorLocationsKind.cpp | 32 return EndLoc.getLocWithOffset(-Len); in getStandardSelLoc() 42 return ArgLoc.getLocWithOffset(-Len); in getStandardSelLoc() 61 return Loc.getLocWithOffset(-1); in getArgLoc()
|
/external/clang/lib/Format/ |
D | AffectedRangeManager.cpp | 77 Start = Start.getLocWithOffset(First.LastNewlineOffset); in affectsTokenRange() 79 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange() 87 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
|
D | TokenAnalyzer.cpp | 68 SourceLocation Start = StartOfFile.getLocWithOffset(Range.getOffset()); in CreateVirtualEnvironment() 69 SourceLocation End = Start.getLocWithOffset(Range.getLength()); in CreateVirtualEnvironment()
|
D | FormatTokenLexer.cpp | 376 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1); in getStashedToken() 399 FormatTok->Tok.getLocation().getLocWithOffset(-TrailingWhitespace); in getNextToken() 475 WhitespaceStart, WhitespaceStart.getLocWithOffset(WhitespaceLength)); in getNextToken()
|
D | WhitespaceManager.cpp | 83 SourceLocation Start = Tok.getStartOfNonWhitespace().getLocWithOffset(Offset); in replaceWhitespaceInToken() 85 true, SourceRange(Start, Start.getLocWithOffset(ReplaceChars)), in replaceWhitespaceInToken()
|
/external/clang/lib/Edit/ |
D | Commit.cpp | 21 Loc = Loc.getLocWithOffset(Offset.getOffset()); in getFileLocation() 28 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length)); in getFileRange() 33 Loc = Loc.getLocWithOffset(InsertFromRangeOffs.getOffset()); in getInsertFromRange() 35 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length)); in getInsertFromRange() 253 AfterLoc = loc.getLocWithOffset(tokLen); in canInsertAfterToken()
|
D | EditedSource.cpp | 369 Loc = Loc.getLocWithOffset(offs.getOffset()); in applyRewrite() 376 Loc.getLocWithOffset(len)); in applyRewrite() 437 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset()); in getSourceText() 440 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset()); in getSourceText()
|
/external/clang/lib/Frontend/ |
D | VerifyDiagnosticConsumer.cpp | 404 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 421 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 444 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 463 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 472 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 495 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective() 509 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
|
D | ASTUnit.cpp | 2550 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset); in TranslateStoredDiagnostics() 2556 SourceLocation BL = FileLoc.getLocWithOffset(Range.first); in TranslateStoredDiagnostics() 2557 SourceLocation EL = FileLoc.getLocWithOffset(Range.second); in TranslateStoredDiagnostics() 2567 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics() 2568 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics() 2673 return SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Offset)); in getLocation() 2691 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble() 2712 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 318 macroRange.getEnd().getLocWithOffset(1))); in TEST_F() 335 EXPECT_EQ(SourceRange(fileLsqrLoc, fileIdLoc.getLocWithOffset(3)), in TEST_F() 340 EXPECT_EQ(SourceRange(fileIdLoc, fileRsqrLoc.getLocWithOffset(1)), in TEST_F() 347 EXPECT_EQ(SourceRange(macroPair.first, macroPair.second.getLocWithOffset(1)), in TEST_F()
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 748 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude() 778 startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewritePropertyImplDecl() 1007 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl() 1012 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl() 1537 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf); in RewriteObjCForCollectionStmt() 1614 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1); in RewriteObjCForCollectionStmt() 1627 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1); in RewriteObjCForCollectionStmt() 1659 SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf); in RewriteObjCSynchronizedStmt() 1748 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewriteTryReturnStmts() 1770 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewriteSyncReturnStmts() [all …]
|
D | RewriteModernObjC.cpp | 819 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude() 929 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewritePropertyImplDecl() 1175 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl() 1180 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl() 1746 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf); in RewriteObjCForCollectionStmt() 1823 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1); in RewriteObjCForCollectionStmt() 1836 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1); in RewriteObjCForCollectionStmt() 1885 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf); in RewriteObjCSynchronizedStmt() 2055 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf); in RewriteObjCThrowStmt() 2181 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf); in RewriteObjCQualifiedInterfaceTypes() [all …]
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 910 Loc = Loc.getLocWithOffset(LocInfo.second); in getSpellingLocSlowCase() 952 Loc = Loc.getLocWithOffset(Offset); in getDecomposedSpellingLocSlowCase() 970 return Loc.getLocWithOffset(LocInfo.second); in getImmediateSpellingLoc() 1062 SourceLocation NextLoc = Loc.getLocWithOffset(1); in isAtEndOfImmediateMacroExpansion() 1512 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc() 1763 return FileLoc.getLocWithOffset(Size); in translateLineCol() 1771 return FileLoc.getLocWithOffset(FilePos); in translateLineCol() 1778 return FileLoc.getLocWithOffset(FilePos + i); in translateLineCol() 1875 Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs), in associateFileChunkWithMacroArgExp() 1884 ExpansionLoc = ExpansionLoc.getLocWithOffset(advance); in associateFileChunkWithMacroArgExp() [all …]
|
/external/clang/lib/Lex/ |
D | ScratchBuffer.cpp | 57 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1); in getToken()
|
D | Lexer.cpp | 483 SourceLocation LexerStartLoc = Loc.getLocWithOffset(-LocInfo.second); in getBeginningOfFileToken() 525 return Loc.getLocWithOffset(BeginFileLocInfo.second - FileLocInfo.second); in GetBeginningOfToken() 721 return TokStart.getLocWithOffset(PhysOffset); in AdvanceToTokenCharacter() 743 return TokStart.getLocWithOffset(PhysOffset); in AdvanceToTokenCharacter() 778 return Loc.getLocWithOffset(Len); in getLocForEndOfToken() 816 SourceLocation afterLoc = loc.getLocWithOffset(tokLen); in isAtEndOfMacroExpansion() 1058 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc() 1079 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation() 1236 return TokenLoc.getLocWithOffset(Tok.getLength() + NumWhitespaceChars); in findLocationAfterToken() 2716 SourceLocation Loc = FileLoc.getLocWithOffset(CurPtr-BufferStart); in isCodeCompletionPoint()
|
D | PPLexerChange.cpp | 102 CodeCompletionFileLoc.getLocWithOffset(CodeCompletionOffset); in EnterSourceFile() 452 Result.setLocation(Result.getLocation().getLocWithOffset(-1)); in HandleEndOfFile()
|
/external/bcc/src/cc/frontends/clang/ |
D | b_frontend_action.cc | 535 opts).getLocWithOffset(1); in VisitArraySubscriptExpr() 536 lbracket_end = GET_BEGINLOC(idx).getLocWithOffset(-1); in VisitArraySubscriptExpr() 964 warning(loc.getLocWithOffset(i), "unrecognized character"); in checkFormatSpecifiers() 970 warning(loc.getLocWithOffset(i), "cannot use more than 3 conversion specifiers"); in checkFormatSpecifiers() 980 warning(loc.getLocWithOffset(i - 2), in checkFormatSpecifiers() 986 warning(loc.getLocWithOffset(i - 2), "cannot use several %%s conversion specifiers"); in checkFormatSpecifiers() 999 warning(loc.getLocWithOffset(i - j), in checkFormatSpecifiers()
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 181 Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]); in fillRanges() 190 End = Start.getLocWithOffset(Lengths[i]); in fillRanges()
|
/external/v8/tools/clang/base_bind_rewriters/ |
D | BaseBindRewriters.cpp | 97 .getLocWithOffset(-1)); in run() 126 .getLocWithOffset(-1)); in run() 625 .getLocWithOffset(-1)); in run()
|
/external/clang/lib/ARCMigrate/ |
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() 751 BeginOfEnumDclLoc = BeginOfEnumDclLoc.getLocWithOffset(-1); in rewriteToNSEnumDecl() 786 EndLoc = EndLoc.getLocWithOffset(count-1); in rewriteToNSMacroDecl() 794 StartTypedefLoc = StartTypedefLoc.getLocWithOffset(+1); in rewriteToNSMacroDecl() 2177 SM.getLocForStartOfFile(FID).getLocWithOffset(Entry.Offset); in applyEditsToTemp() 2181 Loc.getLocWithOffset(Entry.RemoveLen)); in applyEditsToTemp()
|
/external/clang/lib/CodeGen/ |
D | CodeGenAction.cpp | 289 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset); in ConvertBackendLocation() 336 B << SourceRange(Loc.getLocWithOffset(Range.first - Column), in InlineAsmDiagHandler2() 337 Loc.getLocWithOffset(Range.second - Column)); in InlineAsmDiagHandler2()
|
/external/clang/include/clang/Lex/ |
D | Token.h | 152 : getLocation().getLocWithOffset(getLength()); in getEndLoc()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | HTMLDiagnostics.cpp | 548 SM.getLocForStartOfFile(LPosInfo.first).getLocWithOffset(DisplayPos); in HandlePiece() 631 InstantiationEnd.getLocWithOffset(EndColNo - OldEndColNo); in HighlightRange()
|