Home
last modified time | relevance | path

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

1234567

/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DAddressRanges.h57 Collection Ranges; variable
60 void clear() { Ranges.clear(); } in clear()
61 bool empty() const { return Ranges.empty(); } in empty()
62 bool contains(uint64_t Addr) const { return find(Addr) != Ranges.end(); } in contains()
64 return find(Range) != Ranges.end(); in contains()
68 if (It == Ranges.end()) in getRangeThatContains()
74 void reserve(size_t Capacity) { Ranges.reserve(Capacity); } in reserve()
75 size_t size() const { return Ranges.size(); } in size()
77 return Ranges == RHS.Ranges;
80 assert(i < Ranges.size());
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DAddressRanges.cpp18 return Ranges.end(); in insert()
20 auto It = llvm::upper_bound(Ranges, Range); in insert()
22 while (It2 != Ranges.end() && It2->start() <= Range.end()) in insert()
26 It = Ranges.erase(It, It2); in insert()
28 if (It != Ranges.begin() && Range.start() <= std::prev(It)->end()) { in insert()
34 return Ranges.insert(It, Range); in insert()
40 Ranges.begin(), Ranges.end(), in find()
43 if (It == Ranges.begin()) in find()
44 return Ranges.end(); in find()
48 return Ranges.end(); in find()
[all …]
H A DSourceMgr.cpp275 const Twine &Msg, ArrayRef<SMRange> Ranges, in GetMessage() argument
307 for (SMRange R : Ranges) { in GetMessage()
354 ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, in PrintMessage() argument
356 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage()
360 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument
362 PrintMessage(errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage()
381 ArrayRef<std::pair<unsigned, unsigned>> Ranges, in SMDiagnostic() argument
384 Kind(Kind), Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), in SMDiagnostic()
546 for (const std::pair<unsigned, unsigned> &R : Ranges) in print()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DUnicodeCharRanges.h55 constexpr UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) {} in UnicodeCharSet() argument
57 UnicodeCharSet(CharRanges Ranges) : Ranges(Ranges) { in UnicodeCharSet() argument
65 return std::binary_search(Ranges.begin(), Ranges.end(), C); in contains()
73 for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end(); in rangesAreValid()
75 if (I != Ranges.begin() && Prev >= I->Lower) { in rangesAreValid()
95 const CharRanges Ranges; variable
H A DSourceMgr.h220 ArrayRef<SMRange> Ranges = {},
226 ArrayRef<SMRange> Ranges = {},
243 ArrayRef<SMRange> Ranges = {},
289 std::vector<std::pair<unsigned, unsigned>> Ranges; variable
302 ArrayRef<std::pair<unsigned, unsigned>> Ranges,
313 ArrayRef<std::pair<unsigned, unsigned>> getRanges() const { return Ranges; } in getRanges()
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/GSYM/
H A DInlineInfo.cpp25 for (auto Range : II.Ranges) { in operator <<()
41 if (II.Ranges.contains(Addr)) { in getInlineStackHelper()
113 decodeRanges(Inline.Ranges, Data, BaseAddr, Offset); in lookup()
114 if (Inline.Ranges.empty()) in lookup()
118 if (!Inline.Ranges.contains(Addr)) { in lookup()
132 const auto ChildBaseAddr = Inline.Ranges[0].start(); in lookup()
154 SrcLocs.back().Offset = Addr - Inline.Ranges[0].start(); in lookup()
186 decodeRanges(Inline.Ranges, Data, BaseAddr, Offset); in decode()
187 if (Inline.Ranges.empty()) in decode()
209 const auto ChildBaseAddr = Inline.Ranges[0].start(); in decode()
[all …]
H A DExtractRanges.cpp33 void encodeRanges(const AddressRanges &Ranges, FileWriter &O, in encodeRanges() argument
35 O.writeULEB(Ranges.size()); in encodeRanges()
36 if (Ranges.empty()) in encodeRanges()
38 for (auto Range : Ranges) in encodeRanges()
42 void decodeRanges(AddressRanges &Ranges, DataExtractor &Data, uint64_t BaseAddr, in decodeRanges() argument
44 Ranges.clear(); in decodeRanges()
46 Ranges.reserve(NumRanges); in decodeRanges()
48 Ranges.insert(decodeRange(Data, BaseAddr, Offset)); in decodeRanges()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DDereferenceChecker.cpp51 SmallVectorImpl<SourceRange> &Ranges,
62 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource() argument
76 Ranges.push_back(DR->getSourceRange()); in AddDerefSource()
85 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
93 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
180 SmallVector<SourceRange, 2> Ranges; in reportBug() local
186 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
194 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug()
202 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), in reportBug()
210 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), in reportBug()
[all …]
H A DMallocSizeofChecker.cpp234 SmallVector<SourceRange, 4> Ranges; in checkASTCodeBody() local
235 Ranges.push_back(i->AllocCall->getCallee()->getSourceRange()); in checkASTCodeBody()
236 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); in checkASTCodeBody()
238 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); in checkASTCodeBody()
245 categories::UnixAPI, OS.str(), L, Ranges); in checkASTCodeBody()
/openbsd-src/gnu/llvm/clang/lib/Format/
H A DAffectedRangeManager.h28 const ArrayRef<CharSourceRange> Ranges) in AffectedRangeManager() argument
29 : SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {} in AffectedRangeManager()
59 const SmallVector<CharSourceRange, 8> Ranges; variable
/openbsd-src/gnu/llvm/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h79 ArrayRef<CharSourceRange> Ranges,
84 ArrayRef<CharSourceRange> Ranges) = 0;
88 SmallVectorImpl<CharSourceRange> &Ranges,
111 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints);
114 ArrayRef<CharSourceRange> Ranges);
116 ArrayRef<CharSourceRange> Ranges,
133 StringRef Message, ArrayRef<CharSourceRange> Ranges,
H A DTextDiagnostic.h78 ArrayRef<CharSourceRange> Ranges,
83 ArrayRef<CharSourceRange> Ranges) override;
86 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument
88 emitSnippetAndCaret(Loc, Level, Ranges, Hints); in emitCodeContext()
103 SmallVectorImpl<CharSourceRange> &Ranges,
H A DSARIFDiagnostic.h38 ArrayRef<CharSourceRange> Ranges,
43 ArrayRef<CharSourceRange> Ranges) override;
46 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument
63 ArrayRef<CharSourceRange> Ranges,
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp89 ArrayRef<CharSourceRange> Ranges, in emitDiagnostic() argument
98 emitDiagnosticMessage(Loc, PresumedLoc(), Level, Message, Ranges, D); in emitDiagnostic()
101 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic()
102 Ranges.end()); in emitDiagnostic()
126 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic()
356 mapDiagnosticRanges(FullSourceLoc CaretLoc, ArrayRef<CharSourceRange> Ranges, in mapDiagnosticRanges() argument
362 for (const auto &Range : Ranges) { in mapDiagnosticRanges()
425 ArrayRef<CharSourceRange> Ranges, in emitCaret() argument
428 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitCaret()
436 ArrayRef<CharSourceRange> Ranges) { in emitSingleMacroExpansion() argument
[all …]
H A DSARIFDiagnostic.cpp41 StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, in emitDiagnosticMessage() argument
59 Result = addLocationToResult(Result, Loc, PLoc, Ranges, *Diag); in emitDiagnosticMessage()
66 ArrayRef<CharSourceRange> Ranges, const Diagnostic &Diag) { in addLocationToResult() argument
83 for (const CharSourceRange Range : Ranges) { in addLocationToResult()
207 ArrayRef<CharSourceRange> Ranges) { in emitDiagnosticLoc() argument
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/GSYM/
H A DInlineInfo.h64 AddressRanges Ranges; member
71 Ranges.clear(); in clear()
74 bool isValid() const { return !Ranges.empty(); } in isValid()
171 LHS.CallLine == RHS.CallLine && LHS.Ranges == RHS.Ranges &&
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFVerifier.h41 std::vector<DWARFAddressRange> Ranges; member
50 DieRangeInfo(std::vector<DWARFAddressRange> Ranges) in DieRangeInfo()
51 : Ranges(std::move(Ranges)) {} in DieRangeInfo()
345 return std::tie(LHS.Ranges, LHS.Die) < std::tie(RHS.Ranges, RHS.Die);
/openbsd-src/gnu/llvm/compiler-rt/lib/ubsan/
H A Dubsan_diag.cpp232 static Range *upperBound(MemoryLocation Loc, Range *Ranges, in upperBound() argument
236 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound()
239 Ranges[I].getStart().getMemoryLocation())) in upperBound()
240 Best = &Ranges[I]; in upperBound()
255 Range *Ranges, unsigned NumRanges, in PrintMemorySnippet() argument
263 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet()
264 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet()
288 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet()
292 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet()
312 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp58 Ranges[NewRange.Name].push_back(All.size() - 1); in Annotations()
134 auto I = Ranges.find(Name); in rangeWithPayload()
135 require(I != Ranges.end() && I->getValue().size() == 1, in rangeWithPayload()
152 auto Iter = Ranges.find(Name); in rangesWithPayload()
153 if (Iter == Ranges.end()) in rangesWithPayload()
168 for (const llvm::StringRef &Name : Ranges.keys()) { in all_ranges()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp138 void EmitRanges(raw_ostream &o, const ArrayRef<SourceRange> Ranges,
178 const ArrayRef<SourceRange> Ranges, in EmitRanges() argument
181 if (Ranges.empty()) in EmitRanges()
191 for (auto &R : Ranges) in EmitRanges()
320 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportEvent() local
321 EmitRanges(o, Ranges, indent); in ReportEvent()
406 ArrayRef<SourceRange> Ranges = P->getRanges(); in ReportMacroExpansions() local
407 EmitRanges(o, Ranges, indent); in ReportMacroExpansions()
439 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportNote() local
440 EmitRanges(o, Ranges, indent); in ReportNote()
[all …]
/openbsd-src/gnu/llvm/libcxx/docs/Status/
H A DRanges.rst4 libc++ Ranges Status
16 This document contains the status of the Ranges library in libc++. It is used to track
21 If you are interested in contributing to the libc++ Ranges library, please send a message
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DAttributor.h5149 VecTy Ranges;
5151 RangeList(const RangeTy &R) { Ranges.push_back(R); }
5153 Ranges.reserve(Offsets.size());
5157 Ranges.emplace_back(Offsets[i], Size);
5162 iterator begin() { return Ranges.begin(); }
5163 iterator end() { return Ranges.end(); }
5164 const_iterator begin() const { return Ranges.begin(); }
5165 const_iterator end() const { return Ranges.end(); }
5170 assert((Ranges.empty() || RangeTy::OffsetLessThan(Ranges.back(), R)) &&
5172 Ranges.push_back(R);
[all …]
/openbsd-src/gnu/llvm/clang/tools/clang-format/
H A DClangFormat.cpp228 std::vector<tooling::Range> &Ranges) { in fillRanges() argument
264 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges()
297 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges()
432 std::vector<tooling::Range> Ranges; in format() local
433 if (fillRanges(Code.get(), Ranges)) in format()
477 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format()
495 Ranges = tooling::calculateRangesAfterReplacements(Replaces, Ranges); in format()
498 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporter.h132 SmallVector<SourceRange, 4> Ranges; variable
202 ArrayRef<SourceRange> Ranges = {}) {
205 for (const auto &R : Ranges)
223 assert((R.isValid() || Ranges.empty()) && "Invalid range can only be used " in addRange()
225 Ranges.push_back(R); in addRange()
230 return Ranges; in getRanges()
632 ArrayRef<SourceRange> Ranges = std::nullopt,
638 ArrayRef<SourceRange> Ranges = std::nullopt,
/openbsd-src/gnu/llvm/clang/tools/clang-refactor/
H A DTestSupport.cpp37 for (const auto &Range : Group.Ranges) { in dump()
55 for (const TestSelectionRange &Range : Group.Ranges) { in foreachRange()
147 TestRanges.GroupedRanges[GroupIndex].Ranges.size()) { in handleResult()
221 TestRanges.GroupedRanges[Group.index()].Ranges[I.index()].Begin); in handleAllResults()
246 llvm::outs() << TestGroup.Ranges.size() << " '" << TestGroup.Name in handleAllResults()
250 llvm::outs() << TestGroup.Ranges.size() << " '" << TestGroup.Name in handleAllResults()

1234567