Home
last modified time | relevance | path

Searched refs:Ranges (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/external/clang/unittests/Format/
DCleanupTest.cpp24 const std::vector<tooling::Range> &Ranges, in cleanup() argument
26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup()
46 std::vector<tooling::Range> Ranges; in TEST_F() local
47 Ranges.push_back(tooling::Range(28, 0)); in TEST_F()
48 Ranges.push_back(tooling::Range(91, 6)); in TEST_F()
49 Ranges.push_back(tooling::Range(132, 0)); in TEST_F()
50 std::string Result = cleanup(Code, Ranges); in TEST_F()
66 std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size())); in TEST_F() local
67 std::string Result = cleanup(Code, Ranges); in TEST_F()
79 std::vector<tooling::Range> Ranges(1, tooling::Range(14, 0)); in TEST_F() local
[all …]
/external/llvm/include/llvm/Support/
DUnicodeCharRanges.h59 LLVM_CONSTEXPR UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {} in UnicodeCharSet() argument
61 UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { in UnicodeCharSet() argument
69 return std::binary_search(Ranges.begin(), Ranges.end(), C); in contains()
77 for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end(); in rangesAreValid()
79 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid()
99 const CharRanges Ranges; variable
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DUnicodeCharRanges.h59 constexpr UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {} in UnicodeCharSet() argument
61 UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { in UnicodeCharSet() argument
69 return std::binary_search(Ranges.begin(), Ranges.end(), C); in contains()
77 for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end(); in rangesAreValid()
79 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid()
99 const CharRanges Ranges; variable
/external/v4l2_codec2/vda/
Dranges.h25 class Ranges {
44 Ranges<T> IntersectionWith(const Ranges<T>& other) const;
59 size_t Ranges<T>::Add(T start, T end) { in Add()
109 void Ranges<base::TimeDelta>::DCheckLT(const base::TimeDelta& lhs,
113 void Ranges<T>::DCheckLT(const T& lhs, const T& rhs) const { in DCheckLT()
118 size_t Ranges<T>::size() const { in size()
123 T Ranges<T>::start(size_t i) const { in start()
128 T Ranges<T>::end(size_t i) const { in end()
133 void Ranges<T>::clear() { in clear()
138 Ranges<T> Ranges<T>::IntersectionWith(const Ranges<T>& other) const { in IntersectionWith()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStringRange.java90 …Relation<Integer,Ranges> lengthToArrays = Relation.of(new TreeMap<Integer,Set<Ranges>>(), TreeSet.… in compact()
92 Ranges item = new Ranges(s); in compact()
96 for (Entry<Integer, Set<Ranges>> entry : lengthToArrays.keyValuesSet()) { in compact()
97 LinkedList<Ranges> compacted = compact(entry.getKey(), entry.getValue()); in compact()
98 for (Ranges ranges : compacted) { in compact()
115 private static LinkedList<Ranges> compact(int size, Set<Ranges> inputRanges) { in compact()
116 LinkedList<Ranges> ranges = new LinkedList<Ranges>(inputRanges); in compact()
118 Ranges last = null; in compact()
119 for (Iterator<Ranges> it = ranges.iterator(); it.hasNext();) { in compact()
120 Ranges item = it.next(); in compact()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DStringRange.java97 …Relation<Integer,Ranges> lengthToArrays = Relation.of(new TreeMap<Integer,Set<Ranges>>(), TreeSet.… in compact()
99 Ranges item = new Ranges(s); in compact()
103 for (Entry<Integer, Set<Ranges>> entry : lengthToArrays.keyValuesSet()) { in compact()
104 LinkedList<Ranges> compacted = compact(entry.getKey(), entry.getValue()); in compact()
105 for (Ranges ranges : compacted) { in compact()
122 private static LinkedList<Ranges> compact(int size, Set<Ranges> inputRanges) { in compact()
123 LinkedList<Ranges> ranges = new LinkedList<Ranges>(inputRanges); in compact()
125 Ranges last = null; in compact()
126 for (Iterator<Ranges> it = ranges.iterator(); it.hasNext();) { in compact()
127 Ranges item = it.next(); in compact()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/
DDbgValueHistoryCalculator.cpp50 auto &Ranges = VarInstrRanges[Var]; in startInstrRange() local
51 if (!Ranges.empty() && Ranges.back().second == nullptr && in startInstrRange()
52 Ranges.back().first->isIdenticalTo(MI)) { in startInstrRange()
54 << "\t" << Ranges.back().first << "\t" << MI << "\n"); in startInstrRange()
57 Ranges.push_back(std::make_pair(&MI, nullptr)); in startInstrRange()
62 auto &Ranges = VarInstrRanges[Var]; in endInstrRange() local
64 assert(!Ranges.empty() && Ranges.back().second == nullptr); in endInstrRange()
67 assert(Ranges.back().first->getParent() == MI.getParent()); in endInstrRange()
68 Ranges.back().second = &MI; in endInstrRange()
75 const auto &Ranges = I->second; in getRegisterForVar() local
[all …]
DDebugHandlerBase.cpp199 const auto &Ranges = I.second; in beginFunction() local
200 if (Ranges.empty()) in beginFunction()
205 const DILocalVariable *DIVar = Ranges.front().first->getDebugVariable(); in beginFunction()
208 LabelsBeforeInsn[Ranges.front().first] = Asm->getFunctionBegin(); in beginFunction()
209 if (Ranges.front().first->getDebugExpression()->isFragment()) { in beginFunction()
211 for (auto I = Ranges.begin(); I != Ranges.end(); ++I) { in beginFunction()
213 if (std::all_of(Ranges.begin(), I, in beginFunction()
225 for (const auto &Range : Ranges) { in beginFunction()
/external/cldr/tools/java/org/unicode/cldr/util/
DStringRange.java83 …Relation<Integer, Ranges> lengthToArrays = Relation.of(new TreeMap<Integer, Set<Ranges>>(), TreeSe… in compact()
85 Ranges item = new Ranges(s); in compact()
89 for (Entry<Integer, Set<Ranges>> entry : lengthToArrays.keyValuesSet()) { in compact()
90 LinkedList<Ranges> compacted = compact(entry.getKey(), entry.getValue()); in compact()
91 for (Ranges ranges : compacted) { in compact()
108 private static LinkedList<Ranges> compact(int size, Set<Ranges> inputRanges) { in compact()
109 LinkedList<Ranges> ranges = new LinkedList<>(inputRanges); in compact()
111 Ranges last = null; in compact()
112 for (Iterator<Ranges> it = ranges.iterator(); it.hasNext();) { in compact()
113 Ranges item = it.next(); in compact()
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DDbgValueHistoryCalculator.cpp43 auto &Ranges = VarInstrRanges[Var]; in startInstrRange() local
44 if (!Ranges.empty() && Ranges.back().second == nullptr && in startInstrRange()
45 Ranges.back().first->isIdenticalTo(MI)) { in startInstrRange()
47 << "\t" << Ranges.back().first << "\t" << MI << "\n"); in startInstrRange()
50 Ranges.push_back(std::make_pair(&MI, nullptr)); in startInstrRange()
55 auto &Ranges = VarInstrRanges[Var]; in endInstrRange() local
57 assert(!Ranges.empty() && Ranges.back().second == nullptr); in endInstrRange()
60 assert(Ranges.back().first->getParent() == MI.getParent()); in endInstrRange()
61 Ranges.back().second = &MI; in endInstrRange()
68 const auto &Ranges = I->second; in getRegisterForVar() local
[all …]
DDebugHandlerBase.cpp134 const auto &Ranges = I.second; in beginFunction() local
135 if (Ranges.empty()) in beginFunction()
140 const DILocalVariable *DIVar = Ranges.front().first->getDebugVariable(); in beginFunction()
143 LabelsBeforeInsn[Ranges.front().first] = Asm->getFunctionBegin(); in beginFunction()
144 if (Ranges.front().first->getDebugExpression()->isBitPiece()) { in beginFunction()
146 for (auto I = Ranges.begin(); I != Ranges.end(); ++I) { in beginFunction()
148 if (std::all_of(Ranges.begin(), I, in beginFunction()
159 for (const auto &Range : Ranges) { in beginFunction()
/external/clang/lib/StaticAnalyzer/Checkers/
DDereferenceChecker.cpp45 SmallVectorImpl<SourceRange> &Ranges,
54 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource() argument
68 Ranges.push_back(DR->getSourceRange()); in AddDerefSource()
77 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
85 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
129 SmallVector<SourceRange, 2> Ranges; in reportBug() local
135 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
143 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
151 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), in reportBug()
160 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), in reportBug()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFVerifier.h42 std::vector<DWARFAddressRange> Ranges; member
51 DieRangeInfo(std::vector<DWARFAddressRange> Ranges) in DieRangeInfo()
52 : Ranges(std::move(Ranges)) {} in DieRangeInfo()
67 auto Begin = Ranges.begin(); in findRange()
68 auto End = Ranges.end(); in findRange()
311 return std::tie(LHS.Ranges, LHS.Die) < std::tie(RHS.Ranges, RHS.Die);
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp84 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() argument
94 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, SM, D); in emitDiagnostic()
97 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic()
98 Ranges.end()); in emitDiagnostic()
124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); in emitDiagnostic()
355 ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() argument
360 for (auto I = Ranges.begin(), E = Ranges.end(); I != E; ++I) { in mapDiagnosticRanges()
411 ArrayRef<CharSourceRange> Ranges, in emitCaret() argument
415 mapDiagnosticRanges(Loc, Ranges, SpellingRanges, &SM); in emitCaret()
424 ArrayRef<CharSourceRange> Ranges, in emitSingleMacroExpansion() argument
[all …]
/external/clang/lib/Format/
DAffectedRangeManager.h29 const ArrayRef<CharSourceRange> Ranges) in AffectedRangeManager() argument
30 : SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {} in AffectedRangeManager()
61 const SmallVector<CharSourceRange, 8> Ranges; variable
DTokenAnalyzer.h41 Environment(SourceManager &SM, FileID ID, ArrayRef<CharSourceRange> Ranges) in Environment() argument
42 : ID(ID), CharRanges(Ranges.begin(), Ranges.end()), SM(SM) {} in Environment()
56 ArrayRef<tooling::Range> Ranges);
/external/clang/unittests/Tooling/
DRefactoringTest.cpp463 std::vector<Range> Ranges = calculateChangedRanges(Replaces); in TEST() local
465 EXPECT_EQ(2ul, Ranges.size()); in TEST()
466 EXPECT_TRUE(Ranges[0].getOffset() == 0); in TEST()
467 EXPECT_TRUE(Ranges[0].getLength() == 0); in TEST()
468 EXPECT_TRUE(Ranges[1].getOffset() == 6); in TEST()
469 EXPECT_TRUE(Ranges[1].getLength() == 22); in TEST()
473 std::vector<Range> Ranges = {Range(5, 2), Range(10, 5)}; in TEST() local
476 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
480 std::vector<Range> Ranges = {Range(5, 2), Range(10, 5)}; in TEST() local
483 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges)); in TEST()
[all …]
/external/clang/include/clang/Frontend/
DDiagnosticRenderer.h78 ArrayRef<CharSourceRange> Ranges,
84 ArrayRef<CharSourceRange> Ranges,
89 SmallVectorImpl<CharSourceRange>& Ranges,
118 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints,
122 ArrayRef<CharSourceRange> Ranges,
126 ArrayRef<CharSourceRange> Ranges,
145 StringRef Message, ArrayRef<CharSourceRange> Ranges,
DTextDiagnostic.h81 ArrayRef<CharSourceRange> Ranges,
87 ArrayRef<CharSourceRange> Ranges,
92 SmallVectorImpl<CharSourceRange>& Ranges, in emitCodeContext() argument
95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); in emitCodeContext()
111 SmallVectorImpl<CharSourceRange>& Ranges,
/external/llvm/unittests/Support/
DSourceMgrTest.cpp41 const Twine &Msg, ArrayRef<SMRange> Ranges, in printMessage() argument
44 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts); in printMessage()
132 SMRange Ranges[] = { getRange(0, 3), getRange(4, 3) }; in TEST_F() local
133 printMessage(getLoc(4), SourceMgr::DK_Error, "message", Ranges, None); in TEST_F()
143 SMRange Ranges[] = { getRange(0, 3), getRange(2, 4) }; in TEST_F() local
144 printMessage(getLoc(4), SourceMgr::DK_Error, "message", Ranges, None); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
DDwarfLinker.h149 RangesTy Ranges; member
169 Ranges.clear(); in Clear()
186 void lookForDIEsToKeep(RelocationManager &RelocMgr, RangesTy &Ranges,
199 RangesTy &Ranges,
211 RangesTy &Ranges, OffsetsStringPool &OffsetsStringPool,
227 void keepDIEAndDependencies(RelocationManager &RelocMgr, RangesTy &Ranges,
233 unsigned shouldKeepDIE(RelocationManager &RelocMgr, RangesTy &Ranges,
243 RangesTy &Ranges, const DWARFDie &DIE,
294 const DebugMapObject &DMO, RangesTy &Ranges,
415 RangesTy &Ranges, const DebugMapObject &DMO);
[all …]
/external/llvm/lib/Support/
DSourceMgr.cpp137 ArrayRef<SMRange> Ranges, in GetMessage() argument
170 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { in GetMessage()
171 SMRange R = Ranges[i]; in GetMessage()
217 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
219 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage()
223 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
225 PrintMessage(llvm::errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage()
235 ArrayRef<std::pair<unsigned,unsigned> > Ranges, in SMDiagnostic()
238 Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), in SMDiagnostic()
409 for (unsigned r = 0, e = Ranges.size(); r != e; ++r) { in print()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_diag.cc224 static Range *upperBound(MemoryLocation Loc, Range *Ranges, in upperBound() argument
228 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound()
231 Ranges[I].getStart().getMemoryLocation())) in upperBound()
232 Best = &Ranges[I]; in upperBound()
247 Range *Ranges, unsigned NumRanges, in PrintMemorySnippet() argument
255 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet()
256 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet()
280 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet()
284 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet()
304 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DSourceMgr.cpp170 ArrayRef<SMRange> Ranges, in GetMessage() argument
202 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { in GetMessage()
203 SMRange R = Ranges[i]; in GetMessage()
249 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
251 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage()
255 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
257 PrintMessage(errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage()
267 ArrayRef<std::pair<unsigned,unsigned>> Ranges, in SMDiagnostic() argument
270 Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), in SMDiagnostic()
445 for (unsigned r = 0, e = Ranges.size(); r != e; ++r) { in print()
[all …]
/external/clang/tools/clang-format/
DClangFormat.cpp131 std::vector<tooling::Range> &Ranges) { in fillRanges() argument
163 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges()
196 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges()
250 std::vector<tooling::Range> Ranges; in format() local
251 if (fillRanges(Code.get(), Ranges)) in format()
258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges, in format()
266 Ranges.push_back({R.getOffset(), R.getLength()}); in format()
269 Replacements FormatChanges = reformat(FormatStyle, *ChangedCode, Ranges, in format()

12345678910>>...13