Searched refs:Ranges (Results 1 - 25 of 61) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/collect/
H A DRangesTest.java37 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
[all...]
H A DRangeTest.java42 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
[all...]
H A DContiguousSetTest.java64 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
[all...]
H A DRangeNonGwtTest.java37 tester.testAllPublicStaticMethods(Ranges.class);
39 tester.testAllPublicInstanceMethods(Ranges.all());
40 tester.testAllPublicInstanceMethods(Ranges.open(1, 3));
H A DGeneralRangeTest.java125 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/
H A DIntegersSubsetTest.cpp41 std::vector<Range> Ranges; local
42 Ranges.reserve(3);
47 Ranges.push_back(Range(Int(i*10), Int(i*10 + 8)));
49 Subset TheSubset(Ranges);
65 Ranges.clear();
66 Ranges.push_back(Range(Int(10), Int(10)));
68 Subset TheSingleNumber(Ranges);
72 Ranges.push_back(Range(Int(12), Int(15)));
74 Subset NotASingleNumber(Ranges);
81 Ranges
197 Mapping::RangesCollection Ranges; local
[all...]
/external/llvm/lib/MC/MCParser/
H A DMCAsmParser.cpp36 bool MCAsmParser::TokError(const Twine &Msg, ArrayRef<SMRange> Ranges) { argument
37 Error(getLexer().getLoc(), Msg, Ranges);
/external/clang/include/clang/Frontend/
H A DTextDiagnostic.h84 ArrayRef<CharSourceRange> Ranges,
90 ArrayRef<CharSourceRange> Ranges,
95 SmallVectorImpl<CharSourceRange>& Ranges,
98 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM);
108 SmallVectorImpl<CharSourceRange>& Ranges,
93 emitCodeContext(SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl<CharSourceRange>& Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument
H A DDiagnosticRenderer.h76 ArrayRef<CharSourceRange> Ranges,
82 ArrayRef<CharSourceRange> Ranges,
89 SmallVectorImpl<CharSourceRange>& Ranges,
108 SmallVectorImpl<CharSourceRange>& Ranges,
124 /// \param Ranges The underlined ranges for this code snippet.
129 StringRef Message, ArrayRef<CharSourceRange> Ranges,
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDereferenceChecker.cpp43 SmallVectorImpl<SourceRange> &Ranges,
52 SmallVectorImpl<SourceRange> &Ranges,
66 Ranges.push_back(DR->getSourceRange());
75 Ranges.push_back(SourceRange(L, L));
94 SmallVector<SourceRange, 2> Ranges; local
118 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(),
127 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(),
137 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(),
152 Ranges.push_back(IV->getSourceRange());
167 I = Ranges
51 AddDerefSource(raw_ostream &os, SmallVectorImpl<SourceRange> &Ranges, const Expr *Ex, const ProgramState *state, const LocationContext *LCtx, bool loadedFrom) argument
[all...]
H A DMallocSizeofChecker.cpp228 llvm::SmallVector<SourceRange, 4> Ranges; local
229 Ranges.push_back(i->AllocCall->getCallee()->getSourceRange());
230 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange());
232 Ranges.push_back(TSI->getTypeLoc().getSourceRange());
241 L, Ranges.data(), Ranges.size());
/external/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h87 const MDNode *Ranges; member in class:llvm::MachineMemOperand
110 const MDNode *Ranges = 0);
146 const MDNode *getRanges() const { return Ranges; }
H A DLiveInterval.h141 typedef SmallVector<LiveRange,4> Ranges;
146 Ranges ranges; // the ranges in which this register is live
163 typedef Ranges::iterator iterator;
167 typedef Ranges::const_iterator const_iterator;
473 Ranges::iterator addRangeFrom(LiveRange LR, Ranges::iterator From);
474 void extendIntervalEndTo(Ranges::iterator I, SlotIndex NewEnd);
475 Ranges::iterator extendIntervalStartTo(Ranges::iterator I, SlotIndex NewStr);
H A DLexicalScopes.h178 SmallVector<InsnRange, 4> &getRanges() { return Ranges; }
206 Ranges.push_back(InsnRange(FirstInsn, LastInsn));
241 SmallVector<InsnRange, 4> Ranges; member in class:llvm::LexicalScope
/external/llvm/include/llvm/MC/MCParser/
H A DMCAsmParser.h81 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>()) = 0;
89 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>()) = 0;
100 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>());
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DRegularContiguousSet.java44 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/llvm/include/llvm/Support/
H A DSourceMgr.h141 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>(),
151 ArrayRef<SMRange> Ranges = ArrayRef<SMRange>()) const;
172 std::vector<std::pair<unsigned, unsigned> > Ranges;
188 ArrayRef<std::pair<unsigned,unsigned> > Ranges);
199 return Ranges;
/external/llvm/lib/Support/
H A DSourceMgr.cpp149 ArrayRef<SMRange> Ranges) const {
181 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) {
182 SMRange R = Ranges[i];
209 const Twine &Msg, ArrayRef<SMRange> Ranges,
211 SMDiagnostic Diagnostic = GetMessage(Loc, Kind, Msg, Ranges);
238 ArrayRef<std::pair<unsigned,unsigned> > Ranges)
240 Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()) {
304 for (unsigned r = 0, e = Ranges.size(); r != e; ++r) {
305 std::pair<unsigned, unsigned> R = Ranges[
208 PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, bool ShowColors) const argument
234 SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN, int Line, int Col, SourceMgr::DiagKind Kind, const std::string &Msg, const std::string &LineStr, ArrayRef<std::pair<unsigned,unsigned> > Ranges) argument
[all...]
/external/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp120 ArrayRef<CharSourceRange> Ranges,
138 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, SM, D);
143 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(),
144 Ranges.end());
230 /// \param Ranges The underlined ranges for this code snippet.
237 SmallVectorImpl<CharSourceRange>& Ranges,
250 emitCodeContext(Loc, Level, Ranges, Hints, SM);
262 emitMacroExpansionsAndCarets(OneLevelUp, Level, Ranges, Hints, SM, MacroDepth,
284 for (SmallVectorImpl<CharSourceRange>::iterator I = Ranges.begin(),
285 E = Ranges
117 emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> FixItHints, const SourceManager *SM, DiagOrStoredDiag D) argument
234 emitMacroExpansionsAndCarets( SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl<CharSourceRange>& Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM, unsigned &MacroDepth, unsigned OnMacroInst) argument
[all...]
H A DSerializedDiagnosticPrinter.cpp65 ArrayRef<CharSourceRange> Ranges,
71 ArrayRef<CharSourceRange> Ranges,
79 SmallVectorImpl<CharSourceRange>& Ranges,
140 void EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges,
562 ArrayRef<clang::CharSourceRange> Ranges,
590 void SDiagsWriter::EmitCodeContext(SmallVectorImpl<CharSourceRange> &Ranges, argument
593 // Emit Source Ranges.
594 for (ArrayRef<CharSourceRange>::iterator I = Ranges.begin(), E = Ranges.end();
616 SmallVectorImpl<CharSourceRange> &Ranges,
69 emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, const SourceManager &SM) argument
558 emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, const SourceManager *SM, DiagOrStoredDiag D) argument
614 emitCodeContext(SourceLocation Loc, DiagnosticsEngine::Level Level, SmallVectorImpl<CharSourceRange> &Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument
[all...]
/external/guava/guava/src/com/google/common/collect/
H A DRegularContiguousSet.java46 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),
H A DRanges.java71 public final class Ranges { class
72 private Ranges() {} method in class:Ranges
/external/clang/tools/libclang/
H A DCXLoadedDiagnostic.h84 std::vector<CXSourceRange> Ranges; member in class:clang::CXLoadedDiagnostic
/external/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp191 /// Ranges - A sorted list of the memset ranges. We use std::list here
193 std::list<MemsetRange> Ranges; member in class:__anon9115::MemsetRanges
200 const_iterator begin() const { return Ranges.begin(); }
201 const_iterator end() const { return Ranges.end(); }
202 bool empty() const { return Ranges.empty(); }
242 range_iterator I = Ranges.begin(), E = Ranges.end();
251 MemsetRange &R = *Ranges.insert(I, MemsetRange());
291 Ranges.erase(NextI);
372 MemsetRanges Ranges(*T
[all...]
/external/llvm/include/llvm/Analysis/
H A DValueTracking.h41 void computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero);

Completed in 369 milliseconds

123