Searched refs:getLocWithOffset (Results 1 - 25 of 52) sorted by relevance

123

/external/clang/lib/AST/
H A DSelectorLocationsKind.cpp32 return EndLoc.getLocWithOffset(-Len);
42 return ArgLoc.getLocWithOffset(-Len);
61 return Loc.getLocWithOffset(-1);
H A DCommentSema.cpp427 Loc.getLocWithOffset(1 + CommandName.size()),
451 TextBegin.getLocWithOffset(Text.size()),
708 << FixItHint::CreateInsertion(FD->getLocEnd().getLocWithOffset(1),
/external/clang/lib/Lex/
H A DScratchBuffer.cpp57 return BufferStartLoc.getLocWithOffset(BytesUsed-Len-1);
H A DPPLexerChange.cpp101 CodeCompletionFileLoc.getLocWithOffset(CodeCompletionOffset);
419 Result.setLocation(Result.getLocation().getLocWithOffset(-1));
H A DTokenConcatenation.cpp162 if (PrevSpellLoc.getLocWithOffset(PrevTok.getLength()) == SpellLoc)
H A DPTHLexer.cpp76 Tok.setLocation(FileStartLoc.getLocWithOffset(FileOffset));
297 return FileStartLoc.getLocWithOffset(Offset);
H A DTokenLexer.cpp726 return MacroExpansionStart.getLocWithOffset(relativeOffset);
791 Tok.setLocation(Expansion.getLocWithOffset(RelOffs));
/external/clang/include/clang/AST/
H A DComment.h352 return SourceRange(getLocStart().getLocWithOffset(-1),
403 return SourceRange(L.getLocWithOffset(1),
404 L.getLocWithOffset(1 + TagName.size()));
446 return NameLocBegin.getLocWithOffset(Name.size());
461 LocBegin, LocBegin.getLocWithOffset(1 + TagName.size()),
463 LocBegin.getLocWithOffset(1),
464 LocBegin.getLocWithOffset(1 + TagName.size())) {
519 LocBegin.getLocWithOffset(2),
520 LocBegin.getLocWithOffset(2 + TagName.size()))
663 return getLocStart().getLocWithOffset(
[all...]
H A DCommentLexer.h88 return Loc.getLocWithOffset(Length - 1);
309 return FileLoc.getLocWithOffset(CharNo);
/external/clang/lib/Edit/
H A DCommit.cpp21 Loc = Loc.getLocWithOffset(Offset.getOffset());
28 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length));
33 Loc = Loc.getLocWithOffset(InsertFromRangeOffs.getOffset());
35 return CharSourceRange::getCharRange(Loc, Loc.getLocWithOffset(Length));
253 AfterLoc = loc.getLocWithOffset(tokLen);
H A DEditedSource.cpp309 Loc = Loc.getLocWithOffset(offs.getOffset());
316 Loc.getLocWithOffset(len));
377 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset());
380 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset());
/external/clang/unittests/Lex/
H A DLexerTest.cpp314 macroRange.getEnd().getLocWithOffset(1)));
331 EXPECT_EQ(SourceRange(fileLsqrLoc, fileIdLoc.getLocWithOffset(3)),
336 EXPECT_EQ(SourceRange(fileIdLoc, fileRsqrLoc.getLocWithOffset(1)),
343 EXPECT_EQ(SourceRange(macroPair.first, macroPair.second.getLocWithOffset(1)),
/external/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp408 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
425 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
448 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
467 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
476 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
499 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin),
514 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin),
H A DASTUnit.cpp2560 SourceLocation L = FileLoc.getLocWithOffset(SD.LocOffset);
2567 SourceLocation BL = FileLoc.getLocWithOffset((*I).first);
2568 SourceLocation EL = FileLoc.getLocWithOffset((*I).second);
2580 SourceLocation BL = FileLoc.getLocWithOffset(I->RemoveRange.first);
2581 SourceLocation EL = FileLoc.getLocWithOffset(I->RemoveRange.second);
2686 return SM.getMacroArgExpandedLocation(FileLoc.getLocWithOffset(Offset));
2704 return FileLoc.getLocWithOffset(Offs);
2725 return FileLoc.getLocWithOffset(Offs);
/external/clang/lib/Basic/
H A DSourceManager.cpp916 Loc = Loc.getLocWithOffset(LocInfo.second);
958 Loc = Loc.getLocWithOffset(Offset);
976 return Loc.getLocWithOffset(LocInfo.second);
1063 SourceLocation NextLoc = Loc.getLocWithOffset(1);
1506 IncludeLoc = IncludeLoc.getLocWithOffset(Entry->IncludeOffset);
1757 return FileLoc.getLocWithOffset(Size);
1765 return FileLoc.getLocWithOffset(FilePos);
1772 return FileLoc.getLocWithOffset(FilePos + i);
1869 Info.getSpellingLoc().getLocWithOffset(SpellRelativeOffs),
1878 ExpansionLoc = ExpansionLoc.getLocWithOffset(advanc
[all...]
/external/clang/tools/clang-format/
H A DClangFormat.cpp167 Sources.getLocForStartOfFile(ID).getLocWithOffset(Offsets[i]);
176 End = Start.getLocWithOffset(Lengths[i]);
/external/clang/lib/CodeGen/
H A DCodeGenAction.cpp280 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset);
328 B << SourceRange(Loc.getLocWithOffset(Range.first - Column),
329 Loc.getLocWithOffset(Range.second - Column));
/external/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp757 LocStart.getLocWithOffset(BufPtr-MainBufStart);
787 startLoc.getLocWithOffset(semiBuf-startBuf+1);
1016 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1021 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1545 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
1622 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1);
1635 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1);
1667 SourceLocation rparenLoc = startLoc.getLocWithOffset(endBuf-startBuf);
1759 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
1782 SourceLocation onePastSemiLoc = startLoc.getLocWithOffset(semiBu
[all...]
H A DRewriteModernObjC.cpp841 LocStart.getLocWithOffset(BufPtr-MainBufStart);
952 startGetterSetterLoc = startLoc.getLocWithOffset(semiBuf-startBuf+1);
1198 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1203 SourceLocation OptionalLoc = LocStart.getLocWithOffset(p-startBuf);
1784 SourceLocation lparenLoc = startLoc.getLocWithOffset(rparenBuf-startBuf);
1861 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(1);
1874 SourceLocation endBodyLoc = OrigEnd.getLocWithOffset(semiBuf-stmtBuf+1);
1923 RParenExprLoc = startLoc.getLocWithOffset(RParenExprLocBuf-startBuf);
2094 SourceLocation semiLoc = startLoc.getLocWithOffset(semiBuf-startBuf);
2219 SourceLocation LessLoc = Loc.getLocWithOffset(startRe
[all...]
/external/clang/lib/Format/
H A DWhitespaceManager.cpp74 SourceLocation Start = Tok.getStartOfNonWhitespace().getLocWithOffset(Offset);
76 true, SourceRange(Start, Start.getLocWithOffset(ReplaceChars)),
H A DFormat.cpp1503 FormatTok->Tok.getLocation().getLocWithOffset(1);
1515 FormatTok->Tok.getLocation().getLocWithOffset(-TrailingWhitespace);
1579 WhitespaceStart, WhitespaceStart.getLocWithOffset(WhitespaceLength));
1853 Start = Start.getLocWithOffset(First.LastNewlineOffset);
1856 End = End.getLocWithOffset(Last.TokenText.size() - 1);
1866 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset));
1993 SourceLocation Start = StartOfFile.getLocWithOffset(Ranges[i].getOffset());
1994 SourceLocation End = Start.getLocWithOffset(Ranges[i].getLength());
/external/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp51 AfterMacroLoc = I->getLocWithOffset(getARCMTMacroName().size());
H A DObjCMT.cpp445 StartGetterSelectorLoc.getLocWithOffset(GetterSelector.getNameForSlot(0).size());
452 EndLoc = EndLoc.getLocWithOffset(1);
456 BeginOfSetterDclLoc = BeginOfSetterDclLoc.getLocWithOffset(-1);
636 BeginOfEnumDclLoc = BeginOfEnumDclLoc.getLocWithOffset(-1);
2039 SM.getLocForStartOfFile(FID).getLocWithOffset(Entry.Offset);
2043 Loc.getLocWithOffset(Entry.RemoveLen));
/external/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp530 SM.getLocForStartOfFile(LPosInfo.first).getLocWithOffset(DisplayPos);
613 InstantiationEnd.getLocWithOffset(EndColNo - OldEndColNo);
/external/clang/include/clang/Basic/
H A DSourceLocation.h133 SourceLocation getLocWithOffset(int Offset) const { function

Completed in 1688 milliseconds

123