Home | History | Annotate | Download | only in Basic

Lines Matching refs:Offset

188 /// is a #line at the specified FID/Offset location which changes the presumed
190 void LineTableInfo::AddLineNote(int FID, unsigned Offset,
194 assert((Entries.empty() || Entries.back().FileOffset < Offset) &&
212 Entries.push_back(LineEntry::get(Offset, LineNo, FilenameID, Kind,
221 void LineTableInfo::AddLineNote(int FID, unsigned Offset,
229 assert((Entries.empty() || Entries.back().FileOffset < Offset) &&
236 IncludeOffset = Offset-1;
248 Entries.push_back(LineEntry::get(Offset, LineNo, FilenameID, FileKind,
254 /// it. If there is no line entry before Offset in FID, return null.
256 unsigned Offset) {
262 if (Entries.back().FileOffset <= Offset)
265 // Do a binary search to find the maximal element that is still before Offset.
267 std::upper_bound(Entries.begin(), Entries.end(), Offset);
288 /// AddLineNote - Add a line note to the line table for the FileID and offset
637 /// \brief Return the FileID for a SourceLocation with a low offset.
667 // FileID whose offset is known to be larger than SLocOffset.
686 // larger than the offset we are looking for.
689 // We know that the offset corresponding to the FileID is is less than
702 // If the offset of the midpoint is too large, chop the high side of the
728 /// \brief Return the FileID for a SourceLocation with a high offset.
765 // table: GreaterIndex is the one where the offset is greater, which is
797 // Note: If Loc indicates an offset into a token that came from a macro
799 // this offset when going to the expansion location. The expansion
800 // location is the macro invocation, which the offset has nothing to do
801 // with. This is unlike when we get the spelling loc, because the offset
835 unsigned Offset;
841 Offset = Loc.getOffset()-E->getOffset();
844 return std::make_pair(FID, Offset);
849 unsigned Offset) const {
855 Loc = Loc.getLocWithOffset(Offset);
859 Offset = Loc.getOffset()-E->getOffset();
862 return std::make_pair(FID, Offset);
1531 /// offset 100 with length 10, this is how the map will be formed:
1621 unsigned Offset;
1622 llvm::tie(FID, Offset) = getDecomposedLoc(Loc);
1631 MacroArgsMap::iterator I = MacroArgsCache->upper_bound(Offset);
1637 return MacroArgExpandedLoc.getLocWithOffset(Offset - MacroArgBeginOffs);
1691 // We use a map from FileID to Offset to store the chain. Easier than writing