Home
last modified time | relevance | path

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

123456789

/external/clang/lib/ARCMigrate/
DInternals.h32 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
33 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 …]
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 …]
DTransProtectedScope.cpp43 SourceRange Range;
51 CaseInfo(SwitchCase *S, SourceRange Range) in CaseInfo()
80 Cases.push_back(CaseInfo(Curr,SourceRange(Curr->getLocStart(), NextLoc))); in VisitSwitchStmt()
110 SourceRange BodyRange = BodyCtx.getTopStmt()->getSourceRange(); in ProtectedScopeFixer()
190 bool isInRange(SourceLocation Loc, SourceRange R) { in isInRange()
/external/clang/include/clang/AST/
DTypeLoc.h124 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange()
125 return SourceRange(getBeginLoc(), getEndLoc()); in getSourceRange()
131 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
194 static SourceRange getLocalSourceRangeImpl(TypeLoc TL);
231 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
232 return SourceRange(); in getLocalSourceRange()
463 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
464 return SourceRange(getNameLoc(), getNameLoc()); in getLocalSourceRange()
518 SourceRange getLocalSourceRange() const { in getLocalSourceRange()
519 return SourceRange(getBuiltinLoc(), getBuiltinLoc()); in getLocalSourceRange()
[all …]
DComment.h59 SourceRange Range;
164 void setSourceRange(SourceRange SR) { in setSourceRange()
187 Loc(LocBegin), Range(SourceRange(LocBegin, LocEnd)) { in Comment()
203 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange()
293 SourceRange Range;
296 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument()
340 SourceRange getCommandNameRange() const { in getCommandNameRange()
341 return SourceRange(getLocStart().getLocWithOffset(-1), in getCommandNameRange()
357 SourceRange getArgRange(unsigned Idx) const { in getArgRange()
368 SourceRange TagNameRange;
[all …]
DAttr.h43 SourceRange Range;
76 Attr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
89 SourceRange getRange() const { return Range; } in getRange()
90 void setRange(SourceRange R) { Range = R; } in setRange()
110 InheritableAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
125 InheritableParamAttr(attr::Kind AK, SourceRange R,
141 MSInheritanceAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex = 0)
DExprCXX.h57 SourceRange Range;
64 SourceRange getSourceRangeImpl() const LLVM_READONLY;
91 SourceRange getSourceRange() const { return Range; } in getSourceRange()
184 SourceRange AngleBrackets; // range for '<' '>'
191 SourceRange AngleBrackets) in CXXNamedCastExpr()
212 SourceRange getAngleBrackets() const LLVM_READONLY { return AngleBrackets; } in getAngleBrackets()
235 SourceRange AngleBrackets) in CXXStaticCastExpr()
248 SourceRange AngleBrackets);
266 SourceRange AngleBrackets) in CXXDynamicCastExpr()
279 SourceRange AngleBrackets);
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSPropertySourceData.h43 struct SourceRange { struct
44 SourceRange();
45 SourceRange(unsigned start, unsigned end);
55 …name, const String& value, bool important, bool disabled, bool parsedOk, const SourceRange& range); argument
67 SourceRange range;
85 typedef Vector<SourceRange> SelectorRangeList;
123 SourceRange ruleHeaderRange;
126 SourceRange ruleBodyRange;
DCSSPropertySourceData.cpp45 SourceRange::SourceRange() in SourceRange() function in WebCore::SourceRange
51 SourceRange::SourceRange(unsigned start, unsigned end) in SourceRange() function in WebCore::SourceRange
57 unsigned SourceRange::length() const in length()
62 … name, const String& value, bool important, bool disabled, bool parsedOk, const SourceRange& range) in CSSPropertySourceData()
88 , range(SourceRange(0, 0)) in CSSPropertySourceData()
125 …emptyCSSPropertySourceData) CSSPropertySourceData("", "e", false, false, false, SourceRange(0, 0)); in init()
/external/clang/unittests/Lex/
DPPConditionalDirectiveRecordTest.cpp118 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F()
120 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F()
122 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F()
124 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F()
126 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F()
128 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F()
130 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F()
132 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F()
134 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F()
/external/clang/include/clang/ASTMatchers/Dynamic/
DDiagnostics.h38 struct SourceRange { struct
47 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);
/external/clang/include/clang/Basic/
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 …]
/external/clang/include/clang/Lex/
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;
349 findLocalPreprocessedEntitiesInRange(SourceRange Range) const;
[all …]
DPPCallbacks.h223 SourceRange Range, const MacroArgs *Args) { in MacroExpands()
241 SourceRange Range) { in Defined()
247 virtual void SourceRangeSkipped(SourceRange Range) { in SourceRangeSkipped()
256 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If()
266 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
404 SourceRange Range, const MacroArgs *Args) { in MacroExpands()
421 SourceRange Range) { in Defined()
426 virtual void SourceRangeSkipped(SourceRange Range) { in SourceRangeSkipped()
432 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If()
439 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
/external/clang/lib/AST/
DMicrosoftMangle.cpp90 void mangleType(QualType T, SourceRange Range,
114 void mangleArgumentType(QualType T, SourceRange Range);
120 SourceRange Range);
886 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArg()
1033 SourceRange Range) { in mangleArgumentType()
1069 void MicrosoftCXXNameMangler::mangleType(QualType T, SourceRange Range, in mangleType()
1137 SourceRange Range) { in mangleType()
1223 SourceRange) { in mangleType() argument
1231 SourceRange) { in mangleType() argument
1243 SourceRange Range; in mangleFunctionType()
[all …]
/external/clang/unittests/AST/
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(CXXUnresolvedConstructExpr, SourceRange) { in TEST() argument
227 TEST(UsingDecl, SourceRange) { in TEST() argument
236 TEST(UnresolvedUsingValueDecl, SourceRange) { in TEST() argument
/external/clang/lib/Edit/
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 …]
/external/clang/lib/Lex/
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 …]
/external/clang/include/clang/Rewrite/Core/
DRewriter.h172 int getRangeSize(SourceRange Range,
183 std::string getRewrittenText(SourceRange Range) const;
227 bool RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) {
240 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText()
247 bool ReplaceText(SourceRange range, SourceRange replacementRange);
259 bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) { in IncreaseIndentation()
/external/clang/include/clang/Sema/
DAttributeList.h41 SourceRange VersionRange;
73 SourceRange AttrRange;
182 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
198 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
221 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
241 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
256 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList()
285 SourceRange getRange() const { return AttrRange; } in getRange()
542 AttributeList *create(IdentifierInfo *attrName, SourceRange attrRange,
557 AttributeList *create(IdentifierInfo *attrName, SourceRange attrRange, in create()
[all …]
/external/clang/include/clang/Edit/
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()
/external/clang/lib/ASTMatchers/Dynamic/
DMarshallers.h85 virtual MatcherList run(const SourceRange &NameRange,
103 const SourceRange &,
114 MatcherList run(const SourceRange &NameRange, ArrayRef<ParserValue> Args,
135 const SourceRange &NameRange,
142 MatcherList run(const SourceRange &NameRange, ArrayRef<ParserValue> Args,
204 const SourceRange &NameRange,
215 const SourceRange &NameRange,
228 const SourceRange &NameRange,
246 const SourceRange &NameRange,
/external/clang/tools/libclang/
DCXCursor.h54 SourceRange RegionOfInterest = SourceRange(),
58 SourceRange RegionOfInterest = SourceRange());
141 CXCursor MakePreprocessingDirectiveCursor(SourceRange Range,
145 SourceRange getCursorPreprocessingDirective(CXCursor C);
197 SourceRange getSourceRange() const;
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()
/external/clang/lib/StaticAnalyzer/Checkers/
DDereferenceChecker.cpp44 SmallVectorImpl<SourceRange> &Ranges,
53 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource()
76 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
84 Ranges.push_back(SourceRange(L, L)); in AddDerefSource()
105 SmallVector<SourceRange, 2> Ranges; in reportBug()
170 for (SmallVectorImpl<SourceRange>::iterator in reportBug()

123456789