Lines Matching refs:Includes
2614 FindCursorIndex(const SmallVectorImpl<IncludeDirective> &Includes, in FindCursorIndex() argument
2618 for (int i = 0, e = Includes.size(); i != e; ++i) { in FindCursorIndex()
2619 unsigned Start = Includes[Indices[i]].Offset; in FindCursorIndex()
2620 unsigned End = Start + Includes[Indices[i]].Text.size(); in FindCursorIndex()
2627 while (--i >= 0 && Includes[CursorIndex].Text == Includes[Indices[i]].Text) in FindCursorIndex()
2664 const SmallVectorImpl<IncludeDirective> &Includes, in sortCppIncludes() argument
2669 const unsigned IncludesBeginOffset = Includes.front().Offset; in sortCppIncludes()
2671 Includes.back().Offset + Includes.back().Text.size(); in sortCppIncludes()
2676 llvm::to_vector<16>(llvm::seq<unsigned>(0, Includes.size())); in sortCppIncludes()
2680 const auto LHSFilenameLower = Includes[LHSI].Filename.lower(); in sortCppIncludes()
2681 const auto RHSFilenameLower = Includes[RHSI].Filename.lower(); in sortCppIncludes()
2682 return std::tie(Includes[LHSI].Priority, LHSFilenameLower, in sortCppIncludes()
2683 Includes[LHSI].Filename) < in sortCppIncludes()
2684 std::tie(Includes[RHSI].Priority, RHSFilenameLower, in sortCppIncludes()
2685 Includes[RHSI].Filename); in sortCppIncludes()
2689 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes()
2690 std::tie(Includes[RHSI].Priority, Includes[RHSI].Filename); in sortCppIncludes()
2701 FindCursorIndex(Includes, Indices, *Cursor); in sortCppIncludes()
2707 return Includes[LHSI].Text.trim() == in sortCppIncludes()
2708 Includes[RHSI].Text.trim(); in sortCppIncludes()
2712 int CurrentCategory = Includes.front().Category; in sortCppIncludes()
2720 if (Indices.size() == Includes.size() && llvm::is_sorted(Indices) && in sortCppIncludes()
2731 CurrentCategory != Includes[Index].Category) { in sortCppIncludes()
2735 result += Includes[Index].Text; in sortCppIncludes()
2738 CurrentCategory = Includes[Index].Category; in sortCppIncludes()
2752 FileName, Includes.front().Offset, IncludesBlockSize, result)); in sortCppIncludes()
3149 tooling::HeaderIncludes Includes(FileName, Code, Style.IncludeStyle); in fixCppIncludeInsertions() local
3153 Includes.remove(Header.trim("\"<>"), Header.startswith("<")); in fixCppIncludeInsertions()
3175 Includes.insert(IncludeName.trim("\"<>"), IncludeName.startswith("<")); in fixCppIncludeInsertions()