Home
last modified time | relevance | path

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

12345678

/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp31 ? CharSourceRange::getCharRange(R.getBegin(), LocAfterEnd) in getLexicalDeclRange()
43 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder()
44 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
88 if (DeclRange.getBegin().isMacroID() && !DeclRange.getEnd().isMacroID()) in TraverseDecl()
91 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl()
145 if (!SourceLocation::isPairOfFileLocations(Range.getBegin(), End)) in selectionKindFor()
149 if (SM.isPointWithin(SelectionBegin, Range.getBegin(), End)) in selectionKindFor()
153 bool HasStart = SM.isPointWithin(SelectionBegin, Range.getBegin(), End); in selectionKindFor()
154 bool HasEnd = SM.isPointWithin(SelectionEnd, Range.getBegin(), End); in selectionKindFor()
157 if (SM.isPointWithin(Range.getBegin(), SelectionBegin, SelectionEnd) && in selectionKindFor()
[all …]
H A DASTSelectionRequirements.cpp28 Range->getBegin(), diag::err_refactor_selection_invalid_ast); in evaluate()
46 Context.getSelectionRange().getBegin(), in evaluate()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); in maybeExtendRange()
60 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateRange()
65 if (SM.isInSystemHeader(Range.getBegin()) || in validateRange()
71 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateRange()
112 if (spelledInMacroDefinition(EditRange.getBegin(), SM) || in getRange()
116 auto B = SM.getSpellingLoc(EditRange.getBegin()); in getRange()
372 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange()
376 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange()
398 Range.getBegin()) && in getAssociatedRange()
411 !SM.isBeforeInTranslationUnit(Attr->getLocation(), Range.getBegin())) in getAssociatedRange()
[all …]
H A DTransformer.cpp42 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in convertToAtomicChanges()
45 T.Range.getBegin(), T.Metadata)) in convertToAtomicChanges()
/openbsd-src/gnu/llvm/clang/lib/Edit/
H A 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 …]
H A DCommit.cpp82 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
99 addRemove(range.getBegin(), Offs, Len); in remove()
105 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap()
122 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
127 addRemove(range.getBegin(), Offs, Len); in replace()
128 addInsert(range.getBegin(), Offs, text, false); in replace()
158 addRemove(range.getBegin(), in replaceWithInner()
303 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange()
305 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange()
312 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaCast.cpp193 Op.OpRange.getBegin()); in ~CheckNoDerefRAII()
441 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast()
485 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast()
502 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast()
781 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast()
791 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast()
798 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast()
814 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast()
821 Self.Diag(OpRange.getBegin(), diag::err_bad_cxx_cast_rvalue) in CheckDynamicCast()
836 if (Self.RequireCompleteType(OpRange.getBegin(), SrcPointee, in CheckDynamicCast()
[all …]
H A DDeclSpec.cpp57 if (Range.getBegin().isInvalid()) in Extend()
70 if (Range.getBegin().isInvalid()) in Extend()
83 if (Range.getBegin().isInvalid()) in Extend()
96 if (Range.getBegin().isInvalid()) in Extend()
209 I.Fun.ExceptionSpecLocBeg = ESpecRange.getBegin(); in getFunction()
1140 TSWRange.getBegin(), TSCLoc, TSSLoc, in Finish()
1170 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_long_decl_spec); in Finish()
1202 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec) in Finish()
1215 S.Diag(TSWRange.getBegin(), in Finish()
1237 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_decl_spec); in Finish()
[all …]
H A DParsedAttr.cpp309 if (First.Range.getBegin().isValid()) in takeAndConcatenateAttrs()
310 Result.Range.setBegin(First.Range.getBegin()); in takeAndConcatenateAttrs()
312 Result.Range.setBegin(Second.Range.getBegin()); in takeAndConcatenateAttrs()
H A DSemaStmtAttr.cpp31 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) in handleFallThroughAttr()
40 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); in handleFallThroughAttr()
396 SourceLocation OptionLoc = LH->getRange().getBegin(); in CheckForIncompatibleAttributes()
438 S.Diag(A.getRange().getBegin(), in handleOpenCLUnrollHint()
497 S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt) in ProcessStmtAttribute()
/openbsd-src/gnu/llvm/clang/lib/Lex/
H A DPreprocessingRecord.cpp84 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID()
139 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
145 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow()
171 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
173 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange()
247 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
254 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity()
260 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity()
269 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity()
297 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Tooling/
H A DNodeIntrospection.cpp64 if (LHS.first.getBegin() < RHS.first.getBegin()) in operator ()()
66 else if (LHS.first.getBegin() != RHS.first.getBegin()) in operator ()()
/openbsd-src/gnu/llvm/clang/lib/Format/
H A DAffectedRangeManager.cpp64 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), R.getBegin()) && in affectsCharSourceRange()
65 !SourceMgr.isBeforeInTranslationUnit(R.getEnd(), Range.getBegin())) { in affectsCharSourceRange()
75 SourceLocation Start = First.WhitespaceRange.getBegin(); in affectsTokenRange()
86 Tok.WhitespaceRange.getBegin(), in affectsLeadingEmptyLines()
87 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
/openbsd-src/gnu/llvm/clang/lib/Rewrite/
H A DRewriter.cpp147 if (!isRewritable(Range.getBegin()) || in getRangeSize()
151 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize()
185 if (!isRewritable(Range.getBegin()) || in getRewrittenText()
191 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText()
203 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText()
332 if (!isRewritable(range.getBegin())) return true; in ReplaceText()
335 SourceLocation start = range.getBegin(); in ReplaceText()
339 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText()
348 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation()
355 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
/openbsd-src/gnu/llvm/clang/include/clang/Rewrite/Core/
H A DRewriter.h147 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
152 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
165 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
172 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp65 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
72 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
75 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
288 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation()
307 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation()
324 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs()
366 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges()
378 Begin = SM->getImmediateExpansionRange(Begin).getBegin(); in mapDiagnosticRanges()
477 SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd(); in checkRangeForMacroArgExpansion()
546 LocationStack.push_back(SM.getImmediateExpansionRange(L).getBegin()); in emitMacroExpansions()
/openbsd-src/gnu/llvm/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp72 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
161 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
168 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
171 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DRawCommentList.cpp116 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
130 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
160 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
190 Range.getBegin(), in extractBriefText()
212 getSourceRange().getBegin(), in parse()
389 comments::Lexer L(Allocator, Diags, EmptyTraits, getSourceRange().getBegin(), in getFormattedLines()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp69 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
72 SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol); in initiate()
153 AtomicChange Change(SM, Ranges[0].getBegin()); in createRenameReplacements()
213 FullSourceLoc FullLoc(Occurrence.getNameRanges()[0].getBegin(), in HandleOneRename()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Core/
H A DDiagnostic.cpp41 FilePath = std::string(Sources.getFilename(Range.getBegin())); in FileByteRange()
43 FileOffset = Sources.getFileOffset(Range.getBegin()); in FileByteRange()
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransformActions.cpp68 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange()
326 insert(range.getBegin(), text); in replace()
410 return canInsert(range.getBegin()) && canInsertAfterToken(range.getEnd()); in canRemoveRange()
457 commitInsert(E->getSourceRange().getBegin(), getARCMTMacroName()); in commitRemoveStmt()
471 if (range.getBegin() != replacementRange.getBegin()) in commitReplace()
472 addRemoval(CharSourceRange::getCharRange(range.getBegin(), in commitReplace()
473 replacementRange.getBegin())); in commitReplace()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Syntax/
H A DTokens.cpp46 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering()
151 if (Exp.getBegin() == ExpMacro.getExpansionLocStart()) { in spelledForExpandedSlow()
153 Bound = (&Bound == &Prev) ? Exp.getBegin() : Exp.getEnd(); in spelledForExpandedSlow()
161 Bound = (&Bound == &Prev) ? Exp.getEnd() : Exp.getBegin(); in spelledForExpandedSlow()
172 auto DecFirst = SM.getDecomposedExpansionLoc(Candidate.getBegin()); in spelledForExpandedSlow()
179 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Prev).getBegin()); in spelledForExpandedSlow()
300 const auto B = ExpandedTokIndex.find(R.getBegin()); in expandedTokens()
699 if (!Range.getBegin().isFileID()) { in MacroExpands()
700 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands()
701 assert(Collector->Expansions.count(Range.getBegin()) && in MacroExpands()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DContext.cpp37 Parent.FFDiag(Err.getRange().getBegin(), in isPotentialConstantExpr()
139 Parent.FFDiag(Err.getRange().getBegin(), in Check()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp213 if (CData.getBegin()) { in checkLiveSymbols()
214 SR.markLive(CData.getBegin()); in checkLiveSymbols()
215 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getBegin())) in checkLiveSymbols()
342 if (const auto OldBeginSym = OldCData->getBegin()) { in handleAssignment()
506 if (const auto BeginSym = CData->getBegin()) { in handlePushFront()
538 if (const auto BeginSym = CData->getBegin()) { in handlePopFront()
732 if (CData.getBegin()) in printState()
733 CData.getBegin()->dumpToStream(Out); in printState()
827 return CDataPtr->getBegin(); in getContainerBegin()
844 if (CDataPtr && CDataPtr->getBegin()) in createContainerBegin()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp68 Range.getBegin())) in AddSkippedRange()
253 return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).getBegin() in getIncludeOrExpansionLoc()
276 Loc = SM.getImmediateExpansionRange(Loc).getBegin(); in getStart()
284 Loc = SM.getImmediateExpansionRange(Loc).getBegin(); in getEnd()
382 auto LocStart = Range.getBegin(); in gatherSkippedRegions()
987 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), in VisitStmt()
1107 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitWhileStmt()
1197 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitForStmt()
1234 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitCXXForRangeStmt()
1267 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitObjCForCollectionStmt()
[all …]

12345678