/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 193 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 …]
|
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/Lex/ |
D | PreprocessingRecord.cpp | 73 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID() 129 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 135 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow() 161 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 163 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange() 240 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity() 247 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() 252 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity() 261 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity() 289 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity() [all …]
|
/external/clang/lib/Sema/ |
D | SemaCast.cpp | 330 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast() 372 S.Diag(range.getBegin(), msg) in tryDiagnoseOverloadedCast() 390 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast() 595 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast() 605 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast() 612 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() 628 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast() 635 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast() 650 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast() 657 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() [all …]
|
D | SemaStmtAttr.cpp | 29 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) in handleFallThroughAttr() 39 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); in handleFallThroughAttr() 172 SourceLocation OptionLoc = LH->getRange().getBegin(); in CheckForIncompatibleAttributes() 208 S.Diag(A.getRange().getBegin(), diag::err_attribute_invalid_on_stmt) in ProcessStmtAttribute() 227 return ActOnAttributedStmt(Range.getBegin(), Attrs, S); in ProcessStmtAttributes()
|
D | SemaExprObjC.cpp | 469 SR.getBegin(), LookupOrdinaryName); in BuildObjCBoxedExpr() 480 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr() 484 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr() 521 if (!validateBoxingMethod(*this, SR.getBegin(), NSStringDecl, in BuildObjCBoxedExpr() 564 BoxingMethod = getNSNumberFactoryMethod(*this, SR.getBegin(), ValueType); in BuildObjCBoxedExpr() 569 Diag(SR.getBegin(), diag::err_objc_incomplete_boxed_expression_type) in BuildObjCBoxedExpr() 574 BoxingMethod = getNSNumberFactoryMethod(*this, SR.getBegin(), in BuildObjCBoxedExpr() 580 Diag(SR.getBegin(), diag::err_objc_illegal_boxed_expression_type) in BuildObjCBoxedExpr() 639 SR.getBegin(), in BuildObjCArrayLiteral() 650 Diag(SR.getBegin(), diag::err_undeclared_nsarray); in BuildObjCArrayLiteral() [all …]
|
D | JumpDiagnostics.cpp | 324 TS->getSourceRange().getBegin())); in BuildScopeInformation() 334 CS->getSourceRange().getBegin())); in BuildScopeInformation() 347 TS->getSourceRange().getBegin())); in BuildScopeInformation() 356 Except->getSourceRange().getBegin())); in BuildScopeInformation() 363 Finally->getSourceRange().getBegin())); in BuildScopeInformation()
|
/external/clang/lib/Rewrite/ |
D | Rewriter.cpp | 128 if (!isRewritable(Range.getBegin()) || in getRangeSize() 134 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 171 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 177 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 189 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText() 316 if (!isRewritable(range.getBegin())) return true; in ReplaceText() 319 SourceLocation start = range.getBegin(); in ReplaceText() 323 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText() 332 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation() 339 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
|
/external/clang/lib/Format/ |
D | WhitespaceManager.cpp | 24 C1.OriginalWhitespaceRange.getBegin(), in operator ()() 25 C2.OriginalWhitespaceRange.getBegin()); in operator ()() 107 SourceMgr.getFileOffset(Changes[i].OriginalWhitespaceRange.getBegin()); in calculateLineBreakInformation() 270 assert(Changes[i - 1].OriginalWhitespaceRange.getBegin() != in generateChanges() 271 C.OriginalWhitespaceRange.getBegin() && in generateChanges() 292 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement() 294 if (StringRef(SourceMgr.getCharacterData(Range.getBegin()), in storeReplacement()
|
D | Format.cpp | 679 if (First[1]->WhitespaceRange.getBegin() != in tryMergeLessLess() 701 First[i]->WhitespaceRange.getBegin() != in tryMergeTokens() 1363 SourceLocation Start = First.WhitespaceRange.getBegin(); in affectsTokenRange() 1376 Tok.WhitespaceRange.getBegin(), in affectsLeadingEmptyLines() 1377 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines() 1386 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange() 1387 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange() 1411 Tok->WhitespaceRange.getBegin() != Tok->WhitespaceRange.getEnd(); in deriveLocalStyle() 1412 bool SpacesAfter = Tok->Next->WhitespaceRange.getBegin() != in deriveLocalStyle() 1420 if (Tok->WhitespaceRange.getBegin() == Tok->WhitespaceRange.getEnd()) { in deriveLocalStyle()
|
/external/clang/lib/Frontend/Rewrite/ |
D | FixItRewriter.cpp | 68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace() 148 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic() 155 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic() 158 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
|
/external/clang/include/clang/Rewrite/Core/ |
D | Rewriter.h | 126 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts); 131 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts); 144 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/AST/ |
D | RawCommentList.cpp | 73 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment() 99 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow() 129 Range.getBegin(), in extractBriefText() 151 getSourceRange().getBegin(), in parse()
|
D | MicrosoftMangle.cpp | 1558 Diags.Report(Range.getBegin(), DiagID) in mangleType() 1803 Diags.Report(Range.getBegin(), DiagID) in mangleType() 1930 Diags.Report(Range.getBegin(), DiagID) in mangleType() 1940 Diags.Report(Range.getBegin(), DiagID) in mangleType() 1985 Diags.Report(Range.getBegin(), DiagID) in mangleType() 2028 Diags.Report(Range.getBegin(), DiagID) in mangleType() 2036 Diags.Report(Range.getBegin(), DiagID) in mangleType() 2072 Diags.Report(Range.getBegin(), DiagID) in mangleType() 2081 Diags.Report(Range.getBegin(), DiagID) in mangleType() 2091 Diags.Report(Range.getBegin(), DiagID) in mangleType() [all …]
|
D | NestedNameSpecifier.cpp | 390 return SourceRange(First.getLocalSourceRange().getBegin(), in getSourceRange() 618 SaveSourceLocation(R.getBegin(), Buffer, BufferSize, BufferCapacity); in MakeTrivial() 625 R.getBegin()); in MakeTrivial() 637 SaveSourceLocation(Stack.empty()? R.getEnd() : R.getBegin(), in MakeTrivial()
|
/external/clang/lib/ARCMigrate/ |
D | TransformActions.cpp | 69 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()
|
D | TransUnusedInitDelegate.cpp | 59 Pass.TA.insert(ExprRange.getBegin(), "if (!(self = "); in VisitObjCMessageExpr()
|
/external/clang/include/clang/Sema/ |
D | Initialization.h | 504 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast() 505 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast() 515 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast() 523 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast() 524 TypeRange.getBegin(), TypeRange.getEnd()); in CreateFunctionalCast()
|
/external/clang/include/clang/Basic/ |
D | SourceLocation.h | 200 SourceLocation getBegin() const { return B; } in getBegin() function 253 SourceLocation getBegin() const { return Range.getBegin(); } in getBegin() function
|
/external/clang/lib/Frontend/ |
D | DiagnosticRenderer.cpp | 101 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() 333 SourceLocation Begin = I->getBegin(), End = I->getEnd(); in mapDiagnosticRanges()
|
/external/clang/include/clang/AST/ |
D | NestedNameSpecifier.h | 282 return getSourceRange().getBegin(); in getBeginLoc() 294 return getLocalSourceRange().getBegin(); in getLocalBeginLoc()
|
/external/deqp/framework/randomshaders/ |
D | rsgVariableManager.hpp | 229 ValueEntryIterator<Filter> getBegin (Filter filter = Filter()) const; 260 ValueEntryIterator<Filter> VariableManager::getBegin (Filter filter) const in getBegin() function in rsg::VariableManager
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | PlistDiagnostics.cpp | 110 SM.getExpansionLoc(I->getStart().asRange().getBegin())); in ReportControlFlow() 115 SourceRange EndEdge(SM.getExpansionLoc(I->getEnd().asRange().getBegin())); in ReportControlFlow() 319 AddFID(FM, Fids, *SM, I->getBegin()); in FlushDiagnosticsImpl()
|
D | PathDiagnostic.cpp | 236 SourceLocation L = SMgr.getExpansionLoc(I->getBegin()); in HandlePathDiagnostic() 341 if (XR.getBegin() != YR.getBegin()) in comparePiece() 342 return SM.isBeforeInTranslationUnit(XR.getBegin(), YR.getBegin()); in comparePiece() 1064 ID.AddInteger(Range.getBegin().getRawEncoding()); in Profile() 1078 ID.AddInteger(I->getBegin().getRawEncoding()); in Profile()
|