Home
last modified time | relevance | path

Searched refs:getBegin (Results 1 – 25 of 125) sorted by relevance

12345

/external/clang/lib/AST/
DRawCommentList.cpp71 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
94 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(Range.getBegin()); in getBeginLine()
117 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
147 Range.getBegin(), in extractBriefText()
168 getSourceRange().getBegin(), in parse()
214 Comments.back()->getSourceRange().getBegin(), in addComment()
215 RC.getSourceRange().getBegin())) { in addComment()
224 RC.getSourceRange().getBegin())) in addComment()
254 SourceRange MergedRange(C1.getSourceRange().getBegin(), in addComment()
DMicrosoftMangle.cpp1124 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1339 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1474 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1484 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1541 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1550 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1558 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1566 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1597 Diags.Report(Range.getBegin(), DiagID) in mangleType()
1606 Diags.Report(Range.getBegin(), DiagID) in mangleType()
[all …]
DNestedNameSpecifier.cpp354 return SourceRange(First.getLocalSourceRange().getBegin(), in getSourceRange()
575 SaveSourceLocation(R.getBegin(), Buffer, BufferSize, BufferCapacity); in MakeTrivial()
582 R.getBegin()); in MakeTrivial()
593 SaveSourceLocation(Stack.empty()? R.getEnd() : R.getBegin(), in MakeTrivial()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp193 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToSubscriptGetCommon()
194 ArgRange.getBegin()), in rewriteToSubscriptGetCommon()
196 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGetCommon()
242 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToArraySubscriptSet()
243 Arg0Range.getBegin()), in rewriteToArraySubscriptSet()
245 commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet()
246 Arg1Range.getBegin()), in rewriteToArraySubscriptSet()
248 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet()
250 commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet()
251 Arg1Range.getBegin()), in rewriteToArraySubscriptSet()
[all …]
DCommit.cpp77 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
94 addRemove(range.getBegin(), Offs, Len); in remove()
100 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap()
117 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
122 addRemove(range.getBegin(), Offs, Len); in replace()
123 addInsert(range.getBegin(), Offs, text, false); in replace()
153 addRemove(range.getBegin(), in replaceWithInner()
302 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange()
304 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange()
311 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp72 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID()
131 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
137 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow()
163 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
165 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange()
242 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
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()
[all …]
/external/clang/lib/Sema/
DSemaStmtAttr.cpp30 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) in handleFallThroughAttr()
41 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); in handleFallThroughAttr()
61 S.Diag(A.getRange().getBegin(), diag::err_attribute_invalid_on_stmt) in ProcessStmtAttribute()
78 return ActOnAttributedStmt(Range.getBegin(), Attrs, S); in ProcessStmtAttributes()
DSemaCast.cpp330 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast()
372 S.Diag(range.getBegin(), msg) in tryDiagnoseOverloadedCast()
395 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast()
558 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast()
567 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast()
572 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
587 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast()
593 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast()
603 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast()
608 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
[all …]
DSemaExprObjC.cpp443 SR.getBegin(), LookupOrdinaryName); in BuildObjCBoxedExpr()
454 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr()
458 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr()
497 if (!validateBoxingMethod(*this, SR.getBegin(), NSStringDecl, in BuildObjCBoxedExpr()
540 BoxingMethod = getNSNumberFactoryMethod(*this, SR.getBegin(), ValueType); in BuildObjCBoxedExpr()
545 Diag(SR.getBegin(), diag::err_objc_incomplete_boxed_expression_type) in BuildObjCBoxedExpr()
550 BoxingMethod = getNSNumberFactoryMethod(*this, SR.getBegin(), in BuildObjCBoxedExpr()
556 Diag(SR.getBegin(), diag::err_objc_illegal_boxed_expression_type) in BuildObjCBoxedExpr()
619 SR.getBegin(), in BuildObjCArrayLiteral()
630 Diag(SR.getBegin(), diag::err_undeclared_nsarray); in BuildObjCArrayLiteral()
[all …]
DSemaLambda.cpp33 IntroducerRange.getBegin(), in createLambdaClosureType()
68 = IntroducerRange.getBegin().getRawEncoding(); in startLambdaDefinition()
74 IntroducerRange.getBegin(), in startLambdaDefinition()
521 = Intro.Default == LCD_None? Intro.Range.getBegin() : Intro.DefaultLoc; in ActOnStartOfLambdaDefinition()
714 SourceLocation Loc = IntroducerRange.getBegin(); in addFunctionPointerConversion()
787 SourceLocation Loc = IntroducerRange.getBegin(); in addBlockPointerConversion()
/external/clang/lib/Rewrite/Core/
DRewriter.cpp126 if (!isRewritable(Range.getBegin()) || in getRangeSize()
132 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize()
169 if (!isRewritable(Range.getBegin()) || in getRewrittenText()
175 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText()
187 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText()
314 if (!isRewritable(range.getBegin())) return true; in ReplaceText()
317 SourceLocation start = range.getBegin(); in ReplaceText()
321 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText()
356 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation()
363 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
/external/clang/lib/Rewrite/Frontend/
DFixItRewriter.cpp69 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
150 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
157 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
160 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
/external/clang/include/clang/Rewrite/Core/
DRewriter.h223 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
228 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
241 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
DHTMLRewrite.h42 HighlightRange(R, Range.getBegin(), Range.getEnd(), StartTag, EndTag); in HighlightRange()
/external/clang/lib/ARCMigrate/
DTransformActions.cpp69 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange()
325 insert(range.getBegin(), text); in replace()
409 return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd()); in canRemoveRange()
456 commitInsert(E->getSourceRange().getBegin(), getARCMTMacroName()); in commitRemoveStmt()
470 if (range.getBegin() != replacementRange.getBegin()) in commitReplace()
471 addRemoval(CharSourceRange::getCharRange(range.getBegin(), in commitReplace()
472 replacementRange.getBegin())); in commitReplace()
DPlistReporter.cpp71 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange()
113 AddFID(FM, Fids, SM, RI->getBegin()); in writeARCDiagsToPlist()
DTransUnusedInitDelegate.cpp59 Pass.TA.insert(ExprRange.getBegin(), "if (!(self = "); in VisitObjCMessageExpr()
/external/clang/include/clang/Sema/
DInitialization.h437 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast()
438 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast()
448 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast()
456 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast()
457 TypeRange.getBegin(), TypeRange.getEnd()); in CreateFunctionalCast()
/external/clang/include/clang/AST/
DRawCommentList.h168 return SM.isBeforeInTranslationUnit(LHS.getSourceRange().getBegin(), in operator()
169 RHS.getSourceRange().getBegin()); in operator()
DNestedNameSpecifier.h264 return getSourceRange().getBegin(); in getBeginLoc()
276 return getLocalSourceRange().getBegin(); in getLocalBeginLoc()
/external/clang/include/clang/Basic/
DSourceLocation.h200 SourceLocation getBegin() const { return B; } in getBegin() function
253 SourceLocation getBegin() const { return Range.getBegin(); } in getBegin() function
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp101 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
108 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
111 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
327 SourceLocation Begin = I->getBegin(), End = I->getEnd(); in mapDiagnosticRanges()
/external/clang/lib/Tooling/
DRefactoring.cpp106 SourceLocation SpellingBegin = Sources.getSpellingLoc(Range.getBegin()); in getRangeSize()
120 setFromSourceLocation(Sources, Sources.getSpellingLoc(Range.getBegin()), in setFromSourceRange()
/external/clang/unittests/Lex/
DLexerTest.cpp122 EXPECT_EQ(Loc, macroRange.getBegin()); in TEST_F()
138 SourceRange(macroRange.getBegin(), in TEST_F()
/external/clang/lib/StaticAnalyzer/Core/
DPlistDiagnostics.cpp140 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange()
188 SourceLocation StartEdge = I->getStart().asRange().getBegin(); in ReportControlFlow()
192 SourceLocation EndEdge = I->getEnd().asRange().getBegin(); in ReportControlFlow()
386 AddFID(FM, Fids, SM, I->getBegin()); in FlushDiagnosticsImpl()

12345