Lines Matching defs:Cursor
3024 // If `Cursor` is not on any #include, `Index` will be UINT_MAX.
3027 const SmallVectorImpl<unsigned> &Indices, unsigned Cursor) {
3033 if (!(Cursor >= Start && Cursor < End))
3036 OffsetToEOL = End - Cursor;
3072 // first #include in the duplicate #includes remains. If the `Cursor` is
3079 unsigned *Cursor) {
3111 if (Cursor) {
3113 FindCursorIndex(Includes, Indices, *Cursor);
3137 const auto OldCursor = Cursor ? *Cursor : 0;
3149 if (Cursor && CursorIndex == Index)
3150 *Cursor = IncludesBeginOffset + result.size() - CursorToEOLOffset;
3154 if (Cursor && *Cursor >= IncludesEndOffset)
3155 *Cursor += result.size() - IncludesBlockSize;
3161 if (Cursor)
3162 *Cursor = OldCursor;
3180 unsigned *Cursor) {
3267 Replaces, Cursor);
3284 Cursor);
3456 StringRef FileName, unsigned *Cursor) {
3470 sortCppIncludes(Style, Code, Ranges, FileName, Replaces, Cursor);