Home
last modified time | relevance | path

Searched refs:getSourceRange (Results 1 – 25 of 169) sorted by relevance

1234567

/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp86 commit.replaceWithInner(Msg->getSourceRange(), in rewriteObjCRedundantCallWithLiteral()
87 Msg->getArg(0)->getSourceRange()); in rewriteObjCRedundantCallWithLiteral()
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()
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()
[all …]
/external/clang/lib/ARCMigrate/
DTransGCCalls.cpp44 E->getLocStart(), E->getSourceRange()); in VisitCallExpr()
48 E->getLocStart(), E->getSourceRange()); in VisitCallExpr()
63 DRE->getSourceRange()); in VisitCallExpr()
64 TA.replace(DRE->getSourceRange(), "CFBridgingRelease"); in VisitCallExpr()
69 DRE->getSourceRange()); in VisitCallExpr()
DTransRetainReleaseDealloc.cpp76 E->getLocStart(), E->getSourceRange()); in VisitObjCMessageExpr()
124 Pass.TA.replace(E->getSourceRange(), "self"); in VisitObjCMessageExpr()
139 SourceRange RecRange = rec->getSourceRange(); in VisitObjCMessageExpr()
146 Pass.TA.replace(RecContainer->getSourceRange(), RecRange); in VisitObjCMessageExpr()
157 Pass.TA.replace(RecContainer->getSourceRange(), RecRange); in VisitObjCMessageExpr()
387 RecRange = Rec->getSourceRange(); in checkForGCDOrXPC()
450 Pass.TA.replace(bopE->getSourceRange(), bopE->getRHS()->getSourceRange()); in tryRemoving()
DTransAPIUses.cpp83 Pass.TA.reportError(err, parm->getLocStart(), parm->getSourceRange()); in VisitObjCMessageExpr()
100 Pass.TA.replace(E->getSourceRange(), getNilString(Pass.Ctx)); in VisitObjCMessageExpr()
DTransEmptyStatementsAndDealloc.cpp230 TA.remove(DeallocM->getSourceRange()); in cleanupDeallocOrFinalize()
235 TA.remove(FinalizeM->getSourceRange()); in cleanupDeallocOrFinalize()
241 TA.remove(FinalizeM->getSourceRange()); in cleanupDeallocOrFinalize()
/external/clang/lib/Analysis/
DReachableCode.cpp196 R1 = UO->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
201 R1 = CAO->getLHS()->getSourceRange(); in GetUnreachableLoc()
202 R2 = CAO->getRHS()->getSourceRange(); in GetUnreachableLoc()
213 R1 = ME->getSourceRange(); in GetUnreachableLoc()
218 R1 = ASE->getLHS()->getSourceRange(); in GetUnreachableLoc()
219 R2 = ASE->getRHS()->getSourceRange(); in GetUnreachableLoc()
224 R1 = CSC->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
229 R1 = CE->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
237 R1 = CSC->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
242 R1 = S->getSourceRange(); in GetUnreachableLoc()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp49 << E->getSourceRange(); in CheckAsmLValue()
52 << E->getSourceRange(); in CheckAsmLValue()
94 << AsmString->getSourceRange()); in ActOnGCCAsmStmt()
100 << Literal->getSourceRange()); in ActOnGCCAsmStmt()
117 << OutputExpr->getSourceRange()); in ActOnGCCAsmStmt()
132 << Literal->getSourceRange()); in ActOnGCCAsmStmt()
154 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt()
162 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt()
195 << Literal->getSourceRange()); in ActOnGCCAsmStmt()
214 << AsmString->getSourceRange(); in ActOnGCCAsmStmt()
[all …]
DSemaChecking.cpp59 << call->getSourceRange(); in checkArgCount()
67 << call->getArg(1)->getSourceRange(); in checkArgCount()
81 << ValArg->getSourceRange(); in SemaBuiltinAnnotation()
90 << StrArg->getSourceRange(); in SemaBuiltinAnnotation()
408 << TheCall->getArg(ImmArg)->getSourceRange(); in CheckAArch64BuiltinFunctionCall()
456 << l << u + l << TheCall->getArg(i)->getSourceRange(); in CheckAArch64BuiltinFunctionCall()
486 << PointerArg->getType() << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall()
505 << AA_Passing << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall()
521 << PointerArg->getType() << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall()
528 << PointerArg->getType() << PointerArg->getSourceRange(); in CheckARMBuiltinExclusiveCall()
[all …]
DSemaExpr.cpp252 SourceLocation DeclBegin = First->getSourceRange().getBegin(); in MaybeSuggestAddingStaticToDecl()
427 return E ? E->getSourceRange() : SourceRange(); in getExprRange()
481 << UO->getSubExpr()->getSourceRange()); in CheckForNullPointerDereference()
1340 << Types[i]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1353 << Types[j]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1358 << Types[i]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1394 << ControllingExpr->getSourceRange() << ControllingExpr->getType() in CreateGenericSelectionExpr()
1400 << Types[*I]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1414 << ControllingExpr->getSourceRange() << ControllingExpr->getType(); in CreateGenericSelectionExpr()
2341 SourceRange FromRange = From->getSourceRange(); in PerformObjectMemberConversion()
[all …]
DSemaInit.cpp187 << Str->getSourceRange(); in CheckStringInit()
193 << Str->getSourceRange(); in CheckStringInit()
384 << ILE->getSyntacticForm()->getSourceRange(); in FillInValueInitForField()
567 = getStructuredSubobjectInit(IL, newIndex, T, 0, 0, IL->getSourceRange()); in InitListChecker()
636 ParentIList->getSourceRange().getEnd())); in CheckImplicitInitList()
654 = ParentIList->getInit(EndIndex)->getSourceRange().getEnd(); in CheckImplicitInitList()
662 << StructuredSubobjectInitList->getSourceRange() in CheckImplicitInitList()
717 << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
740 << initKind << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
747 << IList->getSourceRange() in CheckExplicitInitList()
[all …]
DSemaCast.cpp376 << range << src->getSourceRange(); in tryDiagnoseOverloadedCast()
393 << src->getType() << destType << opRange << src->getSourceRange(); in diagnoseBadCast()
589 << OrigSrcType << SrcExpr.get()->getSourceRange(); in CheckDynamicCast()
613 << SrcPointee.getUnqualifiedType() << SrcExpr.get()->getSourceRange(); in CheckDynamicCast()
664 << SrcPointee.getUnqualifiedType() << SrcExpr.get()->getSourceRange(); in CheckDynamicCast()
884 << oe->getQualifierLoc().getSourceRange(); in CheckStaticCast()
1653 << SrcType << DestType << SrcExpr.get()->getSourceRange(); in DiagnoseCastOfObjCSEL()
1741 << OpRange << SrcExpr.get()->getSourceRange(); in TryReinterpretCast()
2131 << SrcType << DestType << SrcExpr.get()->getSourceRange(); in DiagnoseBadFunctionCast()
2178 << DestType << SrcExpr.get()->getSourceRange(); in CheckCStyleCast()
[all …]
DSemaExprCXX.cpp626 E->getSourceRange())) in CheckCXXThrowOperand()
859 ListInitialization ? Exprs[0]->getSourceRange().getEnd() : RParenLoc); in BuildCXXTypeConstructExpr()
999 << D.getSourceRange()); in ActOnCXXNew()
1002 << D.getSourceRange()); in ActOnCXXNew()
1005 << D.getSourceRange()); in ActOnCXXNew()
1051 DirectInitRange = List->getSourceRange(); in ActOnCXXNew()
1097 SourceRange TypeRange = AllocTypeInfo->getTypeLoc().getSourceRange(); in BuildCXXNew()
1149 << TypeRange << Deduce->getSourceRange()); in BuildCXXNew()
1173 << /*at end of FE*/0 << Inits[0]->getSourceRange(); in BuildCXXNew()
1231 << T << ArraySize->getSourceRange(); in BuildCXXNew()
[all …]
DSemaExprObjC.cpp57 << S->getSourceRange(); in ParseObjCStringLiteral()
110 << S->getSourceRange(); in BuildObjCStringLiteral()
284 SourceRange NR(Number->getSourceRange()); in BuildObjCNumericLiteral()
377 << Which << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
393 << 0 << OrigElement->getSourceRange() in CheckObjCCollectionLiteralElement()
546 << ValueType << ValueExpr->getSourceRange(); in BuildObjCBoxedExpr()
557 << ValueType << ValueExpr->getSourceRange(); in BuildObjCBoxedExpr()
1151 range = TSI->getTypeLoc().getSourceRange(); in EmitRelatedResultTypeNoteForReturn()
1320 if (RequireCompleteType(argExpr->getSourceRange().getBegin(), in CheckMessageArgumentTypes()
1351 << Method->getSourceRange() in CheckMessageArgumentTypes()
[all …]
DSemaPseudoObject.cpp304 PseudoOpBuilder(S, refExpr->getSourceRange().getBegin()), in ObjCSubscriptOpBuilder()
328 PseudoOpBuilder(S, refExpr->getSourceRange().getBegin()), in MSPropertyOpBuilder()
768 << RefExpr->getSourceRange(); in buildRValueOperation()
834 << LHS->getSourceRange() << RHS->getSourceRange(); in buildAssignmentOperation()
843 << LHS->getSourceRange() << RHS->getSourceRange(); in buildAssignmentOperation()
879 << op->getSourceRange(); in buildIncDecOperation()
891 << op->getSourceRange(); in buildIncDecOperation()
1063 S.CheckObjCARCConversion(Key->getSourceRange(), in CheckKeyForObjCARCConversion()
1150 RefExpr->getSourceRange(), in findAtIndexGetter()
1275 RefExpr->getSourceRange(), in findAtIndexSetter()
[all …]
/external/clang/lib/AST/
DRawCommentList.cpp173 getSourceRange().getBegin(), in parse()
219 Comments.back()->getSourceRange().getBegin(), in addComment()
220 RC.getSourceRange().getBegin())) { in addComment()
229 RC.getSourceRange().getBegin())) in addComment()
233 PrevCommentEndLoc = RC.getSourceRange().getEnd(); in addComment()
259 SourceRange MergedRange(C1.getSourceRange().getBegin(), in addComment()
260 C2.getSourceRange().getEnd()); in addComment()
DCommentSema.cpp123 << Comment->getSourceRange(); in checkFunctionDeclVerbatimLine()
160 << Comment->getSourceRange(); in checkContainerDeclVerbatimLine()
210 << Comment->getSourceRange(); in checkContainerDecl()
498 << TagName << HET->getSourceRange(); in actOnHTMLEndTag()
513 << HET->getSourceRange(); in actOnHTMLEndTag()
539 << HST->getSourceRange() << HET->getSourceRange(); in actOnHTMLEndTag()
543 << HST->getSourceRange(); in actOnHTMLEndTag()
545 << HET->getSourceRange(); in actOnHTMLEndTag()
573 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
602 << Command->getSourceRange(); in checkReturnsCommand()
[all …]
DTemplateBase.cpp413 SourceRange TemplateArgumentLoc::getSourceRange() const { in getSourceRange() function in TemplateArgumentLoc
416 return getSourceExpression()->getSourceRange(); in getSourceRange()
419 return getSourceDeclExpression()->getSourceRange(); in getSourceRange()
422 return getSourceNullPtrExpression()->getSourceRange(); in getSourceRange()
426 return TSI->getTypeLoc().getSourceRange(); in getSourceRange()
443 return getSourceIntegralExpression()->getSourceRange(); in getSourceRange()
/external/clang/lib/StaticAnalyzer/Checkers/
DStackAddrEscapeChecker.cpp60 range = CL->getSourceRange(); in genName()
65 range = ARE->getSourceRange(); in genName()
72 range = BD->getSourceRange(); in genName()
79 range = VR->getDecl()->getSourceRange(); in genName()
86 range = TOR->getExpr()->getSourceRange(); in genName()
112 report->addRange(RetE->getSourceRange()); in EmitStackError()
DCheckSecuritySyntaxOnly.cpp277 ranges.push_back(drCond->getSourceRange()); in checkLoopConditionForFloat()
278 ranges.push_back(drInc->getSourceRange()); in checkLoopConditionForFloat()
317 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_gets()
358 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_getpw()
400 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_mktemp()
473 SourceRange R = strArg->getSourceRange(); in checkCall_mkstemp()
509 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_strcpy()
537 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_strcat()
617 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_rand()
642 SourceRange R = CE->getCallee()->getSourceRange(); in checkCall_random()
[all …]
DMallocSizeofChecker.cpp230 Ranges.push_back(i->AllocCall->getCallee()->getSourceRange()); in checkASTCodeBody()
231 Ranges.push_back(SFinder.Sizeofs[0]->getSourceRange()); in checkASTCodeBody()
233 Ranges.push_back(TSI->getTypeLoc().getSourceRange()); in checkASTCodeBody()
/external/clang/include/clang/AST/
DNestedNameSpecifier.h255 SourceRange getSourceRange() const LLVM_READONLY;
268 return getSourceRange().getBegin(); in getBeginLoc()
274 return getSourceRange().getEnd(); in getEndLoc()
437 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange() function
438 return NestedNameSpecifierLoc(Representation, Buffer).getSourceRange(); in getSourceRange()
DRawCommentList.h110 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange() function
181 return SM.isBeforeInTranslationUnit(LHS.getSourceRange().getBegin(), in operator()
182 RHS.getSourceRange().getBegin()); in operator()
DDeclFriend.h135 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange() function
138 return FTD->getSourceRange(); in getSourceRange()
141 return DD->getSourceRange(); in getSourceRange()
/external/clang/lib/Tooling/
DRefactoringCallbacks.cpp27 From.getSourceRange()), Text); in replaceStmtWithText()
33 CharSourceRange::getTokenRange(To.getSourceRange()), in replaceStmtWithStmt()
45 CharSourceRange::getTokenRange(FromMatch->getSourceRange()), in run()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp72 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID()
195 SourceRange Range = PPE->getSourceRange(); in getLoc()
221 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
249 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity()
254 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity()
263 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity()
291 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity()

1234567