Home
last modified time | relevance | path

Searched refs:Range (Results 1 – 25 of 388) sorted by relevance

12345678910>>...16

/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp43 return Range; in maybeExtendRange()
49 return Range; in maybeExtendRange()
55 if (Range.isInvalid()) in validateEditRange()
59 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateEditRange()
64 SM.isInSystemHeader(Range.getEnd())) in validateEditRange()
100 return Range; in getRangeForEdit()
329 Range.setBegin(T->getBeginLoc()); in getAssociatedRange()
338 Range.setEnd( in getAssociatedRange()
340 Range.setTokenRange(false); in getAssociatedRange()
369 Range.setBegin(Attr->getLocation()); in getAssociatedRange()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DFunctionInfo.h90 AddressRange Range; member
96 : Range(Addr, Addr + Size), Name(N) {}
173 uint64_t startAddress() const { return Range.Start; } in startAddress()
174 uint64_t endAddress() const { return Range.End; } in endAddress()
175 uint64_t size() const { return Range.size(); } in size()
177 void setEndAddress(uint64_t Addr) { Range.End = Addr; } in setEndAddress()
178 void setSize(uint64_t Size) { Range.End = Range.Start + Size; } in setSize()
181 Range = {0, 0}; in clear()
189 return LHS.Range == RHS.Range && LHS.Name == RHS.Name &&
202 if (LHS.Range != RHS.Range)
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DRange.cpp20 void AddressRanges::insert(AddressRange Range) { in insert() argument
21 if (Range.size() == 0) in insert()
24 auto It = llvm::upper_bound(Ranges, Range); in insert()
29 Range.End = std::max(Range.End, It2[-1].End); in insert()
35 Ranges.insert(It, Range); in insert()
46 if (Range.size() == 0) in contains()
53 return Range.End <= It[-1].End; in contains()
99 for (auto Range : Ranges) in encode() local
100 Range.encode(O, BaseAddr); in encode()
110 for (auto &Range : Ranges) in decode() local
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp60 if (Range.isInvalid()) in getPreprocessedEntitiesInRange()
63 if (CachedRangeQuery.Range == Range) { in getPreprocessedEntitiesInRange()
70 CachedRangeQuery.Range = Range; in getPreprocessedEntitiesInRange()
138 assert(Range.isValid()); in getPreprocessedEntitiesInRangeSlow()
139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
169 if (Range.isInvalid()) in findLocalPreprocessedEntitiesInRange()
171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
203 SourceRange Range = PPE->getSourceRange(); in getLoc() local
204 return (Range.*getRangeLoc)(); in getLoc()
450 assert(Range.isValid()); in SourceRangeSkipped()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp61 SourceRange Range; member
112 Result.Range.Start = currentLocation(); in getNextToken()
209 Result.Range.End = currentLocation(); in getNextToken()
259 SourceRange Range; in consumeNumberLiteral() local
260 Range.Start = Result->Range.Start; in consumeNumberLiteral()
261 Range.End = currentLocation(); in consumeNumberLiteral()
293 SourceRange Range; in consumeStringLiteral() local
294 Range.Start = Result->Range.Start; in consumeStringLiteral()
295 Range.End = currentLocation(); in consumeStringLiteral()
518 ArgValue.Range = NodeMatcherToken.Range; in parseMatcherBuilder()
[all …]
H A DDiagnostics.cpp15 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-13.1/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DAnnotations.h50 struct Range { struct
54 friend bool operator==(const Range &L, const Range &R) { argument
57 friend bool operator!=(const Range &L, const Range &R) { return !(L == R); }
76 Range range(llvm::StringRef Name = "") const;
79 std::vector<Range> ranges(llvm::StringRef Name = "") const;
84 llvm::StringMap<llvm::SmallVector<Range, 1>> Ranges;
88 const llvm::Annotations::Range &R);
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMILexer.cpp66 this->Range = Range; in reset()
172 auto Range = C; in lexName() local
183 return Range; in lexName()
283 auto Range = C; in maybeLexIdentifier() local
297 auto Range = C; in maybeLexMachineBasicBlock() local
331 auto Range = C; in maybeLexIndex() local
344 auto Range = C; in maybeLexIndexAndName() local
417 auto Range = C; in lexVirtualRegister() local
458 auto Range = C; in maybeLexRegister() local
474 auto Range = C; in maybeLexGlobalValue() local
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessingRecord.h91 SourceRange Range; variable
96 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity() argument
97 : Kind(Kind), Range(Range) {} in PreprocessedEntity()
137 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective() argument
138 : PreprocessedEntity(Kind, Range) {} in PreprocessingDirective()
154 SourceRange Range) in MacroDefinitionRecord() argument
177 : PreprocessedEntity(MacroExpansionKind, Range), in MacroExpansion()
551 SourceRange Range) override;
553 void SourceRangeSkipped(SourceRange Range,
557 SourceRange Range);
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSTLExtras.h1521 return std::distance(Range.begin(), Range.end());
1535 return std::all_of(adl_begin(Range), adl_end(Range), P);
1542 return std::any_of(adl_begin(Range), adl_end(Range), P);
1555 return std::find(adl_begin(Range), adl_end(Range), Val);
1586 return std::copy(adl_begin(Range), adl_end(Range), Out);
1593 return std::move(adl_begin(Range), adl_end(Range), Out);
1600 return std::find(adl_begin(Range), adl_end(Range), Element) != adl_end(Range);
1612 return std::is_sorted(adl_begin(Range), adl_end(Range));
1670 std::stable_sort(adl_begin(Range), adl_end(Range));
1675 std::stable_sort(adl_begin(Range), adl_end(Range), C);
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp32 << "), range " << Regions[i].Range << "\n"; in print()
41 const StackLifetime::LiveRange &Range) { in addObject() argument
42 StackObjects.push_back({V, Size, Alignment, Range}); in addObject()
59 Regions.emplace_back(Start, End, Obj.Range); in layoutObject()
65 << Obj.Alignment << ", range " << Obj.Range << "\n"); 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 DSafeStackLayout.h30 StackLifetime::LiveRange Range; member
33 const StackLifetime::LiveRange &Range) in StackRegion()
34 : Start(Start), End(End), Range(Range) {} in StackRegion()
43 StackLifetime::LiveRange Range; member
59 const StackLifetime::LiveRange &Range);
H A DLiveIntervalUnion.cpp29 void LiveIntervalUnion::unify(LiveInterval &VirtReg, const LiveRange &Range) { in unify() argument
30 if (Range.empty()) in unify()
35 LiveRange::const_iterator RegPos = Range.begin(); in unify()
36 LiveRange::const_iterator RegEnd = Range.end(); in unify()
56 void LiveIntervalUnion::extract(LiveInterval &VirtReg, const LiveRange &Range) { in extract() argument
57 if (Range.empty()) in extract()
62 LiveRange::const_iterator RegPos = Range.begin(); in extract()
63 LiveRange::const_iterator RegEnd = Range.end(); in extract()
73 RegPos = Range.advanceTo(RegPos, SegPos.start()); in extract()
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DTypes.cpp18 const char *llvm::getMinimalTypeForRange(uint64_t Range, unsigned MaxSize LLVM_ATTRIBUTE_UNUSED) { in getMinimalTypeForRange() argument
25 assert(((MaxSize > 32) ? Range <= 0xFFFFFFFFFFFFFFFFULL in getMinimalTypeForRange()
26 : Range <= 0xFFFFFFFFULL) && in getMinimalTypeForRange()
29 if (Range > 0xFFFFFFFFULL) in getMinimalTypeForRange()
31 if (Range > 0xFFFF) in getMinimalTypeForRange()
33 if (Range > 0xFF) in getMinimalTypeForRange()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h44 class Range {
46 Range() = default;
58 bool overlapsWith(Range RHS) const { in overlapsWith()
63 bool contains(Range RHS) const { in contains()
69 bool operator==(const Range &RHS) const {
136 const CharSourceRange &Range,
141 Range ReplacementRange;
265 std::vector<Range> getAffectedRanges() const;
347 std::vector<Range>
362 const CharSourceRange Range = in Replacement() local
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIBugReporter.cpp37 SourceRange Range = RequestRegion->sourceRange(); in reportDoubleNonblocking() local
39 if (Range.isValid()) in reportDoubleNonblocking()
40 Report->addRange(Range); in reportDoubleNonblocking()
59 SourceRange Range = RequestRegion->sourceRange(); in reportMissingWait() local
60 if (Range.isValid()) in reportMissingWait()
61 Report->addRange(Range); in reportMissingWait()
80 SourceRange Range = RequestRegion->sourceRange(); in reportUnmatchedWait() local
81 if (Range.isValid()) in reportUnmatchedWait()
82 Report->addRange(Range); in reportUnmatchedWait()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DStdLibraryFunctionsChecker.cpp1179 } Range; in initFunctionSummaries() local
1239 .Case({ArgumentCondition(0U, WithinRange, Range(0, 127)), in initFunctionSummaries()
1241 .Case({ArgumentCondition(0U, OutOfRange, Range(0, 127)), in initFunctionSummaries()
1262 .Case({ArgumentCondition(0U, OutOfRange, Range('0', '9')), in initFunctionSummaries()
1267 .Case({ArgumentCondition(0U, WithinRange, Range(33, 126)), in initFunctionSummaries()
1269 .Case({ArgumentCondition(0U, OutOfRange, Range(33, 126)), in initFunctionSummaries()
1278 .Case({ArgumentCondition(0U, WithinRange, Range(0, 127)), in initFunctionSummaries()
1279 ArgumentCondition(0U, OutOfRange, Range('a', 'z')), in initFunctionSummaries()
1289 .Case({ArgumentCondition(0U, WithinRange, Range(32, 126)), in initFunctionSummaries()
1291 .Case({ArgumentCondition(0U, OutOfRange, Range(32, 126)), in initFunctionSummaries()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Rewrite/
H A DRewriter.cpp145 int Rewriter::getRangeSize(const CharSourceRange &Range, in getRangeSize() argument
147 if (!isRewritable(Range.getBegin()) || in getRangeSize()
148 !isRewritable(Range.getEnd())) return -1; in getRangeSize()
169 if (Range.isTokenRange()) in getRangeSize()
176 return getRangeSize(CharSourceRange::getTokenRange(Range), opts); in getRangeSize()
185 if (!isRewritable(Range.getBegin()) || in getRewrittenText()
186 !isRewritable(Range.getEnd())) in getRewrittenText()
192 EndOff = getLocationOffsetAndFileID(Range.getEnd(), EndFileID); in getRewrittenText()
203 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText()
207 if (Range.isTokenRange()) in getRewrittenText()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp325 if (Range.StartAddress == Range.EndAddress) in emitRangesEntries()
357 Range != End; ++Range) in emitUnitRangesEntries()
358 Ranges.push_back(std::make_pair(Range.start() + Range.value(), in emitUnitRangesEntries()
359 Range.stop() + Range.value())); in emitUnitRangesEntries()
390 for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End; in emitUnitRangesEntries() local
391 ++Range) { in emitUnitRangesEntries()
394 while ((Range + 1) != End && Range->second == (Range + 1)->first) in emitUnitRangesEntries()
395 ++Range; in emitUnitRangesEntries()
412 for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End; ++Range) { in emitUnitRangesEntries() local
414 while (Range + 1 != End && Range->second == (Range + 1)->first) in emitUnitRangesEntries()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h34 SourceRange Range; member
40 SkippedRange(SourceRange Range, SourceLocation PrevTokLoc = SourceLocation(),
42 : Range(Range), PrevTokLoc(PrevTokLoc), NextTokLoc(NextTokLoc) {} in Range() function
65 void AddSkippedRange(SourceRange Range);
67 void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
69 void HandleEmptyline(SourceRange Range) override;
71 bool HandleComment(Preprocessor &PP, SourceRange Range) override;
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DCFGDiff.h36 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-13.1/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp2779 << Range; in mangleType()
2929 << Range; in mangleType()
2938 << Range; in mangleType()
3086 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3095 << Range; in mangleType()
3103 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3112 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3121 Diags.Report(Range.getBegin(), DiagID) << Range; in mangleType()
3195 << Range; in mangleType()
3204 << Range; in mangleType()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DSortJavaScriptImports.cpp43 SourceRange Range; member
100 SourceRange Range; member
152 SourceRange InsertionPoint = References[0].Range; in analyze()
237 StringRef getSourceText(SourceRange Range) { in getSourceText() argument
238 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
322 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference()
344 Buffer += getSourceText(I->Range); in appendReference()
397 Reference.Range.setBegin(Start); in parseModuleReferences()
405 Reference.Range.setEnd(LineEnd->Tok.getEndLoc()); in parseModuleReferences()
521 Symbol.Range.setBegin( in parseNamedBindings()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp27 SourceRange Range) { in handleFallThroughAttr() argument
54 SourceRange Range) { in handleSuppressAttr() argument
199 SourceRange Range) { in handleNoMergeAttr() argument
219 SourceRange Range) { in handleLikely() argument
228 SourceRange Range) { in handleUnlikely() argument
414 return handleLoopHintAttr(S, St, A, Range); in ProcessStmtAttribute()
418 return handleSuppressAttr(S, St, A, Range); in ProcessStmtAttribute()
420 return handleNoMergeAttr(S, St, A, Range); in ProcessStmtAttribute()
422 return handleMustTailAttr(S, St, A, Range); in ProcessStmtAttribute()
424 return handleLikely(S, St, A, Range); in ProcessStmtAttribute()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Core/
H A DReplacement.cpp58 const CharSourceRange &Range, in Replacement() argument
61 setFromSourceRange(Sources, Range, ReplacementText, LangOpts); in Replacement()
135 const CharSourceRange &Range, in getRangeSize() argument
142 if (Range.isTokenRange()) in getRangeSize()
306 return Range(R1.getOffset(), R1.getLength()) in add()
484 static std::vector<Range> combineAndSortRanges(std::vector<Range> Ranges) { in combineAndSortRanges()
485 llvm::sort(Ranges, [](const Range &LHS, const Range &RHS) { in combineAndSortRanges()
490 std::vector<Range> Result; in combineAndSortRanges()
509 std::vector<Range>
535 std::vector<Range> ChangedRanges; in getAffectedRanges()
[all …]

12345678910>>...16