Lines Matching refs:Includes
2815 FindCursorIndex(const SmallVectorImpl<IncludeDirective> &Includes, in FindCursorIndex() argument
2819 for (int i = 0, e = Includes.size(); i != e; ++i) { in FindCursorIndex()
2820 unsigned Start = Includes[Indices[i]].Offset; in FindCursorIndex()
2821 unsigned End = Start + Includes[Indices[i]].Text.size(); in FindCursorIndex()
2828 while (--i >= 0 && Includes[CursorIndex].Text == Includes[Indices[i]].Text) in FindCursorIndex()
2865 const SmallVectorImpl<IncludeDirective> &Includes, in sortCppIncludes() argument
2870 const unsigned IncludesBeginOffset = Includes.front().Offset; in sortCppIncludes()
2872 Includes.back().Offset + Includes.back().Text.size(); in sortCppIncludes()
2877 llvm::to_vector<16>(llvm::seq<unsigned>(0, Includes.size())); in sortCppIncludes()
2881 const auto LHSFilenameLower = Includes[LHSI].Filename.lower(); in sortCppIncludes()
2882 const auto RHSFilenameLower = Includes[RHSI].Filename.lower(); in sortCppIncludes()
2883 return std::tie(Includes[LHSI].Priority, LHSFilenameLower, in sortCppIncludes()
2884 Includes[LHSI].Filename) < in sortCppIncludes()
2885 std::tie(Includes[RHSI].Priority, RHSFilenameLower, in sortCppIncludes()
2886 Includes[RHSI].Filename); in sortCppIncludes()
2890 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes()
2891 std::tie(Includes[RHSI].Priority, Includes[RHSI].Filename); in sortCppIncludes()
2902 FindCursorIndex(Includes, Indices, *Cursor); in sortCppIncludes()
2908 return Includes[LHSI].Text.trim() == in sortCppIncludes()
2909 Includes[RHSI].Text.trim(); in sortCppIncludes()
2913 int CurrentCategory = Includes.front().Category; in sortCppIncludes()
2921 if (Indices.size() == Includes.size() && llvm::is_sorted(Indices) && in sortCppIncludes()
2932 CurrentCategory != Includes[Index].Category) { in sortCppIncludes()
2936 result += Includes[Index].Text; in sortCppIncludes()
2939 CurrentCategory = Includes[Index].Category; in sortCppIncludes()
2953 FileName, Includes.front().Offset, IncludesBlockSize, result)); in sortCppIncludes()
3342 tooling::HeaderIncludes Includes(FileName, Code, Style.IncludeStyle); in fixCppIncludeInsertions() local
3346 Includes.remove(Header.trim("\"<>"), Header.startswith("<")); in fixCppIncludeInsertions()
3368 Includes.insert(IncludeName.trim("\"<>"), IncludeName.startswith("<"), in fixCppIncludeInsertions()