Lines Matching refs:Includes
2993 FindCursorIndex(const SmallVectorImpl<IncludeDirective> &Includes, in FindCursorIndex() argument
2997 for (int i = 0, e = Includes.size(); i != e; ++i) { in FindCursorIndex()
2998 unsigned Start = Includes[Indices[i]].Offset; in FindCursorIndex()
2999 unsigned End = Start + Includes[Indices[i]].Text.size(); in FindCursorIndex()
3006 while (--i >= 0 && Includes[CursorIndex].Text == Includes[Indices[i]].Text) in FindCursorIndex()
3043 const SmallVectorImpl<IncludeDirective> &Includes, in sortCppIncludes() argument
3048 const unsigned IncludesBeginOffset = Includes.front().Offset; in sortCppIncludes()
3050 Includes.back().Offset + Includes.back().Text.size(); in sortCppIncludes()
3055 llvm::to_vector<16>(llvm::seq<unsigned>(0, Includes.size())); in sortCppIncludes()
3059 const auto LHSFilenameLower = Includes[LHSI].Filename.lower(); in sortCppIncludes()
3060 const auto RHSFilenameLower = Includes[RHSI].Filename.lower(); in sortCppIncludes()
3061 return std::tie(Includes[LHSI].Priority, LHSFilenameLower, in sortCppIncludes()
3062 Includes[LHSI].Filename) < in sortCppIncludes()
3063 std::tie(Includes[RHSI].Priority, RHSFilenameLower, in sortCppIncludes()
3064 Includes[RHSI].Filename); in sortCppIncludes()
3068 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes()
3069 std::tie(Includes[RHSI].Priority, Includes[RHSI].Filename); in sortCppIncludes()
3080 FindCursorIndex(Includes, Indices, *Cursor); in sortCppIncludes()
3086 return Includes[LHSI].Text.trim() == in sortCppIncludes()
3087 Includes[RHSI].Text.trim(); in sortCppIncludes()
3091 int CurrentCategory = Includes.front().Category; in sortCppIncludes()
3099 if (Indices.size() == Includes.size() && llvm::is_sorted(Indices) && in sortCppIncludes()
3110 CurrentCategory != Includes[Index].Category) { in sortCppIncludes()
3114 result += Includes[Index].Text; in sortCppIncludes()
3117 CurrentCategory = Includes[Index].Category; in sortCppIncludes()
3131 FileName, Includes.front().Offset, IncludesBlockSize, result)); in sortCppIncludes()
3517 tooling::HeaderIncludes Includes(FileName, Code, Style.IncludeStyle); in fixCppIncludeInsertions() local
3521 Includes.remove(Header.trim("\"<>"), Header.starts_with("<")); in fixCppIncludeInsertions()
3543 Includes.insert(IncludeName.trim("\"<>"), IncludeName.starts_with("<"), in fixCppIncludeInsertions()