Home
last modified time | relevance | path

Searched refs:SourceRange (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeLoc.h154 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange()
155 return SourceRange(getBeginLoc(), getEndLoc()); in getSourceRange()
160 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
248 static SourceRange getLocalSourceRangeImpl(TypeLoc TL);
292 SourceRange getLocalSourceRange() const { return {}; } in getLocalSourceRange()
545 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
546 return SourceRange(getNameLoc(), getNameLoc()); in getLocalSourceRange()
560 SourceRange BuiltinRange;
577 void expandBuiltinRange(SourceRange Range) { in expandBuiltinRange()
578 SourceRange &BuiltinRange = getLocalData()->BuiltinRange; in expandBuiltinRange()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessingRecord.h89 SourceRange Range;
94 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity()
103 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
135 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective()
152 SourceRange Range) in MacroDefinitionRecord()
174 MacroExpansion(IdentifierInfo *BuiltinName, SourceRange Range) in MacroExpansion()
178 MacroExpansion(MacroDefinitionRecord *Definition, SourceRange Range) in MacroExpansion()
251 OptionalFileEntryRef File, SourceRange Range);
292 findPreprocessedEntitiesInRange(SourceRange Range) = 0;
302 virtual SourceRange ReadSkippedRange(unsigned Index) = 0;
[all …]
H A DNoTrivialPPDirectiveTracer.h191 SourceRange Range, const MacroArgs *Args) override;
213 SourceRange Range) override { in Defined()
223 void If(SourceLocation Loc, SourceRange ConditionRange, in If()
234 void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
261 void Elifdef(SourceLocation Loc, SourceRange ConditionRange, in Elifdef()
288 void Elifndef(SourceLocation Loc, SourceRange ConditionRange, in Elifndef()
H A DPPEmbedParameters.h28 PPEmbedParameterOffset(size_t Offset, SourceRange R) in PPEmbedParameterOffset()
38 PPEmbedParameterLimit(size_t Limit, SourceRange R) in PPEmbedParameterLimit()
48 PPEmbedParameterPrefix(SmallVectorImpl<Token> &&Tokens, SourceRange R) in PPEmbedParameterPrefix()
58 PPEmbedParameterSuffix(SmallVectorImpl<Token> &&Tokens, SourceRange R) in PPEmbedParameterSuffix()
68 PPEmbedParameterIfEmpty(SmallVectorImpl<Token> &&Tokens, SourceRange R) in PPEmbedParameterIfEmpty()
H A DPPConditionalDirectiveRecord.h75 bool rangeIntersectsConditionalDirective(SourceRange Range) const;
88 void If(SourceLocation Loc, SourceRange ConditionRange,
90 void Elif(SourceLocation Loc, SourceRange ConditionRange,
98 void Elifdef(SourceLocation Loc, SourceRange ConditionRange,
102 void Elifndef(SourceLocation Loc, SourceRange ConditionRange,
H A DPPDirectiveParameter.h23 SourceRange R;
26 PPDirectiveParameter(SourceRange R) : R(R) {} in PPDirectiveParameter()
28 SourceRange getParameterRange() const { return R; } in getParameterRange()
H A DPPCallbacks.h341 const MacroDefinition &MD, SourceRange Range, in MacroExpands()
363 SourceRange Range) { in Defined()
382 virtual void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) { in SourceRangeSkipped()
395 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If()
405 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
429 virtual void Elifdef(SourceLocation Loc, SourceRange ConditionRange, in Elifdef()
453 virtual void Elifndef(SourceLocation Loc, SourceRange ConditionRange, in Elifndef()
670 SourceRange Range, const MacroArgs *Args) override { in MacroExpands()
689 SourceRange Range) override { in Defined()
694 void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override { in SourceRangeSkipped()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
H A DDiagnostics.h36 struct SourceRange { struct
45 SourceRange Range; argument
111 SourceRange MatcherRange);
115 SourceRange MatcherRange, unsigned ArgNumber);
144 ArgStream addError(SourceRange Range, ErrorType Error);
149 SourceRange Range;
157 SourceRange Range;
179 ArgStream pushContextFrame(ContextType Type, SourceRange Range);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugSuppression.cpp20 using Ranges = llvm::SmallVectorImpl<SourceRange>;
40 template <class NodeType> inline SourceRange getRange(const NodeType *Node) { in getRange()
43 template <> inline SourceRange getRange(const AttributedStmt *S) { in getRange()
67 inline bool fullyContains(SourceRange Larger, SourceRange Smaller, in fullyContains()
114 void addRange(SourceRange R) { in addRange()
212 SourceRange BugRange = Location.asRange(); in isSuppressed()
216 [BugRange, &SM](SourceRange Suppression) { in isSuppressed()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIRParser.cpp89 bool error(const SMDiagnostic &Error, SMRange SourceRange);
177 SMRange SourceRange);
182 SMRange SourceRange);
223 bool MIRParserImpl::error(const SMDiagnostic &Error, SMRange SourceRange) { in error() argument
225 reportDiagnostic(diagFromMIStringDiag(Error, SourceRange)); in error()
504 return error(Error, ArgRegPair.Reg.SourceRange); in initializeCallSiteInfo()
595 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction()
623 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction()
682 return error(VReg.ID.SourceRange.Start, in parseRegisterInfo()
699 VReg.Class.SourceRange.Start, in parseRegisterInfo()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp176 SourceRange RecRange = Receiver->getSourceRange(); in maybePutParensOnReceiver()
189 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToSubscriptGetCommon()
190 SourceRange RecRange = Rec->getSourceRange(); in rewriteToSubscriptGetCommon()
191 SourceRange ArgRange = Msg->getArg(0)->getSourceRange(); in rewriteToSubscriptGetCommon()
196 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon()
237 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToArraySubscriptSet()
238 SourceRange RecRange = Rec->getSourceRange(); in rewriteToArraySubscriptSet()
239 SourceRange Arg0Range = Msg->getArg(0)->getSourceRange(); in rewriteToArraySubscriptSet()
240 SourceRange Arg1Range = Msg->getArg(1)->getSourceRange(); in rewriteToArraySubscriptSet()
248 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h215 class SourceRange {
220 SourceRange() = default;
221 SourceRange(SourceLocation loc) : B(loc), E(loc) {}
222 SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {}
233 bool operator==(const SourceRange &X) const {
237 bool operator!=(const SourceRange &X) const {
242 bool fullyContains(const SourceRange &other) const {
259 SourceRange Range;
264 CharSourceRange(SourceRange R, bool ITR) : Range(R), IsTokenRange(ITR) {}
266 static CharSourceRange getTokenRange(SourceRange R) {
[all …]
H A DAttributeCommonInfo.h85 SourceRange AttrRange;
152 AttributeScopeInfo AttrScope, SourceRange AttrRange, in AttributeCommonInfo()
164 SourceRange AttrRange, Form FormUsed) in AttributeCommonInfo()
170 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo()
175 AttributeCommonInfo(SourceRange AttrRange, Kind K, Form FormUsed) in AttributeCommonInfo()
179 AttributeCommonInfo(SourceRange AttrRange, AttributeScopeInfo AttrScope, in AttributeCommonInfo()
195 SourceRange getRange() const { return AttrRange; } in getRange()
196 void setRange(SourceRange R) { AttrRange = R; } in setRange()
219 SourceRange getNormalizedRange() const;
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DRewriter.h89 int getRangeSize(SourceRange Range,
106 std::string getRewrittenText(SourceRange Range) const { in getRewrittenText()
152 bool RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) {
172 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText()
179 bool ReplaceText(SourceRange range, SourceRange replacementRange);
186 bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) { in IncreaseIndentation()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp43 SourceRange Range) in InclusionDirective()
57 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange()
134 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow()
165 SourceRange Range) const { in findLocalPreprocessedEntitiesInRange()
177 template <SourceLocation (SourceRange::*getRangeLoc)() const>
200 SourceRange Range = PPE->getSourceRange(); in getLoc()
244 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
304 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in addPreprocessedEntity()
374 PreprocessedEntity(PreprocessedEntity::InvalidKind, SourceRange()); in getLoadedPreprocessedEntity()
386 SourceRange Range) { in addMacroExpansion()
[all …]
H A DPPConditionalDirectiveRecord.cpp24 SourceRange Range) const { in rangeIntersectsConditionalDirective()
76 SourceRange ConditionRange, in If()
97 SourceRange ConditionRange, in Elif()
109 void PPConditionalDirectiveRecord::Elifdef(SourceLocation Loc, SourceRange, in Elifdef() argument
120 void PPConditionalDirectiveRecord::Elifndef(SourceLocation Loc, SourceRange, in Elifndef() argument
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp399 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);
688 SourceRange SR = VD->getSourceRange(); in mangleVariableEncoding()
762 mangleType(TemplateArgType, SourceRange(), QMM_Drop); in mangleMemberDataPointer()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h45 SourceRange Range;
57 SkippedRange(SourceRange Range, Kind K,
84 void AddSkippedRange(SourceRange Range, SkippedRange::Kind RangeKind);
86 void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override;
88 void HandleEmptyline(SourceRange Range) override;
90 bool HandleComment(Preprocessor &PP, SourceRange Range) override;
/freebsd/contrib/llvm-project/clang/include/clang/Edit/
H A DCommit.h95 bool insertFromRange(SourceLocation loc, SourceRange TokenRange,
102 bool insertWrap(StringRef before, SourceRange TokenRange, StringRef after) { in insertWrap()
106 bool remove(SourceRange TokenRange) { in remove()
110 bool replace(SourceRange TokenRange, StringRef text) { in replace()
114 bool replaceWithInner(SourceRange TokenRange, SourceRange TokenInnerRange) { in replaceWithInner()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedAttr.h55 SourceRange VersionRange;
206 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
220 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
241 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
256 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
274 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
287 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
735 ParsedAttr *create(IdentifierInfo *attrName, SourceRange attrRange,
748 ParsedAttr *create(IdentifierInfo *attrName, SourceRange attrRange, in create()
764 ParsedAttr *create(IdentifierInfo *attrName, SourceRange attrRange, in create()
[all …]
H A DDeclSpec.h75 SourceRange Range;
80 SourceRange getRange() const { return Range; } in getRange()
81 void setRange(SourceRange R) { Range = R; } in setRange()
182 SourceRange R);
217 void SetInvalid(SourceRange R) { in SetInvalid()
230 Range = SourceRange(); in clear()
428 SourceRange Range;
431 SourceRange TSWRange;
438 SourceRange TypeofParensRange;
573 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/Rename/
H A DSymbolOccurrences.h71 ArrayRef<SourceRange> getNameRanges() const { in getNameRanges()
79 std::unique_ptr<SourceRange[]> MultipleRanges;
81 SourceRange SingleRange;
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DReachableCode.h52 SourceRange ConditionVal, SourceRange R1,
53 SourceRange R2, bool HasFallThroughAttr) = 0;
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp25 SourceRange Range) { in handleFallThroughAttr()
52 SourceRange Range) { in handleSuppressAttr()
75 SourceRange) { in handleLoopHintAttr() argument
219 SourceRange Range) { in handleNoMergeAttr()
232 SourceRange Range) { in handleNoConvergentAttr()
298 SourceRange Range) { in handleNoInlineAttr()
313 SourceRange Range) { in handleAlwaysInlineAttr()
328 SourceRange Range) { in handleCXXAssumeAttr()
337 SourceRange Range) { in handleMustTailAttr()
343 SourceRange Range) { in handleLikely()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DSymbolOccurrences.cpp24 new (&SingleRange) SourceRange( in SymbolOccurrence()
28 MultipleRanges = std::make_unique<SourceRange[]>(Locations.size()); in SymbolOccurrence()
31 MultipleRanges[Loc.index()] = SourceRange( in SymbolOccurrence()

12345678910>>...13