Lines Matching refs:Includes

3026 FindCursorIndex(const SmallVectorImpl<IncludeDirective> &Includes,  in FindCursorIndex()  argument
3030 for (int i = 0, e = Includes.size(); i != e; ++i) { in FindCursorIndex()
3031 unsigned Start = Includes[Indices[i]].Offset; in FindCursorIndex()
3032 unsigned End = Start + Includes[Indices[i]].Text.size(); in FindCursorIndex()
3039 while (--i >= 0 && Includes[CursorIndex].Text == Includes[Indices[i]].Text) in FindCursorIndex()
3076 const SmallVectorImpl<IncludeDirective> &Includes, in sortCppIncludes() argument
3081 const unsigned IncludesBeginOffset = Includes.front().Offset; in sortCppIncludes()
3083 Includes.back().Offset + Includes.back().Text.size(); in sortCppIncludes()
3088 llvm::to_vector<16>(llvm::seq<unsigned>(0, Includes.size())); in sortCppIncludes()
3092 const auto LHSFilenameLower = Includes[LHSI].Filename.lower(); in sortCppIncludes()
3093 const auto RHSFilenameLower = Includes[RHSI].Filename.lower(); in sortCppIncludes()
3094 return std::tie(Includes[LHSI].Priority, LHSFilenameLower, in sortCppIncludes()
3095 Includes[LHSI].Filename) < in sortCppIncludes()
3096 std::tie(Includes[RHSI].Priority, RHSFilenameLower, in sortCppIncludes()
3097 Includes[RHSI].Filename); in sortCppIncludes()
3101 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes()
3102 std::tie(Includes[RHSI].Priority, Includes[RHSI].Filename); in sortCppIncludes()
3113 FindCursorIndex(Includes, Indices, *Cursor); in sortCppIncludes()
3119 return Includes[LHSI].Text.trim() == in sortCppIncludes()
3120 Includes[RHSI].Text.trim(); in sortCppIncludes()
3124 int CurrentCategory = Includes.front().Category; in sortCppIncludes()
3132 if (Indices.size() == Includes.size() && is_sorted(Indices) && in sortCppIncludes()
3144 CurrentCategory != Includes[Index].Category) { in sortCppIncludes()
3148 result += Includes[Index].Text; in sortCppIncludes()
3151 CurrentCategory = Includes[Index].Category; in sortCppIncludes()
3167 FileName, Includes.front().Offset, IncludesBlockSize, result)); in sortCppIncludes()
3560 tooling::HeaderIncludes Includes(FileName, Code, Style.IncludeStyle); in fixCppIncludeInsertions() local
3564 Includes.remove(Header.trim("\"<>"), Header.starts_with("<")); in fixCppIncludeInsertions()
3585 Includes.insert(IncludeName.trim("\"<>"), IncludeName.starts_with("<"), in fixCppIncludeInsertions()