Home
last modified time | relevance | path

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

123456789

/minix3/external/bsd/llvm/dist/clang/lib/ARCMigrate/
H A DInternals.h32 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
33 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const;
64 void remove(SourceRange range);
66 void replace(SourceRange range, StringRef text);
67 void replace(SourceRange range, SourceRange replacementRange);
71 void increaseIndentation(SourceRange range,
74 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
75 bool clearAllDiagnostics(SourceRange range) { in clearAllDiagnostics()
78 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { in clearDiagnostic()
83 SourceRange range) { in clearDiagnostic()
[all …]
H A DTransformActions.cpp47 SourceRange R1, R2;
98 static RangeComparison compare(SourceRange LHS, SourceRange RHS, in compare()
136 void remove(SourceRange range);
138 void replace(SourceRange range, StringRef text);
139 void replace(SourceRange range, SourceRange replacementRange);
143 void increaseIndentation(SourceRange range,
146 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
153 bool canRemoveRange(SourceRange range);
154 bool canReplaceRange(SourceRange range, SourceRange replacementRange);
159 void commitRemove(SourceRange range);
[all …]
/minix3/external/bsd/llvm/dist/clang/include/clang/AST/
H A DTypeLoc.h127 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange()
128 return SourceRange(getBeginLoc(), getEndLoc()); in getSourceRange()
134 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
197 static SourceRange getLocalSourceRangeImpl(TypeLoc TL);
234 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
235 return SourceRange(); in getLocalSourceRange()
466 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
467 return SourceRange(getNameLoc(), getNameLoc()); in getLocalSourceRange()
521 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
522 return SourceRange(getBuiltinLoc(), getBuiltinLoc()); in getLocalSourceRange()
[all …]
H A DComment.h59 SourceRange Range;
177 void setSourceRange(SourceRange SR) { in setSourceRange()
200 Loc(LocBegin), Range(SourceRange(LocBegin, LocEnd)) { in Comment()
216 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
306 SourceRange Range;
309 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument()
353 SourceRange getCommandNameRange() const { in getCommandNameRange()
354 return SourceRange(getLocStart().getLocWithOffset(-1), in getCommandNameRange()
370 SourceRange getArgRange(unsigned Idx) const { in getArgRange()
380 SourceRange TagNameRange;
[all …]
H A DAttr.h45 SourceRange Range;
77 Attr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
91 SourceRange getRange() const { return Range; } in getRange()
92 void setRange(SourceRange R) { Range = R; } in setRange()
122 InheritableAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
137 InheritableParamAttr(attr::Kind AK, SourceRange R,
H A DRawCommentList.h43 RawComment(const SourceManager &SourceMgr, SourceRange SR,
110 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
126 SourceRange Range;
147 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment()
/minix3/external/bsd/llvm/dist/clang/include/clang/ASTMatchers/Dynamic/
H A DDiagnostics.h37 struct SourceRange { struct
46 SourceRange Range; argument
107 const SourceRange &MatcherRange);
111 const SourceRange &MatcherRange, unsigned ArgNumber);
140 ArgStream addError(const SourceRange &Range, ErrorType Error);
145 SourceRange Range;
153 SourceRange Range;
175 ArgStream pushContextFrame(ContextType Type, SourceRange Range);
/minix3/external/bsd/llvm/dist/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp122 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F()
124 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F()
126 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F()
128 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F()
130 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F()
132 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F()
134 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F()
136 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F()
138 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F()
/minix3/external/bsd/llvm/dist/clang/include/clang/Lex/
H A DPreprocessingRecord.h78 SourceRange Range;
81 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity()
92 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
126 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective()
142 explicit MacroDefinition(const IdentifierInfo *Name, SourceRange Range) in MacroDefinition()
164 MacroExpansion(IdentifierInfo *BuiltinName, SourceRange Range) in MacroExpansion()
168 MacroExpansion(MacroDefinition *Definition, SourceRange Range) in MacroExpansion()
236 const FileEntry *File, SourceRange Range);
277 findPreprocessedEntitiesInRange(SourceRange Range) = 0;
308 std::vector<SourceRange> SkippedRanges;
[all …]
H A DPPCallbacks.h242 SourceRange Range, const MacroArgs *Args) { in MacroExpands()
260 SourceRange Range) { in Defined()
266 virtual void SourceRangeSkipped(SourceRange Range) { in SourceRangeSkipped()
279 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If()
289 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
438 SourceRange Range, const MacroArgs *Args) override { in MacroExpands()
455 SourceRange Range) override { in Defined()
460 void SourceRangeSkipped(SourceRange Range) override { in SourceRangeSkipped()
466 void If(SourceLocation Loc, SourceRange ConditionRange, in If()
473 void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
H A DPPConditionalDirectiveRecord.h76 bool rangeIntersectsConditionalDirective(SourceRange Range) const;
89 void If(SourceLocation Loc, SourceRange ConditionRange,
91 void Elif(SourceLocation Loc, SourceRange ConditionRange,
/minix3/external/bsd/llvm/dist/clang/include/clang/Basic/
H A DSourceLocation.h192 class SourceRange {
196 SourceRange(): B(SourceLocation()), E(SourceLocation()) {} in SourceRange() function
197 SourceRange(SourceLocation loc) : B(loc), E(loc) {} in SourceRange() function
198 SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {} in SourceRange() function
209 bool operator==(const SourceRange &X) const {
213 bool operator!=(const SourceRange &X) const {
226 SourceRange Range;
230 CharSourceRange(SourceRange R, bool ITR) : Range(R), IsTokenRange(ITR) {} in CharSourceRange()
232 static CharSourceRange getTokenRange(SourceRange R) { in getTokenRange()
236 static CharSourceRange getCharRange(SourceRange R) { in getCharRange()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/Lex/
H A DPreprocessingRecord.cpp30 SourceRange Range) in InclusionDirective()
49 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange()
129 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow()
160 SourceRange Range) const { in findLocalPreprocessedEntitiesInRange()
172 template <SourceLocation (SourceRange::*getRangeLoc)() const>
195 SourceRange Range = PPE->getSourceRange(); in getLoc()
242 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
302 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in addPreprocessedEntity()
355 PreprocessedEntity(PreprocessedEntity::InvalidKind, SourceRange()); in getLoadedPreprocessedEntity()
371 SourceRange Range) { in addMacroExpansion()
[all …]
/minix3/external/bsd/llvm/dist/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 …]
/minix3/external/bsd/llvm/dist/clang/include/clang/Rewrite/Core/
H A DRewriter.h170 int getRangeSize(SourceRange Range,
181 std::string getRewrittenText(SourceRange Range) const;
225 bool RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) {
238 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText()
245 bool ReplaceText(SourceRange range, SourceRange replacementRange);
252 bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) { in IncreaseIndentation()
/minix3/external/bsd/llvm/dist/clang/include/clang/Sema/
H A DAttributeList.h43 SourceRange VersionRange;
91 SourceRange AttrRange;
215 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
229 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
252 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
272 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
291 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
304 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
331 SourceRange getRange() const { return AttrRange; } in getRange()
580 AttributeList *create(IdentifierInfo *attrName, SourceRange attrRange,
[all …]
/minix3/external/bsd/llvm/dist/clang/include/clang/Analysis/Analyses/
H A DReachableCode.h54 SourceRange ConditionVal,
55 SourceRange R1,
56 SourceRange R2) = 0;
/minix3/external/bsd/llvm/dist/clang/include/clang/Edit/
H A DCommit.h89 bool insertFromRange(SourceLocation loc, SourceRange TokenRange,
95 bool insertWrap(StringRef before, SourceRange TokenRange, StringRef after) { in insertWrap()
98 bool remove(SourceRange TokenRange) { in remove()
101 bool replace(SourceRange TokenRange, StringRef text) { in replace()
104 bool replaceWithInner(SourceRange TokenRange, SourceRange TokenInnerRange) { in replaceWithInner()
/minix3/external/bsd/llvm/dist/clang/unittests/AST/
H A DSourceLocationTest.cpp63 virtual SourceRange getRange(const LabelStmt &Node) { in getRange()
160 virtual SourceRange getRange(const TypeLoc &Node) { in getRange()
164 return SourceRange(T.getLAngleLoc(), T.getRAngleLoc()); in getRange()
185 virtual SourceRange getRange(const TypeLoc &Node) { in getRange()
189 return SourceRange(T.getLParenLoc(), T.getRParenLoc()); in getRange()
204 TEST(CXXFunctionalCastExpr, SourceRange) { in TEST() argument
214 TEST(CXXConstructExpr, SourceRange) { in TEST() argument
224 TEST(CXXTemporaryObjectExpr, SourceRange) { in TEST() argument
233 TEST(CXXUnresolvedConstructExpr, SourceRange) { in TEST() argument
246 TEST(UsingDecl, SourceRange) { in TEST() argument
[all …]
/minix3/external/bsd/llvm/dist/clang/tools/libclang/
H A DCXSourceLocation.h60 SourceRange R) { in translateSourceRange()
70 static inline SourceRange translateCXSourceRange(CXSourceRange R) { in translateCXSourceRange()
71 return SourceRange(SourceLocation::getFromRawEncoding(R.begin_int_data), in translateCXSourceRange()
H A DCXCursor.h54 SourceRange RegionOfInterest = SourceRange(),
58 SourceRange RegionOfInterest = SourceRange());
141 CXCursor MakePreprocessingDirectiveCursor(SourceRange Range,
145 SourceRange getCursorPreprocessingDirective(CXCursor C);
197 SourceRange getSourceRange() const;
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DMicrosoftMangle.cpp232 void mangleType(QualType T, SourceRange Range,
258 void mangleArgumentType(QualType T, SourceRange Range);
264 SourceRange Range);
419 SourceRange SR = VD->getSourceRange(); in mangleVariableEncoding()
1126 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArg()
1332 SourceRange Range) { in mangleArgumentType()
1373 void MicrosoftCXXNameMangler::mangleType(QualType T, SourceRange Range, in mangleType()
1443 SourceRange Range) { in mangleType()
1529 SourceRange) { in mangleType() argument
1542 SourceRange) { in mangleType() argument
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCoverageMappingGen.h39 std::vector<SourceRange> SkippedRanges;
41 ArrayRef<SourceRange> getSkippedRanges() const { return SkippedRanges; } in getSkippedRanges()
43 void SourceRangeSkipped(SourceRange Range) override;
/minix3/external/bsd/llvm/dist/clang/bindings/python/tests/cindex/
H A Dtest_location.py4 from clang.cindex import SourceRange
89 range1 = SourceRange.from_locations(location1, location2)
90 range2 = SourceRange.from_locations(location1, location2)
94 range3 = SourceRange.from_locations(location1, location3)
/minix3/external/bsd/llvm/dist/clang/lib/Format/
H A DWhitespaceManager.h109 Change(bool CreateReplacement, const SourceRange &OriginalWhitespaceRange,
118 SourceRange OriginalWhitespaceRange;
185 void storeReplacement(const SourceRange &Range, StringRef Text);

123456789