/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 99 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToSubscriptGet() 100 ArgRange.getBegin()), in rewriteToSubscriptGet() 102 commit.replaceWithInner(SourceRange(ArgRange.getBegin(), MsgRange.getEnd()), in rewriteToSubscriptGet() 122 commit.replaceWithInner(CharSourceRange::getCharRange(MsgRange.getBegin(), in rewriteToArraySubscriptSet() 123 Arg0Range.getBegin()), in rewriteToArraySubscriptSet() 125 commit.replaceWithInner(CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 126 Arg1Range.getBegin()), in rewriteToArraySubscriptSet() 128 commit.replaceWithInner(SourceRange(Arg1Range.getBegin(), MsgRange.getEnd()), in rewriteToArraySubscriptSet() 130 commit.insertWrap("[", CharSourceRange::getCharRange(Arg0Range.getBegin(), in rewriteToArraySubscriptSet() 131 Arg1Range.getBegin()), in rewriteToArraySubscriptSet() [all …]
|
D | Commit.cpp | 77 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/Sema/ |
D | SemaCast.cpp | 326 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast() 368 S.Diag(range.getBegin(), msg) in tryDiagnoseOverloadedCast() 391 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast() 554 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast() 563 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast() 568 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() 583 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast() 589 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast() 599 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast() 604 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() [all …]
|
D | SemaStmtAttr.cpp | 30 S.Diag(A.getRange().getBegin(), diag::warn_attribute_invalid_on_stmt) << in ProcessStmtAttribute() 47 return ActOnAttributedStmt(Range.getBegin(), Attrs, S); in ProcessStmtAttributes()
|
D | SemaExprObjC.cpp | 420 SR.getBegin(), LookupOrdinaryName); in BuildObjCBoxedExpr() 430 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr() 434 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr() 511 BoxingMethod = getNSNumberFactoryMethod(*this, SR.getBegin(), ValueType); in BuildObjCBoxedExpr() 516 Diag(SR.getBegin(), diag::err_objc_illegal_boxed_expression_type) in BuildObjCBoxedExpr() 569 SR.getBegin(), in BuildObjCArrayLiteral() 580 Diag(SR.getBegin(), diag::err_undeclared_nsarray); in BuildObjCArrayLiteral() 630 Diag(SR.getBegin(), diag::err_undeclared_arraywithobjects) << Sel; in BuildObjCArrayLiteral() 637 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCArrayLiteral() 650 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCArrayLiteral() [all …]
|
D | SemaLambda.cpp | 32 IntroducerRange.getBegin(), in createLambdaClosureType() 69 = IntroducerRange.getBegin().getRawEncoding(); in startLambdaDefinition() 75 IntroducerRange.getBegin(), in startLambdaDefinition() 294 = Intro.Default == LCD_None? Intro.Range.getBegin() : Intro.DefaultLoc; in ActOnStartOfLambdaDefinition() 477 SourceLocation Loc = IntroducerRange.getBegin(); in addFunctionPointerConversion() 549 SourceLocation Loc = IntroducerRange.getBegin(); in addBlockPointerConversion() 666 Diag(IntroducerRange.getBegin(), in ActOnLambdaExpr()
|
/external/clang/lib/Rewrite/ |
D | Rewriter.cpp | 121 if (!isRewritable(Range.getBegin()) || in getRangeSize() 127 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 164 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 170 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 182 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText() 309 if (!isRewritable(range.getBegin())) return true; in ReplaceText() 312 SourceLocation start = range.getBegin(); in ReplaceText() 316 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText() 351 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation() 358 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
|
D | FixItRewriter.cpp | 69 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/lib/Lex/ |
D | PreprocessingRecord.cpp | 77 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID() 132 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 138 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow() 164 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 166 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange() 243 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity() 250 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() 255 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity() 264 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity() 284 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity() [all …]
|
/external/clang/include/clang/Rewrite/ |
D | Rewriter.h | 219 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts); 224 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts); 237 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
|
D | HTMLRewrite.h | 42 HighlightRange(R, Range.getBegin(), Range.getEnd(), StartTag, EndTag); in HighlightRange()
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 160 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits() 167 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits() 170 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits() 342 SourceLocation Start = I->getBegin(), End = I->getEnd(); in emitMacroExpansionsAndCarets()
|
D | TextDiagnostic.cpp | 756 SourceLocation B = SM.getExpansionLoc(RI->getBegin()); in emitDiagnosticLoc() 985 SourceLocation Begin = SM.getExpansionLoc(R.getBegin()); in highlightRange() 1079 = SM.getDecomposedExpansionLoc(I->RemoveRange.getBegin()); in buildFixItInsertionLine() 1131 I->RemoveRange.getBegin().isMacroID() || in emitParseableFixits() 1138 SourceLocation BLoc = I->RemoveRange.getBegin(); in emitParseableFixits()
|
/external/clang/lib/ARCMigrate/ |
D | TransformActions.cpp | 68 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange() 324 insert(range.getBegin(), text); in replace() 408 return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd()); in canRemoveRange() 455 commitInsert(E->getSourceRange().getBegin(), getARCMTMacroName()); in commitRemoveStmt() 469 if (range.getBegin() != replacementRange.getBegin()) in commitReplace() 470 addRemoval(CharSourceRange::getCharRange(range.getBegin(), in commitReplace() 471 replacementRange.getBegin())); in commitReplace()
|
D | PlistReporter.cpp | 71 EmitLocation(o, SM, LangOpts, R.getBegin(), FM, indent+1); in EmitRange() 113 AddFID(FM, Fids, SM, RI->getBegin()); in writeARCDiagsToPlist()
|
D | TransUnusedInitDelegate.cpp | 58 Pass.TA.insert(ExprRange.getBegin(), "if (!(self = "); in VisitObjCMessageExpr()
|
D | TransRetainReleaseDealloc.cpp | 226 if (SM.isMacroArgExpansion(RecRange.getBegin())) in checkForGCDOrXPC() 227 RecRange.setBegin(SM.getImmediateSpellingLoc(RecRange.getBegin())); in checkForGCDOrXPC()
|
/external/clang/include/clang/Sema/ |
D | Initialization.h | 421 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast() 422 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast() 432 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast() 440 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast() 441 TypeRange.getBegin(), TypeRange.getEnd()); in CreateFunctionalCast()
|
D | DeclSpec.h | 71 SourceLocation getBeginLoc() const { return Range.getBegin(); } in getBeginLoc() 179 if (Range.getBegin().isInvalid()) in SetInvalid() 180 Range.setBegin(R.getBegin()); in SetInvalid() 452 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } in getLocStart() 1548 SourceLocation getLocStart() const LLVM_READONLY { return Range.getBegin(); } in getLocStart() 1568 if (Range.getBegin().isInvalid()) in ExtendWithDeclSpec() 1569 Range.setBegin(SR.getBegin()); in ExtendWithDeclSpec()
|
/external/clang/include/clang/Basic/ |
D | SourceLocation.h | 193 SourceLocation getBegin() const { return B; } in getBegin() function 251 SourceLocation getBegin() const { return Range.getBegin(); } in getBegin() function
|
/external/clang/lib/AST/ |
D | NestedNameSpecifier.cpp | 353 return SourceRange(First.getLocalSourceRange().getBegin(), in getSourceRange() 574 SaveSourceLocation(R.getBegin(), Buffer, BufferSize, BufferCapacity); in MakeTrivial() 581 R.getBegin()); in MakeTrivial() 592 SaveSourceLocation(Stack.empty()? R.getEnd() : R.getBegin(), in MakeTrivial()
|
D | Stmt.cpp | 201 return static_cast<const S*>(stmt)->getSourceRange().getBegin(); in getLocStartImpl() 699 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() 730 SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() 757 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable() 791 SubExprs[VAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(), in setConditionVariable()
|
/external/clang/include/clang/AST/ |
D | NestedNameSpecifier.h | 265 return getSourceRange().getBegin(); in getBeginLoc() 277 return getLocalSourceRange().getBegin(); in getLocalBeginLoc()
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 112 EXPECT_EQ(Loc, macroRange.getBegin()); in TEST_F() 128 SourceRange(macroRange.getBegin(), in TEST_F()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 79 if (R1.getEnd() != R2.getBegin() && in RangeCompare() 80 SM.isBeforeInTranslationUnit(R1.getEnd(), R2.getBegin())) in RangeCompare() 82 if (R2.getEnd() != R1.getBegin() && in RangeCompare() 83 SM.isBeforeInTranslationUnit(R2.getEnd(), R1.getBegin())) in RangeCompare() 94 if (L == R.getBegin() || L == R.getEnd()) in LocationCompare() 96 if (SM.isBeforeInTranslationUnit(L, R.getBegin())) in LocationCompare() 124 R.getBegin().getRawEncoding(), in translateSourceRange() 199 FID = SM.getFileID(SM.getFileLoc(R.getBegin())); in visitPreprocessedEntitiesInRange() 218 Begin = SM.getDecomposedLoc(SM.getFileLoc(RegionOfInterest.getBegin())), in visitFileRegion() 361 SourceLocation B = MappedRange.getBegin(); in visitPreprocessedEntitiesInRegion() [all …]
|