Lines Matching refs:Includes
2261 FindCursorIndex(const SmallVectorImpl<IncludeDirective> &Includes, in FindCursorIndex() argument
2265 for (int i = 0, e = Includes.size(); i != e; ++i) { in FindCursorIndex()
2266 unsigned Start = Includes[Indices[i]].Offset; in FindCursorIndex()
2267 unsigned End = Start + Includes[Indices[i]].Text.size(); in FindCursorIndex()
2274 while (--i >= 0 && Includes[CursorIndex].Text == Includes[Indices[i]].Text) in FindCursorIndex()
2311 const SmallVectorImpl<IncludeDirective> &Includes, in sortCppIncludes() argument
2316 unsigned IncludesBeginOffset = Includes.front().Offset; in sortCppIncludes()
2318 Includes.back().Offset + Includes.back().Text.size(); in sortCppIncludes()
2323 for (unsigned i = 0, e = Includes.size(); i != e; ++i) { in sortCppIncludes()
2329 const auto LHSFilenameLower = Includes[LHSI].Filename.lower(); in sortCppIncludes()
2330 const auto RHSFilenameLower = Includes[RHSI].Filename.lower(); in sortCppIncludes()
2331 return std::tie(Includes[LHSI].Priority, LHSFilenameLower, in sortCppIncludes()
2332 Includes[LHSI].Filename) < in sortCppIncludes()
2333 std::tie(Includes[RHSI].Priority, RHSFilenameLower, in sortCppIncludes()
2334 Includes[RHSI].Filename); in sortCppIncludes()
2338 return std::tie(Includes[LHSI].Priority, Includes[LHSI].Filename) < in sortCppIncludes()
2339 std::tie(Includes[RHSI].Priority, Includes[RHSI].Filename); in sortCppIncludes()
2350 FindCursorIndex(Includes, Indices, *Cursor); in sortCppIncludes()
2355 return Includes[LHSI].Text.trim() == in sortCppIncludes()
2356 Includes[RHSI].Text.trim(); in sortCppIncludes()
2360 int CurrentCategory = Includes.front().Category; in sortCppIncludes()
2368 if (Indices.size() == Includes.size() && llvm::is_sorted(Indices) && in sortCppIncludes()
2378 CurrentCategory != Includes[Index].Category) in sortCppIncludes()
2381 result += Includes[Index].Text; in sortCppIncludes()
2384 CurrentCategory = Includes[Index].Category; in sortCppIncludes()
2394 FileName, Includes.front().Offset, IncludesBlockSize, result)); in sortCppIncludes()
2758 tooling::HeaderIncludes Includes(FileName, Code, Style.IncludeStyle); in fixCppIncludeInsertions() local
2762 Includes.remove(Header.trim("\"<>"), Header.startswith("<")); in fixCppIncludeInsertions()
2784 Includes.insert(IncludeName.trim("\"<>"), IncludeName.startswith("<")); in fixCppIncludeInsertions()