Home
last modified time | relevance | path

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

123

/external/clang/include/clang/AST/
DComment.h354 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 …]
DCommentLexer.h88 return Loc.getLocWithOffset(Length - 1); in getEndLocation()
309 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
/external/clang/lib/AST/
DSelectorLocationsKind.cpp32 return EndLoc.getLocWithOffset(-Len); in getStandardSelLoc()
42 return ArgLoc.getLocWithOffset(-Len); in getStandardSelLoc()
61 return Loc.getLocWithOffset(-1); in getArgLoc()
DCommentSema.cpp427 Loc.getLocWithOffset(1 + CommandName.size()), in actOnVerbatimBlockStart()
451 TextBegin.getLocWithOffset(Text.size()), in actOnVerbatimLine()
708 << FixItHint::CreateInsertion(FD->getLocEnd().getLocWithOffset(1), in checkDeprecatedCommand()
/external/clang/lib/Edit/
DCommit.cpp21 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()
DEditedSource.cpp317 Loc = Loc.getLocWithOffset(offs.getOffset()); in applyRewrite()
324 Loc.getLocWithOffset(len)); in applyRewrite()
385 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset()); in getSourceText()
388 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset()); in getSourceText()
/external/clang/lib/Frontend/
DVerifyDiagnosticConsumer.cpp406 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
423 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
446 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
465 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
474 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
497 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
511 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
DASTUnit.cpp2510 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset); in TranslateStoredDiagnostics()
2516 SourceLocation BL = FileLoc.getLocWithOffset(Range.first); in TranslateStoredDiagnostics()
2517 SourceLocation EL = FileLoc.getLocWithOffset(Range.second); in TranslateStoredDiagnostics()
2527 SourceLocation BL = FileLoc.getLocWithOffset(FixIt.RemoveRange.first); in TranslateStoredDiagnostics()
2528 SourceLocation EL = FileLoc.getLocWithOffset(FixIt.RemoveRange.second); in TranslateStoredDiagnostics()
2633 return SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Offset)); in getLocation()
2651 return FileLoc.getLocWithOffset(Offs); in mapLocationFromPreamble()
2672 return FileLoc.getLocWithOffset(Offs); in mapLocationToPreamble()
/external/clang/unittests/Lex/
DLexerTest.cpp314 macroRange.getEnd().getLocWithOffset(1))); in TEST_F()
331 EXPECT_EQ(SourceRange(fileLsqrLoc, fileIdLoc.getLocWithOffset(3)), in TEST_F()
336 EXPECT_EQ(SourceRange(fileIdLoc, fileRsqrLoc.getLocWithOffset(1)), in TEST_F()
343 EXPECT_EQ(SourceRange(macroPair.first, macroPair.second.getLocWithOffset(1)), in TEST_F()
/external/clang/lib/Lex/
DScratchBuffer.cpp57 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1); in getToken()
DLexer.cpp483 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()
741 return TokStart.getLocWithOffset(PhysOffset); in AdvanceToTokenCharacter()
776 return Loc.getLocWithOffset(Len); in getLocForEndOfToken()
814 SourceLocation afterLoc = loc.getLocWithOffset(tokLen); in isAtEndOfMacroExpansion()
1031 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc()
1052 return FileLoc.getLocWithOffset(CharNo); in getSourceLocation()
1209 return TokenLoc.getLocWithOffset(Tok.getLength() + NumWhitespaceChars); in findLocationAfterToken()
2684 SourceLocation Loc = FileLoc.getLocWithOffset(CurPtr-BufferStart); in isCodeCompletionPoint()
DPPLexerChange.cpp101 CodeCompletionFileLoc.getLocWithOffset(CodeCompletionOffset); in EnterSourceFile()
438 Result.setLocation(Result.getLocation().getLocWithOffset(-1)); in HandleEndOfFile()
DTokenLexer.cpp743 return MacroExpansionStart.getLocWithOffset(relativeOffset); in getExpansionLocForMacroDefLoc()
808 Tok.setLocation(Expansion.getLocWithOffset(RelOffs)); in updateConsecutiveMacroArgTokens()
DPTHLexer.cpp75 Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset)); in Lex()
296 return FileStartLoc.getLocWithOffset(Offset); in getSourceLocation()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp748 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()
1536 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf); in RewriteObjCForCollectionStmt()
1613 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1); in RewriteObjCForCollectionStmt()
1626 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1); in RewriteObjCForCollectionStmt()
1658 SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf); in RewriteObjCSynchronizedStmt()
1750 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewriteTryReturnStmts()
1773 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewriteSyncReturnStmts()
[all …]
DRewriteModernObjC.cpp829 LocStart.getLocWithOffset(BufPtr-MainBufStart); in RewriteInclude()
940 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1); in RewritePropertyImplDecl()
1186 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1191 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf); in RewriteProtocolDecl()
1772 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf); in RewriteObjCForCollectionStmt()
1849 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1); in RewriteObjCForCollectionStmt()
1862 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1); in RewriteObjCForCollectionStmt()
1911 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf); in RewriteObjCSynchronizedStmt()
2082 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf); in RewriteObjCThrowStmt()
2207 SourceLocation LessLoc = Loc.getLocWithOffset(startRef-startBuf); in RewriteObjCQualifiedInterfaceTypes()
[all …]
/external/clang/lib/Basic/
DSourceManager.cpp907 Loc = Loc.getLocWithOffset(LocInfo.second); in getSpellingLocSlowCase()
949 Loc = Loc.getLocWithOffset(Offset); in getDecomposedSpellingLocSlowCase()
967 return Loc.getLocWithOffset(LocInfo.second); in getImmediateSpellingLoc()
1054 SourceLocation NextLoc = Loc.getLocWithOffset(1); in isAtEndOfImmediateMacroExpansion()
1497 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset); in getPresumedLoc()
1748 return FileLoc.getLocWithOffset(Size); in translateLineCol()
1756 return FileLoc.getLocWithOffset(FilePos); in translateLineCol()
1763 return FileLoc.getLocWithOffset(FilePos + i); in translateLineCol()
1860 Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs), in associateFileChunkWithMacroArgExp()
1869 ExpansionLoc = ExpansionLoc.getLocWithOffset(advance); in associateFileChunkWithMacroArgExp()
[all …]
/external/clang/tools/clang-format/
DClangFormat.cpp167 Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]); in fillRanges()
176 End = Start.getLocWithOffset(Lengths[i]); in fillRanges()
/external/clang/lib/Format/
DFormat.cpp961 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1); in getStashedToken()
984 FormatTok->Tok.getLocation().getLocWithOffset(-TrailingWhitespace); in getNextToken()
1052 WhitespaceStart, WhitespaceStart.getLocWithOffset(WhitespaceLength)); in getNextToken()
1365 Start = Start.getLocWithOffset(First.LastNewlineOffset); in affectsTokenRange()
1367 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()
1377 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
1511 SourceLocation Start = StartOfFile.getLocWithOffset(Range.getOffset()); in reformat()
1512 SourceLocation End = Start.getLocWithOffset(Range.getLength()); in reformat()
DWhitespaceManager.cpp76 SourceLocation Start = Tok.getStartOfNonWhitespace().getLocWithOffset(Offset); in replaceWhitespaceInToken()
78 true, SourceRange(Start, Start.getLocWithOffset(ReplaceChars)), in replaceWhitespaceInToken()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp306 EndLoc = EndLoc.getLocWithOffset(-1); in rewriteToPropertyDotSyntax()
557 StartGetterSelectorLoc.getLocWithOffset(GetterSelector.getNameForSlot(0).size()); in rewriteToObjCProperty()
564 EndLoc = EndLoc.getLocWithOffset(1); in rewriteToObjCProperty()
568 BeginOfSetterDclLoc = BeginOfSetterDclLoc.getLocWithOffset(-1); in rewriteToObjCProperty()
762 BeginOfEnumDclLoc = BeginOfEnumDclLoc.getLocWithOffset(-1); in rewriteToNSEnumDecl()
797 EndLoc = EndLoc.getLocWithOffset(count-1); in rewriteToNSMacroDecl()
805 StartTypedefLoc = StartTypedefLoc.getLocWithOffset(+1); in rewriteToNSMacroDecl()
2196 SM.getLocForStartOfFile(FID).getLocWithOffset(Entry.Offset); in applyEditsToTemp()
2200 Loc.getLocWithOffset(Entry.RemoveLen)); in applyEditsToTemp()
DTransEmptyStatementsAndDealloc.cpp51 AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size()); in isEmptyARCMTMacroStatement()
/external/clang/lib/CodeGen/
DCodeGenAction.cpp283 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset); in ConvertBackendLocation()
331 B << SourceRange(Loc.getLocWithOffset(Range.first - Column), in InlineAsmDiagHandler2()
332 Loc.getLocWithOffset(Range.second - Column)); in InlineAsmDiagHandler2()
/external/clang/include/clang/Lex/
DToken.h146 : getLocation().getLocWithOffset(getLength()); in getEndLoc()
/external/clang/lib/StaticAnalyzer/Core/
DHTMLDiagnostics.cpp530 SM.getLocForStartOfFile(LPosInfo.first).getLocWithOffset(DisplayPos); in HandlePiece()
613 InstantiationEnd.getLocWithOffset(EndColNo - OldEndColNo); in HighlightRange()

123