| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | AddressRanges.h | 69 bool contains(AddressRange Range) const { in contains() argument 70 return find(Range.start(), Range.end()) != Ranges.end(); in contains() 121 Collection::const_iterator insert(AddressRange Range) { in insert() argument 122 if (Range.empty()) in insert() 125 auto It = upper_bound(Ranges, Range); in insert() 127 while (It2 != Ranges.end() && It2->start() <= Range.end()) in insert() 130 Range = {Range.start(), std::max(Range.end(), std::prev(It2)->end())}; in insert() 133 if (It != Ranges.begin() && Range.start() <= std::prev(It)->end()) { in insert() 135 *It = {It->start(), std::max(It->end(), Range.end())}; in insert() 139 return Ranges.insert(It, Range); in insert() [all …]
|
| H A D | STLExtras.h | 417 template <typename Range> 419 decltype(adl_rbegin(std::declval<Range &>())); 421 template <typename Range> 423 is_detected<check_has_free_function_rbegin, Range>::value; 581 make_filter_range(RangeT &&Range, PredicateT Pred) { 584 auto B = adl_begin(Range); 585 auto E = adl_end(Range); 663 make_early_inc_range(RangeT &&Range) { 666 return make_range(EarlyIncIteratorT(adl_begin(Range)), 667 EarlyIncIteratorT(adl_end(Range))); [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 31 StringRef clang::tooling::getText(CharSourceRange Range, in getText() argument 33 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText() 37 CharSourceRange clang::tooling::maybeExtendRange(CharSourceRange Range, in maybeExtendRange() argument 40 CharSourceRange R = Lexer::getAsCharRange(Range, Context.getSourceManager(), in maybeExtendRange() 43 return Range; in maybeExtendRange() 49 return Range; in maybeExtendRange() 50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); in maybeExtendRange() 53 llvm::Error clang::tooling::validateRange(const CharSourceRange &Range, in validateRange() argument 56 if (Range.isInvalid()) in validateRange() 60 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateRange() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRangeList.cpp | 17 auto Range = RangesRef[0]; in isOrderedRanges() local 18 if (Range.getLower().sge(Range.getUpper())) in isOrderedRanges() 103 for (auto &Range : Ranges) { in subtract() local 104 if (SubRange.getUpper().sle(Range.getLower()) || in subtract() 105 Range.getUpper().sle(SubRange.getLower())) { in subtract() 110 Result.push_back(Range); in subtract() 111 } else if (Range.getLower().sle(SubRange.getLower()) && in subtract() 112 SubRange.getUpper().sle(Range.getUpper())) { in subtract() 118 AppendRangeIfNonEmpty(Range.getLower(), SubRange.getLower()); in subtract() 119 AppendRangeIfNonEmpty(SubRange.getUpper(), Range.getUpper()); in subtract() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 43 SourceRange Range) in InclusionDirective() argument 44 : PreprocessingDirective(InclusionDirectiveKind, Range), InQuotes(InQuotes), in InclusionDirective() 57 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange() argument 58 if (Range.isInvalid()) in getPreprocessedEntitiesInRange() 61 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange() 66 std::pair<int, int> Res = getPreprocessedEntitiesInRangeSlow(Range); in getPreprocessedEntitiesInRange() 68 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange() 134 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow() argument 135 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow() 136 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 60 SourceRange Range; member 111 Result.Range.Start = currentLocation(); in getNextToken() 208 Result.Range.End = currentLocation(); in getNextToken() 258 SourceRange Range; in consumeNumberLiteral() local 259 Range.Start = Result->Range.Start; in consumeNumberLiteral() 260 Range.End = currentLocation(); in consumeNumberLiteral() 261 Error->addError(Range, Error->ET_ParserNumberError) << Result->Text; in consumeNumberLiteral() 292 SourceRange Range; in consumeStringLiteral() local 293 Range.Start = Result->Range.Start; in consumeStringLiteral() 294 Range.End = currentLocation(); in consumeStringLiteral() [all …]
|
| H A D | Diagnostics.cpp | 15 SourceRange Range) { in pushContextFrame() argument 19 data.Range = Range; in pushContextFrame() 65 Diagnostics::ArgStream Diagnostics::addError(SourceRange Range, in addError() argument 71 Last.Messages.back().Range = Range; in addError() 162 static void maybeAddLineAndColumn(SourceRange Range, in maybeAddLineAndColumn() argument 164 if (Range.Start.Line > 0 && Range.Start.Column > 0) { in maybeAddLineAndColumn() 165 OS << Range.Start.Line << ":" << Range.Start.Column << ": "; in maybeAddLineAndColumn() 171 maybeAddLineAndColumn(Frame.Range, OS); in printContextFrameToStream() 178 maybeAddLineAndColumn(Message.Range, OS); in printMessageToStream()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_range.h | 21 struct Range { struct 26 inline bool operator==(const Range &lhs, const Range &rhs) { argument 30 inline bool operator!=(const Range &lhs, const Range &rhs) { 35 void Intersect(ArrayRef<Range> a, ArrayRef<Range> b, 36 InternalMmapVectorNoCtor<Range> &output);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Annotations/ |
| H A D | Annotations.h | 57 struct Range { struct 61 friend bool operator==(const Range &L, const Range &R) { argument 64 friend bool operator!=(const Range &L, const Range &R) { return !(L == R); } 94 Range range(llvm::StringRef Name = "") const; 97 std::pair<Range, llvm::StringRef> 101 std::vector<Range> ranges(llvm::StringRef Name = "") const; 105 std::vector<std::pair<Range, llvm::StringRef>> 110 llvm::StringMap<llvm::SmallVector<Range, 1>> all_ranges() const; 129 const llvm::Annotations::Range &R);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
| H A D | FunctionInfo.h | 94 AddressRange Range; member 106 : Range(Addr, Addr + Size), Name(N) {} 204 uint64_t startAddress() const { return Range.start(); } in startAddress() 205 uint64_t endAddress() const { return Range.end(); } in endAddress() 206 uint64_t size() const { return Range.size(); } in size() 209 Range = {0, 0}; in clear() 217 return LHS.Range == RHS.Range && LHS.Name == RHS.Name && 239 return std::tie(LHS.Range, LHS.Inline, LHS.OptLineTable) < 240 std::tie(RHS.Range, RHS.Inline, RHS.OptLineTable);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | InterleavedRange.h | 34 template <typename Range> class InterleavedRange { 35 const Range &TheRange; 41 InterleavedRange(const Range &R, StringRef Separator, StringRef Prefix, in InterleavedRange() 75 template <typename Range> 76 InterleavedRange<Range> interleaved(const Range &R, StringRef Separator = ", ", 91 template <typename Range> 92 InterleavedRange<Range> interleaved_array(const Range &R,
|
| H A D | CFGDiff.h | 36 template <typename Range> 37 auto reverse_if_helper(Range &&R, std::integral_constant<bool, false>) { in reverse_if_helper() 38 return std::forward<Range>(R); in reverse_if_helper() 41 template <typename Range> 42 auto reverse_if_helper(Range &&R, std::integral_constant<bool, true>) { in reverse_if_helper() 43 return llvm::reverse(std::forward<Range>(R)); in reverse_if_helper() 46 template <bool B, typename Range> auto reverse_if(Range &&R) { in reverse_if() 47 return reverse_if_helper(std::forward<Range>(R), in reverse_if()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/ |
| H A D | MILexer.cpp | 62 MIToken &MIToken::reset(TokenKind Kind, StringRef Range) { in reset() argument 64 this->Range = Range; in reset() 170 auto Range = C; in lexName() local 174 StringRef String = Range.upto(R); in lexName() 180 Token.reset(MIToken::Error, Range.remaining()); in lexName() 181 return Range; in lexName() 185 Token.reset(Type, Range.upto(C)) in lexName() 186 .setStringValue(Range.upto(C).drop_front(PrefixLength)); in lexName() 299 auto Range = C; in maybeLexIdentifier() local 302 auto Identifier = Range.upto(C); in maybeLexIdentifier() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | PreprocessingRecord.h | 89 SourceRange Range; variable 94 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity() argument 95 : Kind(Kind), Range(Range) {} in PreprocessedEntity() 103 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange() 135 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective() argument 136 : PreprocessedEntity(Kind, Range) {} in PreprocessingDirective() 152 SourceRange Range) in MacroDefinitionRecord() argument 153 : PreprocessingDirective(MacroDefinitionKind, Range), Name(Name) {} in MacroDefinitionRecord() 174 MacroExpansion(IdentifierInfo *BuiltinName, SourceRange Range) in MacroExpansion() argument 175 : PreprocessedEntity(MacroExpansionKind, Range), in MacroExpansion() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SafeStackLayout.cpp | 31 << "), range " << Regions[i].Range << "\n"; in print() 40 const StackLifetime::LiveRange &Range) { in addObject() argument 41 StackObjects.push_back({V, Size, Alignment, Range}); in addObject() 58 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 64 << Obj.Alignment.value() << ", range " << Obj.Range in layoutObject() 72 << ", range " << R.Range << "\n"); in layoutObject() 78 if (Obj.Range.overlaps(R.Range)) { in layoutObject() 102 << End << ", range " << Obj.Range << "\n"); in layoutObject() 103 Regions.emplace_back(LastRegionEnd, End, Obj.Range); in layoutObject() 127 R.Range.join(Obj.Range); in layoutObject()
|
| H A D | SafeStackLayout.h | 31 StackLifetime::LiveRange Range; member 34 const StackLifetime::LiveRange &Range) in StackRegion() 35 : Start(Start), End(End), Range(Range) {} in StackRegion() 45 StackLifetime::LiveRange Range; member 61 const StackLifetime::LiveRange &Range);
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
| H A D | Types.cpp | 19 llvm::getMinimalTypeForRange(uint64_t Range, in getMinimalTypeForRange() argument 27 assert(((MaxSize > 32) ? Range <= 0xFFFFFFFFFFFFFFFFULL in getMinimalTypeForRange() 28 : Range <= 0xFFFFFFFFULL) && in getMinimalTypeForRange() 31 if (Range > 0xFFFFFFFFULL) in getMinimalTypeForRange() 33 if (Range > 0xFFFF) in getMinimalTypeForRange() 35 if (Range > 0xFF) in getMinimalTypeForRange()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmtAttr.cpp | 25 SourceRange Range) { in handleFallThroughAttr() argument 30 SourceLocation L = S.getLocForEndOfToken(Range.getEnd()); in handleFallThroughAttr() 52 SourceRange Range) { in handleSuppressAttr() argument 219 SourceRange Range) { in handleNoMergeAttr() argument 232 SourceRange Range) { in handleNoConvergentAttr() argument 298 SourceRange Range) { in handleNoInlineAttr() argument 313 SourceRange Range) { in handleAlwaysInlineAttr() argument 328 SourceRange Range) { in handleCXXAssumeAttr() argument 329 ExprResult Res = S.ActOnCXXAssumeAttr(St, A, Range); in handleCXXAssumeAttr() 337 SourceRange Range) { in handleMustTailAttr() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
| H A D | Replacement.h | 44 class Range { 46 Range() = default; 47 Range(unsigned Offset, unsigned Length) : Offset(Offset), Length(Length) {} in Range() function 58 bool overlapsWith(Range RHS) const { in overlapsWith() 63 bool contains(Range RHS) const { in contains() 69 bool operator==(const Range &RHS) const { 103 Replacement(const SourceManager &Sources, const CharSourceRange &Range, 136 const CharSourceRange &Range, 141 Range ReplacementRange; 268 std::vector<Range> getAffectedRanges() const; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 46 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() argument 48 if (!isRewritable(Range.getBegin()) || in getRangeSize() 49 !isRewritable(Range.getEnd())) return -1; in getRangeSize() 52 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 53 unsigned EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRangeSize() 70 if (Range.isTokenRange()) in getRangeSize() 71 EndOff += Lexer::MeasureTokenLength(Range.getEnd(), *SourceMgr, *LangOpts); in getRangeSize() 76 int Rewriter::getRangeSize(SourceRange Range, RewriteOptions opts) const { in getRangeSize() argument 77 return getRangeSize(CharSourceRange::getTokenRange(Range), opts); in getRangeSize() 85 std::string Rewriter::getRewrittenText(CharSourceRange Range) const { in getRewrittenText() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIBugReporter.cpp | 36 SourceRange Range = RequestRegion->sourceRange(); in reportDoubleNonblocking() local 38 if (Range.isValid()) in reportDoubleNonblocking() 39 Report->addRange(Range); in reportDoubleNonblocking() 58 SourceRange Range = RequestRegion->sourceRange(); in reportMissingWait() local 59 if (Range.isValid()) in reportMissingWait() 60 Report->addRange(Range); in reportMissingWait() 79 SourceRange Range = RequestRegion->sourceRange(); in reportUnmatchedWait() local 80 if (Range.isValid()) in reportUnmatchedWait() 81 Report->addRange(Range); in reportUnmatchedWait()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/minidump/ |
| H A D | MinidumpParser.h | 38 struct Range { struct 41 Range() = default; 46 Range(lldb::addr_t start, llvm::ArrayRef<uint8_t> range_ref) in Range() argument 49 friend bool operator==(const Range &lhs, const Range &rhs) { 53 friend bool operator<(const Range &lhs, const Range &rhs) { 61 lldb_private::RangeDataVector<lldb::addr_t, lldb::addr_t, minidump::Range>; 105 std::optional<Range> FindMemoryRange(lldb::addr_t addr);
|
| /freebsd/contrib/llvm-project/llvm/lib/Testing/Annotations/ |
| H A D | Annotations.cpp | 128 Annotations::Range Annotations::range(llvm::StringRef Name) const { in range() 132 std::pair<Annotations::Range, llvm::StringRef> 141 std::vector<Annotations::Range> 144 std::vector<Annotations::Range> Res; in ranges() 146 for (const auto &[Range, Payload] : WithPayload) in ranges() 147 Res.push_back(Range); in ranges() 150 std::vector<std::pair<Annotations::Range, llvm::StringRef>> 156 std::vector<std::pair<Annotations::Range, llvm::StringRef>> Res; in rangesWithPayload() 159 Res.emplace_back(Annotations::Range{All[I].Begin, All[I].End}, in rangesWithPayload() 165 llvm::StringMap<llvm::SmallVector<Annotations::Range, 1>> [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | MicrosoftMangle.cpp | 399 void mangleAddressSpaceType(QualType T, Qualifiers Quals, SourceRange Range); 400 void mangleType(QualType T, SourceRange Range, 441 void mangleFunctionArgumentType(QualType T, SourceRange Range); 451 SourceRange Range); 461 void mangleCallingConvention(CallingConv CC, SourceRange Range); 462 void mangleCallingConvention(const FunctionType *T, SourceRange Range); 478 SourceRange Range); 480 SourceRange Range); 2186 SourceRange Range) { in mangleObjCLifetime() argument 2208 Extra.mangleType(Type, Range); in mangleObjCLifetime() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Format/ |
| H A D | SortJavaScriptImports.cpp | 39 SourceRange Range; member 98 SourceRange Range; member 156 SourceRange InsertionPoint = References[0].Range; in analyze() 157 InsertionPoint.setEnd(References[References.size() - 1].Range.getEnd()); in analyze() 241 StringRef getSourceText(SourceRange Range) { in getSourceText() argument 242 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText() 326 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference() 338 StringRef ReferenceStmt = getSourceText(Reference.Range); in appendReference() 343 Buffer += getSourceText(Reference.Range.getBegin(), Reference.SymbolsStart); in appendReference() 346 Buffer += getSourceText(Symbols.front().Range); in appendReference() [all …]
|