/external/clang/lib/ARCMigrate/ |
D | Internals.h | 32 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 …]
|
D | TransformActions.cpp | 47 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 …]
|
/external/clang/include/clang/AST/ |
D | TypeLoc.h | 127 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange() 128 return SourceRange(getBeginLoc(), getEndLoc()); in getSourceRange() 134 SourceRange getLocalSourceRange() const { in getLocalSourceRange() 211 static SourceRange getLocalSourceRangeImpl(TypeLoc TL); 249 SourceRange getLocalSourceRange() const { in getLocalSourceRange() 250 return SourceRange(); in getLocalSourceRange() 499 SourceRange getLocalSourceRange() const { in getLocalSourceRange() 500 return SourceRange(getNameLoc(), getNameLoc()); in getLocalSourceRange() 554 SourceRange getLocalSourceRange() const { in getLocalSourceRange() 555 return SourceRange(getBuiltinLoc(), getBuiltinLoc()); in getLocalSourceRange() [all …]
|
D | Comment.h | 59 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 …]
|
D | Attr.h | 46 SourceRange Range; 78 Attr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in Attr() 94 SourceRange getRange() const { return Range; } in getRange() 95 void setRange(SourceRange R) { Range = R; } in setRange() 123 InheritableAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in InheritableAttr() 138 InheritableParamAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in InheritableParamAttr()
|
D | RawCommentList.h | 43 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()
|
/external/clang/include/clang/Lex/ |
D | PreprocessingRecord.h | 79 SourceRange Range; 82 PreprocessedEntity(EntityKind Kind, SourceRange Range) in PreprocessedEntity() 93 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange() 125 PreprocessingDirective(EntityKind Kind, SourceRange Range) in PreprocessingDirective() 142 SourceRange Range) in MacroDefinitionRecord() 164 MacroExpansion(IdentifierInfo *BuiltinName, SourceRange Range) in MacroExpansion() 168 MacroExpansion(MacroDefinitionRecord *Definition, SourceRange Range) in MacroExpansion() 236 const FileEntry *File, SourceRange Range); 277 findPreprocessedEntitiesInRange(SourceRange Range) = 0; 308 std::vector<SourceRange> SkippedRanges; [all …]
|
D | PPCallbacks.h | 243 const MacroDefinition &MD, SourceRange Range, in MacroExpands() 261 SourceRange Range) { in Defined() 267 virtual void SourceRangeSkipped(SourceRange Range) { in SourceRangeSkipped() 280 virtual void If(SourceLocation Loc, SourceRange ConditionRange, in If() 290 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif() 439 SourceRange Range, const MacroArgs *Args) override { in MacroExpands() 456 SourceRange Range) override { in Defined() 461 void SourceRangeSkipped(SourceRange Range) override { in SourceRangeSkipped() 467 void If(SourceLocation Loc, SourceRange ConditionRange, in If() 474 void Elif(SourceLocation Loc, SourceRange ConditionRange, in Elif()
|
/external/clang/include/clang/ASTMatchers/Dynamic/ |
D | Diagnostics.h | 37 struct SourceRange { struct 46 SourceRange Range; argument 107 SourceRange MatcherRange); 111 SourceRange MatcherRange, unsigned ArgNumber); 140 ArgStream addError(SourceRange Range, ErrorType Error); 145 SourceRange Range; 153 SourceRange Range; 175 ArgStream pushContextFrame(ContextType Type, SourceRange Range);
|
/external/clang/unittests/Lex/ |
D | PPConditionalDirectiveRecordTest.cpp | 121 SourceRange(toks[0].getLocation(), toks[1].getLocation()))); in TEST_F() 123 SourceRange(toks[0].getLocation(), toks[2].getLocation()))); in TEST_F() 125 SourceRange(toks[3].getLocation(), toks[4].getLocation()))); in TEST_F() 127 SourceRange(toks[1].getLocation(), toks[5].getLocation()))); in TEST_F() 129 SourceRange(toks[2].getLocation(), toks[6].getLocation()))); in TEST_F() 131 SourceRange(toks[2].getLocation(), toks[5].getLocation()))); in TEST_F() 133 SourceRange(toks[0].getLocation(), toks[6].getLocation()))); in TEST_F() 135 SourceRange(toks[2].getLocation(), toks[8].getLocation()))); in TEST_F() 137 SourceRange(toks[0].getLocation(), toks[9].getLocation()))); in TEST_F()
|
/external/llvm/lib/CodeGen/MIRParser/ |
D | MIRParser.cpp | 77 bool error(const SMDiagnostic &Error, SMRange SourceRange); 141 SMRange SourceRange); 146 SMRange SourceRange); 180 bool MIRParserImpl::error(const SMDiagnostic &Error, SMRange SourceRange) { in error() argument 182 reportDiagnostic(diagFromMIStringDiag(Error, SourceRange)); in error() 303 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction() 324 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction() 352 return error(VReg.Class.SourceRange.Start, in initializeRegisterInfo() 358 return error(VReg.ID.SourceRange.Start, in initializeRegisterInfo() 366 return error(Error, VReg.PreferredRegister.SourceRange); in initializeRegisterInfo() [all …]
|
/external/clang/include/clang/Basic/ |
D | SourceLocation.h | 193 class SourceRange { 197 SourceRange(): B(SourceLocation()), E(SourceLocation()) {} in SourceRange() function 198 SourceRange(SourceLocation loc) : B(loc), E(loc) {} in SourceRange() function 199 SourceRange(SourceLocation begin, SourceLocation end) : B(begin), E(end) {} in SourceRange() function 210 bool operator==(const SourceRange &X) const { 214 bool operator!=(const SourceRange &X) const { 227 SourceRange Range; 231 CharSourceRange(SourceRange R, bool ITR) : Range(R), IsTokenRange(ITR) {} in CharSourceRange() 233 static CharSourceRange getTokenRange(SourceRange R) { in getTokenRange() 237 static CharSourceRange getCharRange(SourceRange R) { in getCharRange() [all …]
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 75 int getRangeSize(SourceRange Range, 86 std::string getRewrittenText(SourceRange Range) const; 130 bool RemoveText(SourceRange range, RewriteOptions opts = RewriteOptions()) { 143 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText() 150 bool ReplaceText(SourceRange range, SourceRange replacementRange); 157 bool IncreaseIndentation(SourceRange range, SourceLocation parentIndent) { in IncreaseIndentation()
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 176 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/ |
D | PreprocessingRecord.cpp | 30 SourceRange Range) in InclusionDirective() 49 PreprocessingRecord::getPreprocessedEntitiesInRange(SourceRange Range) { in getPreprocessedEntitiesInRange() 127 PreprocessingRecord::getPreprocessedEntitiesInRangeSlow(SourceRange Range) { in getPreprocessedEntitiesInRangeSlow() 158 SourceRange Range) const { in findLocalPreprocessedEntitiesInRange() 170 template <SourceLocation (SourceRange::*getRangeLoc)() const> 193 SourceRange Range = PPE->getSourceRange(); in getLoc() 240 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity() 301 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in addPreprocessedEntity() 354 PreprocessedEntity(PreprocessedEntity::InvalidKind, SourceRange()); in getLoadedPreprocessedEntity() 371 SourceRange Range) { in addMacroExpansion() [all …]
|
/external/clang/include/clang/Sema/ |
D | AttributeList.h | 43 SourceRange VersionRange; 93 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() 588 AttributeList *create(IdentifierInfo *attrName, SourceRange attrRange, [all …]
|
D | DeclSpec.h | 64 SourceRange Range; 68 SourceRange getRange() const { return Range; } in getRange() 69 void setRange(SourceRange R) { Range = R; } in setRange() 164 SourceRange R); 199 void SetInvalid(SourceRange R) { in SetInvalid() 212 Range = SourceRange(); in clear() 374 SourceRange Range; 383 SourceRange TypeofParensRange; 492 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange() 507 SourceRange getTypeofParensRange() const { return TypeofParensRange; } in getTypeofParensRange() [all …]
|
/external/clang/unittests/AST/ |
D | SourceLocationTest.cpp | 63 SourceRange getRange(const LabelStmt &Node) override { in getRange() 114 SourceRange getRange(const MemberExpr &Node) override { in getRange() 204 SourceRange getRange(const TypeLoc &Node) override { in getRange() 208 return SourceRange(T.getLAngleLoc(), T.getRAngleLoc()); in getRange() 229 SourceRange getRange(const TypeLoc &Node) override { in getRange() 233 return SourceRange(T.getLParenLoc(), T.getRParenLoc()); in getRange() 248 TEST(CXXFunctionalCastExpr, SourceRange) { in TEST() argument 258 TEST(CXXConstructExpr, SourceRange) { in TEST() argument 268 TEST(CXXTemporaryObjectExpr, SourceRange) { in TEST() argument 277 TEST(CXXUnresolvedConstructExpr, SourceRange) { in TEST() argument [all …]
|
/external/clang/include/clang/Edit/ |
D | Commit.h | 89 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/AST/ |
D | MicrosoftMangle.cpp | 266 void mangleType(QualType T, SourceRange Range, 292 void mangleArgumentType(QualType T, SourceRange Range); 299 SourceRange Range); 464 SourceRange SR = VD->getSourceRange(); in mangleVariableEncoding() 1197 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArg() 1424 SourceRange Range) { in mangleArgumentType() 1474 void MicrosoftCXXNameMangler::mangleType(QualType T, SourceRange Range, in mangleType() 1539 SourceRange Range) { in mangleType() 1721 SourceRange) { in mangleType() argument 1734 Qualifiers, SourceRange) { in mangleType() argument [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | ReachableCode.h | 54 SourceRange ConditionVal, 55 SourceRange R1, 56 SourceRange R2) = 0;
|
/external/clang/tools/libclang/ |
D | CXCursor.h | 54 SourceRange RegionOfInterest = SourceRange(), 58 SourceRange RegionOfInterest = SourceRange()); 141 CXCursor MakePreprocessingDirectiveCursor(SourceRange Range, 145 SourceRange getCursorPreprocessingDirective(CXCursor C); 194 SourceRange getSourceRange() const;
|
D | CXSourceLocation.h | 60 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/ |
D | DereferenceChecker.cpp | 46 SmallVectorImpl<SourceRange> &Ranges, 55 SmallVectorImpl<SourceRange> &Ranges, in AddDerefSource() 78 Ranges.push_back(SourceRange(L, L)); in AddDerefSource() 86 Ranges.push_back(SourceRange(L, L)); in AddDerefSource() 107 SmallVector<SourceRange, 2> Ranges; in reportBug() 173 for (SmallVectorImpl<SourceRange>::iterator in reportBug()
|
/external/clang/bindings/python/tests/cindex/ |
D | test_location.py | 4 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)
|