Home
last modified time | relevance | path

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

1234567891011

/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DInternals.h33 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
34 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const;
65 void remove(SourceRange range);
67 void replace(SourceRange range, StringRef text);
68 void replace(SourceRange range, SourceRange replacementRange);
72 void increaseIndentation(SourceRange range,
75 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
76 bool clearAllDiagnostics(SourceRange range) { in clearAllDiagnostics()
79 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { in clearDiagnostic()
84 SourceRange range) { in clearDiagnostic()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeLoc.h153 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange()
154 return SourceRange(getBeginLoc(), getEndLoc()); in getSourceRange()
159 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
247 static SourceRange getLocalSourceRangeImpl(TypeLoc TL);
291 SourceRange getLocalSourceRange() const { return {}; } in getLocalSourceRange()
543 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
544 return SourceRange(getNameLoc(), getNameLoc()); in getLocalSourceRange()
558 SourceRange BuiltinRange;
575 void expandBuiltinRange(SourceRange Range) { in expandBuiltinRange()
576 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 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.h340 const MacroDefinition &MD, SourceRange Range, in MacroExpands()
362 SourceRange Range) { in Defined()
381 virtual void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) { in SourceRangeSkipped()
394 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If()
404 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
428 virtual void Elifdef(SourceLocation Loc, SourceRange ConditionRange, in Elifdef()
452 virtual void Elifndef(SourceLocation Loc, SourceRange ConditionRange, in Elifndef()
669 SourceRange Range, const MacroArgs *Args) override { in MacroExpands()
688 SourceRange Range) override { in Defined()
693 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.cpp18 using Ranges = llvm::SmallVectorImpl<SourceRange>;
38 template <class NodeType> inline SourceRange getRange(const NodeType *Node) { in getRange()
41 template <> inline SourceRange getRange(const AttributedStmt *S) { in getRange()
65 inline bool fullyContains(SourceRange Larger, SourceRange Smaller, in fullyContains()
112 void addRange(SourceRange R) { in addRange()
184 SourceRange BugRange = Location.asRange(); in isSuppressed()
188 [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);
174 SMRange SourceRange);
179 SMRange SourceRange);
216 bool MIRParserImpl::error(const SMDiagnostic &Error, SMRange SourceRange) { in error() argument
218 reportDiagnostic(diagFromMIStringDiag(Error, SourceRange)); in error()
446 return error(Error, ArgRegPair.Reg.SourceRange); in initializeCallSiteInfo()
539 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction()
569 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction()
624 return error(VReg.ID.SourceRange.Start, in parseRegisterInfo()
641 VReg.Class.SourceRange.Start, in parseRegisterInfo()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h213 class SourceRange {
218 SourceRange() = default;
219 SourceRange(SourceLocation loc) : B(loc), E(loc) {}
220 SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {}
231 bool operator==(const SourceRange &X) const {
235 bool operator!=(const SourceRange &X) const {
240 bool fullyContains(const SourceRange &other) const {
257 SourceRange Range;
262 CharSourceRange(SourceRange R, bool ITR) : Range(R), IsTokenRange(ITR) {}
264 static CharSourceRange getTokenRange(SourceRange R) {
[all …]
H A DAttributeCommonInfo.h74 SourceRange AttrRange;
141 const IdentifierInfo *ScopeName, SourceRange AttrRange, in AttributeCommonInfo()
154 const IdentifierInfo *ScopeName, SourceRange AttrRange, in AttributeCommonInfo()
161 AttributeCommonInfo(const IdentifierInfo *AttrName, SourceRange AttrRange, in AttributeCommonInfo()
166 AttributeCommonInfo(SourceRange AttrRange, Kind K, Form FormUsed) in AttributeCommonInfo()
182 SourceRange getRange() const { return AttrRange; } in getRange()
183 void setRange(SourceRange R) { AttrRange = R; } in setRange()
/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/Rewrite/Core/
H A DRewriter.h88 int getRangeSize(SourceRange Range,
105 std::string getRewrittenText(SourceRange Range) const { in getRewrittenText()
151 bool RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) {
171 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText()
178 bool ReplaceText(SourceRange range, SourceRange replacementRange);
185 bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) { in IncreaseIndentation()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessingRecord.cpp46 SourceRange Range) in InclusionDirective()
60 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange()
137 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow()
168 SourceRange Range) const { in findLocalPreprocessedEntitiesInRange()
180 template <SourceLocation (SourceRange::*getRangeLoc)() const>
203 SourceRange Range = PPE->getSourceRange(); in getLoc()
247 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
307 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in addPreprocessedEntity()
377 PreprocessedEntity(PreprocessedEntity::InvalidKind, SourceRange()); in getLoadedPreprocessedEntity()
389 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.cpp397 void mangleAddressSpaceType(QualType T, Qualifiers Quals, SourceRange Range);
398 void mangleType(QualType T, SourceRange Range,
436 void mangleFunctionArgumentType(QualType T, SourceRange Range);
446 SourceRange Range);
456 void mangleCallingConvention(CallingConv CC, SourceRange Range);
457 void mangleCallingConvention(const FunctionType *T, SourceRange Range);
473 SourceRange Range);
475 SourceRange Range);
653 SourceRange SR = VD->getSourceRange(); in mangleVariableEncoding()
727 mangleType(TemplateArgType, SourceRange(), QMM_Drop); in mangleMemberDataPointer()
[all …]
H A DTypeLoc.cpp42 class TypeLocRanger : public TypeLocVisitor<TypeLocRanger, SourceRange> {
46 SourceRange Visit##CLASS##TypeLoc(CLASS##TypeLoc TyLoc) { \
54 SourceRange TypeLoc::getLocalSourceRangeImpl(TypeLoc TL) { in getLocalSourceRangeImpl()
55 if (TL.isNull()) return SourceRange(); in getLocalSourceRangeImpl()
323 SourceRange TypeOfExprTypeLoc::getLocalSourceRange() const { in getLocalSourceRange()
325 return SourceRange(getTypeofLoc(), getRParenLoc()); in getLocalSourceRange()
327 return SourceRange(getTypeofLoc(), in getLocalSourceRange()
509 SourceRange AttributedTypeLoc::getLocalSourceRange() const { in getLocalSourceRange()
519 return getAttr() ? getAttr()->getRange() : SourceRange(); in getLocalSourceRange()
522 SourceRange CountAttributedTypeLoc::getLocalSourceRange() const { in getLocalSourceRange()
[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.h56 SourceRange VersionRange;
219 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
234 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
255 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
271 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
289 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
302 ParsedAttr(IdentifierInfo *attrName, SourceRange attrRange, in ParsedAttr()
752 ParsedAttr *create(IdentifierInfo *attrName, SourceRange attrRange,
765 ParsedAttr *create(IdentifierInfo *attrName, SourceRange attrRange, in create()
781 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()
183 SourceRange R);
218 void SetInvalid(SourceRange R) { in SetInvalid()
231 Range = SourceRange(); in clear()
426 SourceRange Range;
429 SourceRange TSWRange;
436 SourceRange TypeofParensRange;
571 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/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()

1234567891011