Home
last modified time | relevance | path

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

12345678

/external/clang/include/clang/Tooling/
DFixIt.h34 inline SourceRange getSourceRange(const SourceRange &Range) { return Range; } in getSourceRange() function
37 inline SourceRange getSourceRange(const SourceLocation &Loc) { in getSourceRange() function
43 template <typename T> SourceRange getSourceRange(const T &Node) { in getSourceRange() function
44 return Node.getSourceRange(); in getSourceRange()
51 return internal::getText(internal::getSourceRange(Node), Context); in getText()
57 return FixItHint::CreateRemoval(internal::getSourceRange(Node)); in createRemoval()
64 return FixItHint::CreateReplacement(internal::getSourceRange(Destination), in createReplacement()
/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.cpp42 E->getSourceRange()); in VisitCallExpr()
57 DRE->getSourceRange()); in VisitCallExpr()
58 TA.replace(DRE->getSourceRange(), "CFBridgingRelease"); in VisitCallExpr()
63 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()
154 Pass.TA.replace(RecContainer->getSourceRange(), RecRange); in VisitObjCMessageExpr()
377 RecRange = Rec->getSourceRange(); in checkForGCDOrXPC()
440 Pass.TA.replace(bopE->getSourceRange(), bopE->getRHS()->getSourceRange()); in tryRemoving()
/external/clang/lib/AST/
DASTTypeTraits.cpp139 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange() function in clang::ast_type_traits::DynTypedNode
141 return CCI->getSourceRange(); in getSourceRange()
143 return NNSL->getSourceRange(); in getSourceRange()
145 return TL->getSourceRange(); in getSourceRange()
147 return D->getSourceRange(); in getSourceRange()
149 return S->getSourceRange(); in getSourceRange()
DCommentSema.cpp128 << Comment->getSourceRange(); in checkFunctionDeclVerbatimLine()
165 << Comment->getSourceRange(); in checkContainerDeclVerbatimLine()
215 << Comment->getSourceRange(); in checkContainerDecl()
483 << TagName << HET->getSourceRange(); in actOnHTMLEndTag()
499 << HET->getSourceRange(); in actOnHTMLEndTag()
529 << HST->getSourceRange() << HET->getSourceRange(); in actOnHTMLEndTag()
534 << HST->getSourceRange(); in actOnHTMLEndTag()
536 << HET->getSourceRange(); in actOnHTMLEndTag()
556 << HST->getTagName() << HST->getSourceRange(); in actOnFullComment()
577 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph()
[all …]
DTemplateBase.cpp435 SourceRange TemplateArgumentLoc::getSourceRange() const { in getSourceRange() function in TemplateArgumentLoc
438 return getSourceExpression()->getSourceRange(); in getSourceRange()
441 return getSourceDeclExpression()->getSourceRange(); in getSourceRange()
444 return getSourceNullPtrExpression()->getSourceRange(); in getSourceRange()
448 return TSI->getTypeLoc().getSourceRange(); in getSourceRange()
465 return getSourceIntegralExpression()->getSourceRange(); in getSourceRange()
/external/clang/lib/Analysis/
DReachableCode.cpp197 *SilenceableCondVal = E->getSourceRange(); in isConfigurationValue()
220 *SilenceableCondVal = UO->getSourceRange(); in isConfigurationValue()
519 R1 = UO->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
524 R1 = CAO->getLHS()->getSourceRange(); in GetUnreachableLoc()
525 R2 = CAO->getRHS()->getSourceRange(); in GetUnreachableLoc()
536 R1 = ME->getSourceRange(); in GetUnreachableLoc()
541 R1 = ASE->getLHS()->getSourceRange(); in GetUnreachableLoc()
542 R2 = ASE->getRHS()->getSourceRange(); in GetUnreachableLoc()
547 R1 = CSC->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
552 R1 = CE->getSubExpr()->getSourceRange(); in GetUnreachableLoc()
[all …]
/external/clang/lib/Sema/
DSemaChecking.cpp63 << call->getSourceRange(); in checkArgCount()
71 << call->getArg(1)->getSourceRange(); in checkArgCount()
85 << ValArg->getSourceRange(); in SemaBuiltinAnnotation()
94 << StrArg->getSourceRange(); in SemaBuiltinAnnotation()
128 << Ty << Arg->getSourceRange(); in SemaBuiltinOverflow()
143 << Ty << Arg->getSourceRange(); in SemaBuiltinOverflow()
174 SourceRange SR = TheCall->getSourceRange(); in SemaBuiltinMemChkCall()
190 << Call->getSourceRange(); in SemaBuiltinCallWithStaticChain()
197 << Call->getSourceRange(); in SemaBuiltinCallWithStaticChain()
205 << Call->getSourceRange(); in SemaBuiltinCallWithStaticChain()
[all …]
DSemaExpr.cpp299 SourceLocation DeclBegin = First->getSourceRange().getBegin(); in MaybeSuggestAddingStaticToDecl()
501 return E ? E->getSourceRange() : SourceRange(); in getExprRange()
568 << UO->getSubExpr()->getSourceRange()); in CheckForNullPointerDereference()
1470 << Types[i]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1483 << Types[j]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1488 << Types[i]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1523 << ControllingExpr->getSourceRange() << ControllingExpr->getType() in CreateGenericSelectionExpr()
1528 << Types[I]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr()
1542 << ControllingExpr->getSourceRange() << ControllingExpr->getType(); in CreateGenericSelectionExpr()
2625 SourceRange FromRange = From->getSourceRange(); in PerformObjectMemberConversion()
[all …]
DSemaStmtAsm.cpp51 << E->getSourceRange(); in CheckAsmLValue()
54 << E->getSourceRange(); in CheckAsmLValue()
134 << E->getSourceRange(); in checkExprMemoryConstraintCompat()
217 << OutputExpr->getSourceRange(); in ActOnGCCAsmStmt()
220 << OutputExpr->getSourceRange(); in ActOnGCCAsmStmt()
233 << OutputExpr->getSourceRange()); in ActOnGCCAsmStmt()
284 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt()
291 << Info.getConstraintStr() << InputExpr->getSourceRange()); in ActOnGCCAsmStmt()
296 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt()
312 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt()
[all …]
DSemaInit.cpp188 << Str->getSourceRange(); in CheckStringInit()
194 << Str->getSourceRange(); in CheckStringInit()
574 << ILE->getSyntacticForm()->getSourceRange(); in FillInEmptyInitForField()
779 getStructuredSubobjectInit(IL, 0, T, nullptr, 0, IL->getSourceRange()); in InitListChecker()
852 ParentIList->getSourceRange().getEnd())); in CheckImplicitInitList()
871 = ParentIList->getInit(EndIndex)->getSourceRange().getEnd(); in CheckImplicitInitList()
879 << StructuredSubobjectInitList->getSourceRange() in CheckImplicitInitList()
999 << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
1022 << initKind << IList->getInit(Index)->getSourceRange(); in CheckExplicitInitList()
1028 warnBracedScalarInit(SemaRef, Entity, IList->getSourceRange()); in CheckExplicitInitList()
[all …]
DSemaCast.cpp375 << range << src->getSourceRange(); in tryDiagnoseOverloadedCast()
392 << src->getType() << destType << opRange << src->getSourceRange(); in diagnoseBadCast()
630 << OrigSrcType << SrcExpr.get()->getSourceRange(); in CheckDynamicCast()
659 << SrcPointee.getUnqualifiedType() << SrcExpr.get()->getSourceRange(); in CheckDynamicCast()
705 << SrcPointee.getUnqualifiedType() << SrcExpr.get()->getSourceRange(); in CheckDynamicCast()
925 << oe->getQualifierLoc().getSourceRange(); in CheckStaticCast()
1723 << SrcType << DestType << SrcExpr.get()->getSourceRange(); in DiagnoseCastOfObjCSEL()
1922 << OpRange << SrcExpr.get()->getSourceRange(); in TryReinterpretCast()
2280 << OE->getQualifierLoc().getSourceRange(); in CheckCXXCStyleCast()
2329 << SrcType << DestType << SrcExpr.get()->getSourceRange(); in DiagnoseBadFunctionCast()
[all …]
DAnalysisBasedWarnings.cpp144 SourceRange DiagRange = B->getSourceRange(); in compareAlwaysTrue()
154 SourceRange DiagRange = B->getSourceRange(); in compareBitwiseEquality()
670 Fixit1 = FixItHint::CreateRemoval(If->getSourceRange()); in CreateIfFixit()
684 << Use.getUser()->getSourceRange(); in DiagUninitUse()
693 << VD->getSourceRange(); in DiagUninitUse()
695 << IsCapturedByBlock << Use.getUser()->getSourceRange(); in DiagUninitUse()
738 Range = IS->getCond()->getSourceRange(); in DiagUninitUse()
748 Range = CO->getCond()->getSourceRange(); in DiagUninitUse()
760 Range = BO->getLHS()->getSourceRange(); in DiagUninitUse()
769 Fixit1 = FixItHint::CreateReplacement(BO->getSourceRange(), FixitStr); in DiagUninitUse()
[all …]
DSemaPseudoObject.cpp317 PseudoOpBuilder(S, refExpr->getSourceRange().getBegin()), in ObjCSubscriptOpBuilder()
345 PseudoOpBuilder(S, refExpr->getSourceRange().getBegin()), in MSPropertyOpBuilder()
348 : PseudoOpBuilder(S, refExpr->getSourceRange().getBegin()), in MSPropertyOpBuilder()
819 << RefExpr->getSourceRange(); in buildRValueOperation()
899 << LHS->getSourceRange() << RHS->getSourceRange(); in buildAssignmentOperation()
908 << LHS->getSourceRange() << RHS->getSourceRange(); in buildAssignmentOperation()
944 << op->getSourceRange(); in buildIncDecOperation()
956 << op->getSourceRange(); in buildIncDecOperation()
1128 S.CheckObjCARCConversion(Key->getSourceRange(), in CheckKeyForObjCARCConversion()
1212 RefExpr->getSourceRange(), in findAtIndexGetter()
[all …]
/external/clang/include/clang/AST/
DDeclFriend.h130 SourceRange getSourceRange() const override LLVM_READONLY { in getSourceRange() function
133 return FD->getSourceRange(); in getSourceRange()
135 return FTD->getSourceRange(); in getSourceRange()
137 return CTD->getSourceRange(); in getSourceRange()
140 return DD->getSourceRange(); in getSourceRange()
DNestedNameSpecifier.h270 SourceRange getSourceRange() const LLVM_READONLY;
283 return getSourceRange().getBegin(); in getBeginLoc()
289 return getSourceRange().getEnd(); in getEndLoc()
468 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange() function
469 return NestedNameSpecifierLoc(Representation, Buffer).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.cpp287 ranges.push_back(drCond->getSourceRange()); in checkLoopConditionForFloat()
288 ranges.push_back(drInc->getSourceRange()); in checkLoopConditionForFloat()
334 CELoc, CE->getCallee()->getSourceRange()); in checkCall_gets()
374 CELoc, CE->getCallee()->getSourceRange()); in checkCall_getpw()
416 CELoc, CE->getCallee()->getSourceRange()); in checkCall_mktemp()
498 out.str(), CELoc, strArg->getSourceRange()); in checkCall_mkstemp()
525 CELoc, CE->getCallee()->getSourceRange()); in checkCall_strcpy()
552 CELoc, CE->getCallee()->getSourceRange()); in checkCall_strcat()
624 CE->getCallee()->getSourceRange()); in checkCall_rand()
652 "instead", CELoc, CE->getCallee()->getSourceRange()); in checkCall_random()
[all …]
DPthreadLockChecker.cpp150 report->addRange(CE->getArg(0)->getSourceRange()); in AcquireLock()
212 Report->addRange(CE->getArg(0)->getSourceRange()); in ReleaseLock()
236 report->addRange(CE->getArg(0)->getSourceRange()); in ReleaseLock()
279 Report->addRange(CE->getArg(0)->getSourceRange()); in DestroyLock()
314 Report->addRange(CE->getArg(0)->getSourceRange()); in InitLock()
328 Report->addRange(CE->getArg(0)->getSourceRange()); in reportUseDestroyedBug()
DIdenticalExprChecker.cpp93 Sr[0] = RHS->getSourceRange(); in checkBitwiseOrLogicalOp()
94 Sr[1] = B2->getRHS()->getSourceRange(); in checkBitwiseOrLogicalOp()
101 Sr[0] = RHS->getSourceRange(); in checkBitwiseOrLogicalOp()
102 Sr[1] = LHS->getSourceRange(); in checkBitwiseOrLogicalOp()
142 SourceRange Sr = Cond1->getSourceRange(); in VisitIfStmt()
281 Sr[0] = C->getTrueExpr()->getSourceRange(); in VisitConditionalOperator()
282 Sr[1] = C->getFalseExpr()->getSourceRange(); in VisitConditionalOperator()
DUnixAPIChecker.cpp104 Arg->getSourceRange()); in CheckOpen()
110 CE->getArg(3)->getSourceRange()); in CheckOpen()
160 oflagsEx->getSourceRange()); in CheckOpen()
204 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce()
246 report->addRange(arg->getSourceRange()); in ReportZeroByteAllocation()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc627 string text = rewriter_.getRewrittenText(expansionRange(arg->getSourceRange())); in genParamDirectAssign()
653 string text = rewriter_.getRewrittenText(expansionRange(arg->getSourceRange())); in genParamIndirectAssign()
700 string bd = rewriter_.getRewrittenText(expansionRange(D->getSourceRange())); in VisitFunctionDecl()
702 fe_.func_range_[current_fn_] = expansionRange(D->getSourceRange()); in VisitFunctionDecl()
776 … string arg0 = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
777 … string arg1 = rewriter_.getRewrittenText(expansionRange(Call->getArg(1)->getSourceRange())); in VisitCallExpr()
789 … string arg0 = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
793 … increment_value = rewriter_.getRewrittenText(expansionRange(Call->getArg(1)->getSourceRange())); in VisitCallExpr()
811 … string arg0 = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
817 … string skb = rewriter_.getRewrittenText(expansionRange(Call->getArg(0)->getSourceRange())); in VisitCallExpr()
[all …]
/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.cpp73 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID()
193 SourceRange Range = PPE->getSourceRange(); in getLoc()
219 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity()
247 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity()
253 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity()
262 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity()
290 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity()

12345678