/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | AddressRanges.h | 61 Collection Ranges; variable 77 if (It == Ranges.end()) in getRangeThatContains() 88 return Ranges[i]; 92 return Ranges == RHS.Ranges; 98 return Ranges.end(); in find() 101 std::partition_point(Ranges.begin(), Ranges.end(), [=](const T &R) { in find() 105 if (It == Ranges.begin()) in find() 106 return Ranges.end(); in find() 110 return Ranges.end(); in find() 125 return Ranges.end(); in insert() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | UnicodeCharRanges.h | 55 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 D | SourceMgr.h | 220 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()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
H A D | InlineInfo.cpp | 25 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() 187 if (Inline.Ranges.empty()) in decode() 215 if (Child.get().Ranges.empty()) in decode() 236 encodeRanges(Ranges, O, BaseAddr); in encode() 246 const uint64_t ChildBaseAddr = Ranges[0].start(); in encode() 250 for (const auto &ChildRange: Child.Ranges) { in encode() [all …]
|
H A D | ExtractRanges.cpp | 33 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()
|
H A D | DwarfTransformer.cpp | 210 AddressRanges Ranges; in ConvertDWARFRanges() local 213 Ranges.insert({DwarfRange.LowPC, DwarfRange.HighPC}); in ConvertDWARFRanges() 215 return Ranges; in ConvertDWARFRanges() 241 if (Parent.Ranges.contains(InlineRange)) { in parseInlineInfo() 242 II.Ranges.insert(InlineRange); in parseInlineInfo() 270 if (II.Ranges.empty()) in parseInlineInfo() 440 const DWARFAddressRangesVector &Ranges = RangesOrError.get(); in handleDie() local 441 if (Ranges.empty()) in handleDie() 458 AddressRanges AllSubprogramRanges = ConvertDWARFRanges(Ranges); in handleDie() 461 for (const DWARFAddressRange &Range : Ranges) { in handleDie() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DereferenceChecker.cpp | 51 SmallVectorImpl<SourceRange> &Ranges, 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() 218 AddDerefSource(os, Ranges, IV->getBase()->IgnoreParenCasts(), in reportBug() [all …]
|
H A D | MallocSizeofChecker.cpp | 233 SmallVector<SourceRange, 4> Ranges; in checkASTCodeBody() local 234 Ranges.push_back(CallRec.AllocCall->getCallee()->getSourceRange()); in checkASTCodeBody() 235 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); in checkASTCodeBody() 237 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); in checkASTCodeBody() 243 categories::UnixAPI, OS.str(), L, Ranges); in checkASTCodeBody()
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | AffectedRangeManager.h | 28 const ArrayRef<CharSourceRange> Ranges) in AffectedRangeManager() argument 29 : SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {} in AffectedRangeManager() 59 const SmallVector<CharSourceRange, 8> Ranges; variable
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | DiagnosticRenderer.h | 79 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 D | TextDiagnostic.h | 78 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 D | SARIFDiagnostic.h | 38 ArrayRef<CharSourceRange> Ranges, 43 ArrayRef<CharSourceRange> Ranges) override; 46 SmallVectorImpl<CharSourceRange> &Ranges, in emitCodeContext() argument 63 ArrayRef<CharSourceRange> Ranges,
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 101 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic() 102 Ranges.end()); in emitDiagnostic() 126 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() 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 443 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitSingleMacroExpansion() 494 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in checkRangesForMacroArgExpansion() 579 emitSingleMacroExpansion(FullSourceLoc(*I, SM), Level, Ranges); in emitMacroExpansions() [all …]
|
H A D | SARIFDiagnostic.cpp | 41 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() 206 ArrayRef<CharSourceRange> Ranges) { in emitDiagnosticLoc() argument
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
H A D | InlineInfo.h | 64 AddressRanges Ranges; member 71 Ranges.clear(); in clear() 74 bool isValid() const { return !Ranges.empty(); } in isValid() 182 LHS.CallLine == RHS.CallLine && LHS.Ranges == RHS.Ranges &&
|
H A D | ExtractRanges.h | 56 void decodeRanges(AddressRanges &Ranges, DataExtractor &Data, uint64_t BaseAddr, 58 void encodeRanges(const AddressRanges &Ranges, FileWriter &O,
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
H A D | DWARFVerifier.h | 41 std::vector<DWARFAddressRange> Ranges; member 50 DieRangeInfo(std::vector<DWARFAddressRange> Ranges) in DieRangeInfo() 51 : Ranges(std::move(Ranges)) {} in DieRangeInfo() 355 return std::tie(LHS.Ranges, LHS.Die) < std::tie(RHS.Ranges, RHS.Die);
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugSuppression.cpp | 18 using Ranges = llvm::SmallVectorImpl<SourceRange>; typedef 81 static void initialize(const Decl *D, Ranges &ToInit) { in initialize() 118 CacheInitializer(Ranges &R) : Result(R) {} in CacheInitializer() 119 Ranges &Result; 156 Ranges &SuppressionRanges = InsertionResult.first->second; in isSuppressed()
|
H A D | PlistDiagnostics.cpp | 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() 404 ArrayRef<SourceRange> Ranges = P->getRanges(); in ReportMacroExpansions() local 405 EmitRanges(o, Ranges, indent); in ReportMacroExpansions() 437 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportNote() local 438 EmitRanges(o, Ranges, indent); in ReportNote() 468 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportPopUp() local 469 EmitRanges(o, Ranges, indent); in ReportPopUp() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_diag.cpp | 240 static Range *upperBound(MemoryLocation Loc, Range *Ranges, in upperBound() argument 244 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound() 247 Ranges[I].getStart().getMemoryLocation())) in upperBound() 248 Best = &Ranges[I]; in upperBound() 263 Range *Ranges, unsigned NumRanges, in PrintMemorySnippet() argument 271 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet() 272 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet() 296 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet() 300 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet() 320 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/ |
H A D | Annotations.cpp | 58 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()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SourceMgr.cpp | 275 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()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | Attributor.h | 5799 VecTy Ranges; 5820 assert((Ranges.empty() || RangeTy::OffsetLessThan(Ranges.back(), R)) && 5822 Ranges.push_back(R); 5834 bool operator==(const RangeList &OI) const { return Ranges == OI.Ranges; } 5849 Ranges = RHS.Ranges; 5909 return Ranges.size() == 1 && !Ranges.front().offsetOrSizeAreUnknown(); 5931 Ranges.clear(); 5950 : LocalI(LocalI), RemoteI(RemoteI), Content(Content), Ranges(Ranges), 5969 return LocalI == R.LocalI && RemoteI == R.RemoteI && Ranges == R.Ranges && 5982 Ranges.merge(R.Ranges); [all …]
|
/freebsd/contrib/llvm-project/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 230 std::vector<tooling::Range> &Ranges) { in fillRanges() argument 266 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 299 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 434 std::vector<tooling::Range> Ranges; in format() local 435 if (fillRanges(Code.get(), Ranges)) in format() 479 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format() 497 Ranges = tooling::calculateRangesAfterReplacements(Replaces, Ranges); in format() 500 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
H A D | BugReporter.h | 132 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() 636 ArrayRef<SourceRange> Ranges = std::nullopt, 642 ArrayRef<SourceRange> Ranges = std::nullopt,
|