/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 | 47 SourceRange Range; 79 Attr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in Attr() 95 SourceRange getRange() const { return Range; } in getRange() 96 void setRange(SourceRange R) { Range = R; } in setRange() 124 StmtAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in StmtAttr() 137 InheritableAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in InheritableAttr() 153 InheritableParamAttr(attr::Kind AK, SourceRange R, unsigned SpellingListIndex, in InheritableParamAttr() 170 ParameterABIAttr(attr::Kind AK, SourceRange R, in ParameterABIAttr()
|
D | ExprCXX.h | 55 SourceRange Range; 62 SourceRange getSourceRangeImpl() const LLVM_READONLY; 95 SourceRange getSourceRange() const { return Range; } in getSourceRange() 207 SourceRange AngleBrackets; // range for '<' '>' 214 SourceRange AngleBrackets) in CXXNamedCastExpr() 235 SourceRange getAngleBrackets() const LLVM_READONLY { return AngleBrackets; } in getAngleBrackets() 260 SourceRange AngleBrackets) in CXXStaticCastExpr() 273 SourceRange AngleBrackets); 296 SourceRange AngleBrackets) in CXXDynamicCastExpr() 309 SourceRange AngleBrackets); [all …]
|
/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/include/clang/Tooling/ |
D | FixIt.h | 30 StringRef getText(SourceRange Range, const ASTContext &Context); 34 inline SourceRange getSourceRange(const SourceRange &Range) { return Range; } in getSourceRange() 37 inline SourceRange getSourceRange(const SourceLocation &Loc) { in getSourceRange() 38 return SourceRange(Loc); in getSourceRange() 43 template <typename T> SourceRange getSourceRange(const T &Node) { in getSourceRange()
|
/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/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/MIRParser/ |
D | MIRParser.cpp | 90 bool error(const SMDiagnostic &Error, SMRange SourceRange); 155 SMRange SourceRange); 160 SMRange SourceRange); 194 bool MIRParserImpl::error(const SMDiagnostic &Error, SMRange SourceRange) { in error() argument 196 reportDiagnostic(diagFromMIStringDiag(Error, SourceRange)); in error() 380 return error(Error, ArgRegPair.Reg.SourceRange); in initializeCallSiteInfo() 438 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction() 462 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction() 515 return error(VReg.ID.SourceRange.Start, in parseRegisterInfo() 532 VReg.Class.SourceRange.Start, in parseRegisterInfo() [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/llvm/lib/CodeGen/MIRParser/ |
D | MIRParser.cpp | 82 bool error(const SMDiagnostic &Error, SMRange SourceRange); 140 SMRange SourceRange); 145 SMRange SourceRange); 185 bool MIRParserImpl::error(const SMDiagnostic &Error, SMRange SourceRange) { in error() argument 187 reportDiagnostic(diagFromMIStringDiag(Error, SourceRange)); in error() 314 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction() 341 diagFromBlockStringDiag(Error, YamlMF.Body.Value.SourceRange)); in initializeMachineFunction() 383 VReg.Class.SourceRange.Start, in initializeRegisterInfo() 393 return error(VReg.ID.SourceRange.Start, in initializeRegisterInfo() 400 return error(Error, VReg.PreferredRegister.SourceRange); in initializeRegisterInfo() [all …]
|
/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/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/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; 115 SourceRange AttrRange; 237 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList() 252 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList() 275 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList() 294 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList() 313 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList() 326 AttributeList(IdentifierInfo *attrName, SourceRange attrRange, in AttributeList() 353 SourceRange getRange() const { return AttrRange; } in getRange() 630 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() 380 SourceRange Range; 389 SourceRange TypeofParensRange; 502 SourceRange getSourceRange() const LLVM_READONLY { return Range; } in getSourceRange() 517 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 | 307 void mangleType(QualType T, SourceRange Range, 333 void mangleArgumentType(QualType T, SourceRange Range); 341 SourceRange Range); 500 SourceRange SR = VD->getSourceRange(); in mangleVariableEncoding() 1245 mangleType(T, SourceRange(), QMM_Escape); in mangleTemplateArg() 1476 SourceRange Range) { in mangleArgumentType() 1547 void MicrosoftCXXNameMangler::mangleType(QualType T, SourceRange Range, in mangleType() 1614 SourceRange Range) { in mangleType() 1775 SourceRange) { in mangleType() argument 1788 Qualifiers, SourceRange) { in mangleType() argument [all …]
|
/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/include/clang/Analysis/Analyses/ |
D | ReachableCode.h | 54 SourceRange ConditionVal, 55 SourceRange R1, 56 SourceRange R2) = 0;
|