| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/ |
| H A D | Range.cpp | 30 It = Ranges.erase(It, It2); in insert() 35 Ranges.insert(It, Range); in insert() 40 Ranges.begin(), Ranges.end(), in contains() 49 Ranges.begin(), Ranges.end(), in contains() 51 if (It == Ranges.begin()) in contains() 59 Ranges.begin(), Ranges.end(), in getRangeThatContains() 96 O.writeULEB(Ranges.size()); in encode() 97 if (Ranges.empty()) in encode() 99 for (auto Range : Ranges) in encode() 109 Ranges.resize(NumRanges); in decode() [all …]
|
| H A D | InlineInfo.cpp | 25 for (auto Range : II.Ranges) { in operator <<() 41 if (II.Ranges.contains(Addr)) { in getInlineStackHelper() 112 Inline.Ranges.decode(Data, BaseAddr, Offset); in lookup() 113 if (Inline.Ranges.empty()) in lookup() 117 if (!Inline.Ranges.contains(Addr)) { in lookup() 185 Inline.Ranges.decode(Data, BaseAddr, Offset); in decode() 186 if (Inline.Ranges.empty()) in decode() 214 if (Child.get().Ranges.empty()) in decode() 235 Ranges.encode(O, BaseAddr); in encode() 249 for (const auto &ChildRange: Child.Ranges) { in encode() [all …]
|
| /freebsd-13.1/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 | 190 ArrayRef<SMRange> Ranges = {}, 196 ArrayRef<SMRange> Ranges = {}, 213 ArrayRef<SMRange> Ranges = {}, 259 std::vector<std::pair<unsigned, unsigned>> Ranges; variable 272 ArrayRef<std::pair<unsigned, unsigned>> Ranges, 283 ArrayRef<std::pair<unsigned, unsigned>> getRanges() const { return Ranges; } in getRanges()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | Range.h | 87 Collection Ranges; variable 89 void clear() { Ranges.clear(); } in clear() 90 bool empty() const { return Ranges.empty(); } in empty() 95 size_t size() const { return Ranges.size(); } in size() 97 return Ranges == RHS.Ranges; 100 assert(i < Ranges.size()); 101 return Ranges[i]; 103 Collection::const_iterator begin() const { return Ranges.begin(); } in begin() 104 Collection::const_iterator end() const { return Ranges.end(); } in end()
|
| H A D | InlineInfo.h | 66 AddressRanges Ranges; member 73 Ranges.clear(); in clear() 76 bool isValid() const { return !Ranges.empty(); } in isValid() 173 LHS.CallLine == RHS.CallLine && LHS.Ranges == RHS.Ranges &&
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/ |
| H A D | DWARFVerifier.h | 40 std::vector<DWARFAddressRange> Ranges; member 49 DieRangeInfo(std::vector<DWARFAddressRange> Ranges) in DieRangeInfo() 50 : Ranges(std::move(Ranges)) {} in DieRangeInfo() 67 auto Begin = Ranges.begin(); in findRange() 68 auto End = Ranges.end(); in findRange() 331 return std::tie(LHS.Ranges, LHS.Die) < std::tie(RHS.Ranges, RHS.Die);
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DereferenceChecker.cpp | 48 SmallVectorImpl<SourceRange> &Ranges, 71 Ranges.push_back(DR->getSourceRange()); in AddDerefSource() 80 Ranges.push_back(SourceRange(L, L)); in AddDerefSource() 88 Ranges.push_back(SourceRange(L, L)); in AddDerefSource() 149 SmallVector<SourceRange, 2> Ranges; in reportBug() local 155 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug() 163 AddDerefSource(os, Ranges, AE->getBase()->IgnoreParenCasts(), in reportBug() 171 AddDerefSource(os, Ranges, U->getSubExpr()->IgnoreParens(), in reportBug() 179 AddDerefSource(os, Ranges, M->getBase()->IgnoreParenCasts(), in reportBug() 187 AddDerefSource(os, Ranges, IV->getBase()->IgnoreParenCasts(), in reportBug() [all …]
|
| H A D | MallocSizeofChecker.cpp | 234 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()
|
| /freebsd-13.1/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
|
| H A D | Format.cpp | 2245 for (auto Range : Ranges) { in affectsRange() 2698 std::vector<tooling::Range> Ranges, in formatReplacements() 2700 return sortIncludes(Style, Code, Ranges, FileName); in formatReplacements() 2710 std::vector<tooling::Range> Ranges, in formatReplacements() argument 2712 return reformat(Style, Code, Ranges, FileName); in formatReplacements() 2808 std::vector<tooling::Range> Ranges, in cleanupAroundReplacements() 2810 return cleanup(Style, Code, Ranges, FileName); in cleanupAroundReplacements() 2912 ArrayRef<tooling::Range> Ranges, in reformat() argument 2915 return internal::reformat(Style, Code, Ranges, in reformat() 2923 ArrayRef<tooling::Range> Ranges, in cleanup() argument [all …]
|
| /freebsd-13.1/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,
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 102 SmallVector<CharSourceRange, 20> MutableRanges(Ranges.begin(), in emitDiagnostic() 103 Ranges.end()); in emitDiagnostic() 127 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() 363 for (const auto &Range : Ranges) { in mapDiagnosticRanges() 429 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitCaret() 437 ArrayRef<CharSourceRange> Ranges) { in emitSingleMacroExpansion() argument 444 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in emitSingleMacroExpansion() 495 mapDiagnosticRanges(Loc, Ranges, SpellingRanges); in checkRangesForMacroArgExpansion() 499 for (const auto &Range : Ranges) in checkRangesForMacroArgExpansion() 582 emitSingleMacroExpansion(FullSourceLoc(*I, SM), Level, Ranges); in emitMacroExpansions() [all …]
|
| H A D | TextDiagnostic.cpp | 675 StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, in emitDiagnosticMessage() argument 681 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 796 ArrayRef<CharSourceRange> Ranges) { in emitDiagnosticLoc() argument 854 if (DiagOpts->ShowSourceRanges && !Ranges.empty()) { in emitDiagnosticLoc() 858 for (ArrayRef<CharSourceRange>::const_iterator RI = Ranges.begin(), in emitDiagnosticLoc() 859 RE = Ranges.end(); in emitDiagnosticLoc() 1143 if (Loc == LastLoc && Ranges.empty() && Hints.empty() && in emitSnippetAndCaret() 1169 for (SmallVectorImpl<CharSourceRange>::iterator I = Ranges.begin(), in emitSnippetAndCaret() 1170 E = Ranges.end(); in emitSnippetAndCaret() 1213 for (SmallVectorImpl<CharSourceRange>::iterator I = Ranges.begin(), in emitSnippetAndCaret() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Testing/Support/ |
| H A D | Annotations.cpp | 51 Ranges[OpenRanges.back().first].push_back(R); in Annotations() 83 auto I = Ranges.find(Name); in range() 84 require(I != Ranges.end() && I->getValue().size() == 1, in range() 91 auto I = Ranges.find(Name); in ranges() 92 if (I == Ranges.end()) in ranges()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.cpp | 234 static Range *upperBound(MemoryLocation Loc, Range *Ranges, in upperBound() argument 238 if (Ranges[I].getEnd().getMemoryLocation() > Loc && in upperBound() 241 Ranges[I].getStart().getMemoryLocation())) in upperBound() 242 Best = &Ranges[I]; in upperBound() 257 Range *Ranges, unsigned NumRanges, in PrintMemorySnippet() argument 265 Min = __sanitizer::Min(Ranges[I].getStart().getMemoryLocation(), Min); in PrintMemorySnippet() 266 Max = __sanitizer::Max(Ranges[I].getEnd().getMemoryLocation(), Max); in PrintMemorySnippet() 290 Range *InRange = upperBound(Min, Ranges, NumRanges); in PrintMemorySnippet() 294 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet() 314 InRange = upperBound(P, Ranges, NumRanges); in PrintMemorySnippet() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | SourceMgr.cpp | 263 const Twine &Msg, ArrayRef<SMRange> Ranges, in GetMessage() argument 295 for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { in GetMessage() 296 SMRange R = Ranges[i]; in GetMessage() 343 ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, in PrintMessage() argument 345 PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors); in PrintMessage() 349 const Twine &Msg, ArrayRef<SMRange> Ranges, in PrintMessage() argument 351 PrintMessage(errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); in PrintMessage() 370 ArrayRef<std::pair<unsigned, unsigned>> Ranges, in SMDiagnostic() argument 373 Kind(Kind), Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()), in SMDiagnostic() 535 for (const std::pair<unsigned, unsigned> &R : Ranges) in print()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | PlistDiagnostics.cpp | 180 if (Ranges.empty()) in EmitRanges() 190 for (auto &R : Ranges) in EmitRanges() 319 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportEvent() local 320 EmitRanges(o, Ranges, indent); in ReportEvent() 405 ArrayRef<SourceRange> Ranges = P->getRanges(); in ReportMacroExpansions() local 406 EmitRanges(o, Ranges, indent); in ReportMacroExpansions() 438 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportNote() local 439 EmitRanges(o, Ranges, indent); in ReportNote() 469 ArrayRef<SourceRange> Ranges = P.getRanges(); in ReportPopUp() local 470 EmitRanges(o, Ranges, indent); in ReportPopUp() [all …]
|
| H A D | TextDiagnostics.cpp | 71 ArrayRef<SourceRange> Ranges, in FlushDiagnosticsImpl() 74 DiagEng.Report(Loc, ID) << String << Ranges << Fixits; in FlushDiagnosticsImpl() 78 DiagEng.Report(Loc, ID) << String << Ranges; in FlushDiagnosticsImpl()
|
| /freebsd-13.1/contrib/llvm-project/clang/tools/clang-format/ |
| H A D | ClangFormat.cpp | 201 std::vector<tooling::Range> &Ranges) { in fillRanges() argument 233 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 266 Ranges.push_back(tooling::Range(Offset, Length)); in fillRanges() 388 std::vector<tooling::Range> Ranges; in format() local 389 if (fillRanges(Code.get(), Ranges)) in format() 412 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, in format() 431 Ranges = tooling::calculateRangesAfterReplacements(Replaces, Ranges); in format() 434 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); in format()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
| H A D | BugReporter.h | 134 SmallVector<SourceRange, 4> Ranges; variable 204 ArrayRef<SourceRange> Ranges = {}) { 207 for (const auto &R : Ranges) 225 assert((R.isValid() || Ranges.empty()) && "Invalid range can only be used " in addRange() 227 Ranges.push_back(R); in addRange() 232 return Ranges; in getRanges() 634 ArrayRef<SourceRange> Ranges = None, 640 ArrayRef<SourceRange> Ranges = None,
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 150 ArrayRef<SourceRange> Ranges = Occurrence.getNameRanges(); in createRenameReplacements() local 151 assert(NewName.getNamePieces().size() == Ranges.size() && in createRenameReplacements() 153 AtomicChange Change(SM, Ranges[0].getBegin()); in createRenameReplacements() 154 for (const auto &Range : llvm::enumerate(Ranges)) { in createRenameReplacements()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineMemOperand.h | 181 const MDNode *Ranges; variable 191 const MDNode *Ranges = nullptr, 197 const MDNode *Ranges = nullptr, 261 const MDNode *getRanges() const { return Ranges; } in getRanges()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFVerifier.cpp | 31 auto Begin = Ranges.begin(); in insert() 32 auto End = Ranges.end(); in insert() 47 Ranges.insert(Pos, R); in insert() 65 auto I1 = Ranges.begin(), E1 = Ranges.end(); in contains() 66 auto I2 = RHS.Ranges.begin(), E2 = RHS.Ranges.end(); in contains() 89 auto I1 = Ranges.begin(), E1 = Ranges.end(); in intersects() 90 auto I2 = RHS.Ranges.begin(), E2 = RHS.Ranges.end(); in intersects() 386 DWARFAddressRangesVector Ranges = RangesOrError.get(); in verifyDieRanges() local 412 for (auto Range : Ranges) { in verifyDieRanges() 447 bool ShouldBeContained = !Ranges.empty() && !ParentRI.Ranges.empty() && in verifyDieRanges()
|