Home
last modified time | relevance | path

Searched refs:BeginOffs (Results 1 – 5 of 5) sorted by relevance

/external/clang/lib/Edit/
DEditedSource.cpp92 FileOffset BeginOffs = InsertFromRangeOffs; in commitInsertFromRange() local
93 FileOffset EndOffs = BeginOffs.getWithOffset(Len); in commitInsertFromRange()
94 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs); in commitInsertFromRange()
103 if (BeginOffs < E) { in commitInsertFromRange()
104 if (BeginOffs >= B) { in commitInsertFromRange()
105 BeginOffs = E; in commitInsertFromRange()
117 if (BeginOffs < B) { in commitInsertFromRange()
119 StringRef text = getSourceText(BeginOffs, B, Invalid); in commitInsertFromRange()
125 BeginOffs = E; in commitInsertFromRange()
128 if (BeginOffs < EndOffs) { in commitInsertFromRange()
[all …]
/external/clang/include/clang/Edit/
DEditedSource.h76 void commitRemove(SourceLocation OrigLoc, FileOffset BeginOffs, unsigned Len);
78 StringRef getSourceText(FileOffset BeginOffs, FileOffset EndOffs,
/external/clang/include/clang/Basic/
DSourceManager.h979 unsigned BeginOffs = Start.getOffset();
980 unsigned EndOffs = BeginOffs + Length;
981 if (LocOffs >= BeginOffs && LocOffs < EndOffs) {
983 *RelativeOffset = LocOffs - BeginOffs;
/external/clang/lib/Lex/
DLexer.cpp810 unsigned BeginOffs; in makeRangeFromFileLocs() local
811 llvm::tie(FID, BeginOffs) = SM.getDecomposedLoc(Begin); in makeRangeFromFileLocs()
817 BeginOffs > EndOffs) in makeRangeFromFileLocs()
868 unsigned BeginOffs; in makeFileCharRange() local
869 llvm::tie(FID, BeginOffs) = SM.getDecomposedLoc(Begin); in makeFileCharRange()
875 BeginOffs > EndOffs) in makeFileCharRange()
883 Range.setBegin(SpellLoc.getLocWithOffset(BeginOffs)); in makeFileCharRange()
/external/clang/lib/Basic/
DSourceManager.cpp1679 unsigned BeginOffs; in computeMacroArgsCache() local
1680 if (!isInFileID(SpellLoc, FID, &BeginOffs)) in computeMacroArgsCache()
1683 unsigned EndOffs = BeginOffs + getFileIDSize(FileID::get(ID)); in computeMacroArgsCache()
1705 MacroArgsCache[BeginOffs] = SourceLocation::getMacroLoc(Entry.getOffset()); in computeMacroArgsCache()