/external/guava/guava-tests/test/com/google/common/collect/ |
RangesTest.java | 37 assertEquals(Ranges.closed(0, 0), Ranges.singleton(0)); 38 assertEquals(Ranges.closed(9, 9), Ranges.singleton(9)); 42 assertEquals(Ranges.closed(0, 0), Ranges.encloseAll(Arrays.asList(0))); 43 assertEquals(Ranges.closed(-3, 5), Ranges.encloseAll(Arrays.asList(5, -3))); 44 assertEquals(Ranges.closed(-3, 5), Ranges.encloseAll(Arrays.asList(1, 2, 2, 2, 5, -3, 0, -1))) [all...] |
RangeTest.java | 42 Range<Integer> range = Ranges.open(4, 8); 57 Ranges.open(4, 3); 62 Ranges.open(3, 3); 69 Range<Integer> range = Ranges.closed(5, 7); 84 Ranges.closed(4, 3); 91 Range<Integer> range = Ranges.openClosed(4, 7); 105 Range<Integer> range = Ranges.closedOpen(5, 8); 119 assertTrue(Ranges.closed(3, 5).isConnected(Ranges.open(5, 6))); 120 assertTrue(Ranges.closed(3, 5).isConnected(Ranges.openClosed(5, 5))) [all...] |
ContiguousSetTest.java | 64 Ranges.closed(1, 3).asSet(integers()), 65 Ranges.closedOpen(1, 4).asSet(integers()), 66 Ranges.openClosed(0, 3).asSet(integers()), 67 Ranges.open(0, 4).asSet(integers()), 68 Ranges.closed(1, 3).asSet(NOT_EQUAL_TO_INTEGERS), 69 Ranges.closedOpen(1, 4).asSet(NOT_EQUAL_TO_INTEGERS), 70 Ranges.openClosed(0, 3).asSet(NOT_EQUAL_TO_INTEGERS), 71 Ranges.open(0, 4).asSet(NOT_EQUAL_TO_INTEGERS), 75 assertEquals(Ranges.closed(Integer.MIN_VALUE, Integer.MAX_VALUE).asSet(integers()), 76 Ranges.<Integer>all().asSet(integers())) [all...] |
RangeNonGwtTest.java | 37 tester.testAllPublicStaticMethods(Ranges.class); 39 tester.testAllPublicInstanceMethods(Ranges.all()); 40 tester.testAllPublicInstanceMethods(Ranges.open(1, 3));
|
GeneralRangeTest.java | 125 Range<Integer> range = Ranges.range(2, lboundType, 4, uboundType); 174 assertEquals(GeneralRange.all(Ordering.natural()), GeneralRange.from(Ranges.all())); 180 GeneralRange.from(Ranges.upTo(3, endpointType))); 183 GeneralRange.from(Ranges.downTo(3, endpointType))); 191 GeneralRange.from(Ranges.range(3, lowerType, 4, upperType)));
|
/external/llvm/unittests/Support/ |
IntegersSubsetTest.cpp | 39 std::vector<Range> Ranges; 40 Ranges.reserve(3); 45 Ranges.push_back(Range(Int(i*10), Int(i*10 + 8))); 47 Subset TheSubset(Ranges); 63 Ranges.clear(); 64 Ranges.push_back(Range(Int(10), Int(10))); 66 Subset TheSingleNumber(Ranges); 70 Ranges.push_back(Range(Int(12), Int(15))); 72 Subset NotASingleNumber(Ranges); 76 // Test when subset contains items that are not a ranges bu [all...] |
/external/llvm/lib/MC/MCParser/ |
MCAsmParser.cpp | 36 bool MCAsmParser::TokError(const Twine &Msg, ArrayRef<SMRange> Ranges) { 37 Error(getLexer().getLoc(), Msg, Ranges);
|
/external/clang/include/clang/Frontend/ |
TextDiagnostic.h | 82 ArrayRef<CharSourceRange> Ranges, 88 ArrayRef<CharSourceRange> Ranges, 93 SmallVectorImpl<CharSourceRange>& Ranges, 96 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM); 114 SmallVectorImpl<CharSourceRange>& Ranges,
|
DiagnosticRenderer.h | 78 ArrayRef<CharSourceRange> Ranges, 84 ArrayRef<CharSourceRange> Ranges, 91 SmallVectorImpl<CharSourceRange>& Ranges, 119 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, 123 ArrayRef<CharSourceRange> Ranges, 139 /// \param Ranges The underlined ranges for this code snippet. 144 StringRef Message, ArrayRef<CharSourceRange> Ranges,
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
DereferenceChecker.cpp | 44 SmallVectorImpl<SourceRange> &Ranges, 53 SmallVectorImpl<SourceRange> &Ranges, 67 Ranges.push_back(DR->getSourceRange()); 76 Ranges.push_back(SourceRange(L, L)); 84 Ranges.push_back(SourceRange(L, L)); 105 SmallVector<SourceRange, 2> Ranges; 128 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), 136 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), 145 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), 154 AddDerefSource(os, Ranges, IV->getBase()->IgnoreParenCasts() [all...] |
MallocSizeofChecker.cpp | 229 SmallVector<SourceRange, 4> Ranges; 230 Ranges.push_back(i->AllocCall->getCallee()->getSourceRange()); 231 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); 233 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); 242 L, Ranges.data(), Ranges.size());
|
/external/compiler-rt/lib/ubsan/ |
ubsan_diag.cc | 144 /// Find the earliest-starting range in Ranges which ends after Loc. 145 static Range *upperBound(MemoryLocation Loc, Range *Ranges, 149 if (Ranges[I].getEnd().getMemoryLocation() > Loc && 152 Ranges[I].getStart().getMemoryLocation())) 153 Best = &Ranges[I]; 160 Range *Ranges, unsigned NumRanges, 168 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); 169 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); 187 Range *InRange = upperBound(Min, Ranges, NumRanges); 191 InRange = upperBound(P, Ranges, NumRanges) [all...] |
/external/llvm/include/llvm/CodeGen/ |
MachineMemOperand.h | 87 const MDNode *Ranges; 110 const MDNode *Ranges = 0); 146 const MDNode *getRanges() const { return Ranges; }
|
LiveInterval.h | 83 /// These ranges are rendered as [start,end). 133 /// LiveInterval - This class represents some number of live ranges for a 139 typedef SmallVector<LiveRange,4> Ranges; 144 Ranges ranges; // the ranges in which this register is live 161 typedef Ranges::iterator iterator; 162 iterator begin() { return ranges.begin(); } 163 iterator end() { return ranges.end(); } 165 typedef Ranges::const_iterator const_iterator [all...] |
LexicalScopes.h | 121 /// extractLexicalScopes - Extract instruction ranges for each lexical scopes 175 SmallVector<InsnRange, 4> &getRanges() { return Ranges; } 203 Ranges.push_back(InsnRange(FirstInsn, LastInsn)); 238 SmallVector<InsnRange, 4> Ranges;
|
/external/clang/include/clang/Format/ |
Format.h | 108 /// \brief Reformats the given \p Ranges in the token stream coming out of 118 /// Returns the \c Replacements necessary to make all \p Ranges comply with 122 std::vector<CharSourceRange> Ranges,
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
RegularContiguousSet.java | 44 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) 56 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), 62 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) 137 ? Ranges.closed(lowerEndpoint, upperEndpoint).asSet(domain) 147 return Ranges.create(range.lowerBound.withLowerBoundType(lowerBoundType, domain),
|
/external/clang/lib/Frontend/ |
DiagnosticRenderer.cpp | 126 ArrayRef<CharSourceRange> Ranges, 136 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, SM, D); 138 // Get the ranges into a local array we can hack on. 139 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), 140 Ranges.end()); 166 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D); 307 // Helper function to fix up source ranges. It takes in an array of ranges, 308 // and outputs an array of ranges where we want to draw the range highlighting 319 ArrayRef<CharSourceRange> Ranges, [all...] |
SerializedDiagnosticPrinter.cpp | 66 ArrayRef<CharSourceRange> Ranges, 72 ArrayRef<CharSourceRange> Ranges, 80 SmallVectorImpl<CharSourceRange>& Ranges, 146 void EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, 609 ArrayRef<clang::CharSourceRange> Ranges, 637 void SDiagsWriter::EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, 644 // Emit Source Ranges. 645 for (ArrayRef<CharSourceRange>::iterator I = Ranges.begin(), E = Ranges.end(); 667 SmallVectorImpl<CharSourceRange> &Ranges, [all...] |
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmParser.h | 109 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>()) = 0; 116 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>()) = 0; 127 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>());
|
/external/clang/tools/libclang/ |
CXLoadedDiagnostic.h | 49 /// \brief Return the number of source ranges for the diagnostic. 52 /// \brief Return the source ranges for the diagnostic. 84 std::vector<CXSourceRange> Ranges;
|
/external/llvm/lib/Support/ |
SourceMgr.cpp | 153 ArrayRef<SMRange> Ranges, 184 // Convert any ranges to column ranges that only intersect the line of the 186 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { 187 SMRange R = Ranges[i]; 200 // Translate from SMLoc ranges to column ranges. 215 const Twine &Msg, ArrayRef<SMRange> Ranges, 217 SMDiagnostic Diagnostic = GetMessage(Loc, Kind, Msg, Ranges, FixIts); 243 ArrayRef<std::pair<unsigned,unsigned> > Ranges, [all...] |
/external/guava/guava/src/com/google/common/collect/ |
RegularContiguousSet.java | 46 return range.intersection(Ranges.upTo(toElement, BoundType.forBoolean(inclusive))) 58 return range.intersection(Ranges.range(fromElement, BoundType.forBoolean(fromInclusive), 64 return range.intersection(Ranges.downTo(fromElement, BoundType.forBoolean(inclusive))) 139 ? Ranges.closed(lowerEndpoint, upperEndpoint).asSet(domain) 149 return Ranges.create(range.lowerBound.withLowerBoundType(lowerBoundType, domain),
|
/external/llvm/include/llvm/Support/ |
SourceMgr.h | 148 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>(), 159 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>(), 213 std::vector<std::pair<unsigned, unsigned> > Ranges; 229 ArrayRef<std::pair<unsigned,unsigned> > Ranges, 241 return Ranges;
|
/external/llvm/lib/Transforms/Scalar/ |
MemCpyOptimizer.cpp | 127 /// two ranges into [0, 3) which is memset'able. 191 /// Ranges - A sorted list of the memset ranges. We use std::list here 193 std::list<MemsetRange> Ranges; 200 const_iterator begin() const { return Ranges.begin(); } 201 const_iterator end() const { return Ranges.end(); } 202 bool empty() const { return Ranges.empty(); } 233 /// existing ranges as appropriate. 235 /// Do a linear search of the ranges to see if this can be joined and/or to 236 /// find the insertion point in the list. We keep the ranges sorted fo [all...] |