Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp32 ? CharSourceRange::getCharRange(R.getBegin(), LocAfterEnd) in getLexicalDeclRange()
44 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder()
45 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
92 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl()
146 if (!SourceLocation::isPairOfFileLocations(Range.getBegin(), End)) in selectionKindFor()
150 if (SM.isPointWithin(SelectionBegin, Range.getBegin(), End)) in selectionKindFor()
155 bool HasEnd = SM.isPointWithin(SelectionEnd, Range.getBegin(), End); in selectionKindFor()
165 if (HasEnd && SelectionEnd != Range.getBegin()) in selectionKindFor()
187 SourceLocation::isPairOfFileLocations(SelectionRange.getBegin(), in findSelectedASTNodes()
191 Context.getSourceManager().getFileID(SelectionRange.getBegin()); in findSelectedASTNodes()
[all …]
H A DASTSelectionRequirements.cpp27 Range->getBegin(), diag::err_refactor_selection_invalid_ast); in evaluate()
44 Context.getSelectionRange().getBegin(), in evaluate()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaCast.cpp403 S.Diag(range.getBegin(), msg) in tryDiagnoseOverloadedCast()
421 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast()
842 Self.Diag(OpRange.getBegin(), msg) << CT_Const in CheckConstCast()
933 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast()
1391 !Self.isCompleteType(OpRange.getBegin(), DestType)) in TryStaticDowncast()
1469 switch (Self.CheckBaseClassAccess(OpRange.getBegin(), in TryStaticDowncast()
1780 if (Diags.isIgnored(DiagID, Range.getBegin())) in CheckCompatibleReinterpretCast()
2258 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2267 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2294 Self.Diag(OpRange.getBegin(), in checkAddressSpaceCast()
[all …]
H A 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()
266 SourceLocation OptionLoc = LH->getRange().getBegin(); in CheckForIncompatibleAttributes()
318 S.Diag(A.getRange().getBegin(), in handleOpenCLUnrollHint()
349 S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt) in ProcessStmtAttribute()
369 return ActOnAttributedStmt(Range.getBegin(), Attrs, S); in ProcessStmtAttributes()
H A DDeclSpec.cpp50 if (Range.getBegin().isInvalid()) in Extend()
63 if (Range.getBegin().isInvalid()) in Extend()
76 if (Range.getBegin().isInvalid()) in Extend()
89 if (Range.getBegin().isInvalid()) in Extend()
197 I.Fun.ExceptionSpecLocBeg = ESpecRange.getBegin().getRawEncoding(); in getFunction()
1048 TSWRange.getBegin(), TSCLoc, TSSLoc, in Finish()
1092 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec) in Finish()
1110 S.Diag(TSWRange.getBegin(), in Finish()
1126 S.Diag(TSWRange.getBegin(), in Finish()
1166 S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec) in Finish()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp513 commit.insertBefore(ValRange.getBegin(), ": "); in rewriteToDictionaryLiteral()
514 commit.insertFromRange(ValRange.getBegin(), in rewriteToDictionaryLiteral()
517 commit.insertBefore(ValRange.getBegin(), "@{"); in rewriteToDictionaryLiteral()
652 commit.insert(ArgRange.getBegin(), "@"); in rewriteToCharLiteral()
666 commit.insert(ArgRange.getBegin(), "@"); in rewriteToBoolLiteral()
686 if (literalRange.getBegin().isMacroID() || in getLiteralInfo()
747 SourceLocation B = literalRange.getBegin(); in getLiteralInfo()
834 commit.insert(ArgRange.getBegin(), "@"); in rewriteToNumberLiteral()
840 if (ArgRange.getBegin().isMacroID()) in rewriteToNumberLiteral()
961 commit.insertBefore(Range.getBegin(), "(id)"); in objectifyExpr()
[all …]
H A DCommit.cpp83 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
100 addRemove(range.getBegin(), Offs, Len); in remove()
106 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap()
123 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace()
128 addRemove(range.getBegin(), Offs, Len); in replace()
129 addInsert(range.getBegin(), Offs, text, false); in replace()
159 addRemove(range.getBegin(), in replaceWithInner()
304 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange()
306 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange()
313 std::pair<FileID, unsigned> beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DPreprocessingRecord.cpp84 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID()
140 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow()
146 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow()
172 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange()
174 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange()
251 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity()
258 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity()
264 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity()
273 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity()
439 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc); in SourceRangeSkipped()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Rewrite/
H A DRewriter.cpp137 if (!isRewritable(Range.getBegin()) || in getRangeSize()
141 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize()
175 if (!isRewritable(Range.getBegin()) || in getRewrittenText()
181 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText()
193 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText()
318 if (!isRewritable(range.getBegin())) return true; in ReplaceText()
321 SourceLocation start = range.getBegin(); in ReplaceText()
325 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText()
334 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation()
341 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DAffectedRangeManager.cpp66 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange()
67 !SourceMgr.isBeforeInTranslationUnit(I->getEnd(), Range.getBegin())) in affectsCharSourceRange()
76 SourceLocation Start = First.WhitespaceRange.getBegin(); in affectsTokenRange()
87 Tok.WhitespaceRange.getBegin(), in affectsLeadingEmptyLines()
88 Tok.WhitespaceRange.getBegin().getLocWithOffset(Tok.LastNewlineOffset)); in affectsLeadingEmptyLines()
H A DWhitespaceManager.cpp24 C1.OriginalWhitespaceRange.getBegin(), in operator ()()
25 C2.OriginalWhitespaceRange.getBegin()); in operator ()()
109 Changes[i].OriginalWhitespaceRange.getBegin(); in calculateLineBreakInformation()
615 assert(Changes[i - 1].OriginalWhitespaceRange.getBegin() != in generateChanges()
616 C.OriginalWhitespaceRange.getBegin() && in generateChanges()
638 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
640 if (StringRef(SourceMgr.getCharacterData(Range.getBegin()), in storeReplacement()
H A DSortJavaScriptImports.cpp235 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText()
262 SourceLocation SymbolsStart = Reference.Symbols.front().Range.getBegin(); in appendReference()
264 Buffer += getSourceText(Reference.Range.getBegin(), SymbolsStart); in appendReference()
422 Current->getPreviousNonComment()->Next->WhitespaceRange.getBegin()); in parseNamedBindings()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp67 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
74 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
77 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
290 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation()
309 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation()
326 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs()
368 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges()
380 Begin = SM->getImmediateExpansionRange(Begin).getBegin(); in mapDiagnosticRanges()
472 SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd(); in checkRangeForMacroArgExpansion()
541 LocationStack.push_back(SM.getImmediateExpansionRange(L).getBegin()); in emitMacroExpansions()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DFixItRewriter.cpp73 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
160 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic()
167 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic()
170 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DRawCommentList.cpp115 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment()
129 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment()
159 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow()
189 Range.getBegin(), in extractBriefText()
211 getSourceRange().getBegin(), in parse()
350 comments::Lexer L(Allocator, Diags, EmptyTraits, getSourceRange().getBegin(), in getFormattedText()
H A DMicrosoftMangle.cpp2396 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2546 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2555 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2712 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2792 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2801 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2811 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2820 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2829 Diags.Report(Range.getBegin(), DiagID) in mangleType()
2838 Diags.Report(Range.getBegin(), DiagID) in mangleType()
[all …]
H A DNestedNameSpecifier.cpp430 return SourceRange(First.getLocalSourceRange().getBegin(), in getSourceRange()
657 SaveSourceLocation(R.getBegin(), Buffer, BufferSize, BufferCapacity); in MakeTrivial()
664 R.getBegin()); in MakeTrivial()
676 SaveSourceLocation(Stack.empty()? R.getEnd() : R.getBegin(), in MakeTrivial()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Rewrite/Core/
H A DRewriter.h128 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
133 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts);
146 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp70 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
73 SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol); in initiate()
152 AtomicChange Change(SM, Ranges[0].getBegin()); in createRenameReplacements()
211 FullSourceLoc FullLoc(Occurrence.getNameRanges()[0].getBegin(), in HandleOneRename()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A 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()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp186 return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).getBegin() in getIncludeOrExpansionLoc()
209 Loc = SM.getImmediateExpansionRange(Loc).getBegin(); in getStart()
217 Loc = SM.getImmediateExpansionRange(Loc).getBegin(); in getEnd()
289 auto LocStart = I.getBegin(); in gatherSkippedRegions()
972 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitWhileStmt()
1040 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitForStmt()
1067 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitCXXForRangeStmt()
1093 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitObjCForCollectionStmt()
1189 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), ThenCount); in VisitIfStmt()
1199 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), ElseCount); in VisitIfStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DInitialization.h623 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast()
624 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast()
634 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast()
642 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast()
643 TypeRange.getBegin(), TypeRange.getEnd()); in CreateFunctionalCast()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DSourceLocation.h207 SourceLocation getBegin() const { return B; } in getBegin() function
266 SourceLocation getBegin() const { return Range.getBegin(); } in getBegin() function
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Serialization/
H A DASTBitCodes.h189 : Begin(R.getBegin().getRawEncoding()), in PPEntityOffset()
192 SourceLocation getBegin() const { in getBegin() function
209 : Begin(R.getBegin().getRawEncoding()), in PPSkippedRange()
212 SourceLocation getBegin() const { in getBegin() function
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DNestedNameSpecifier.h294 return getSourceRange().getBegin(); in getBeginLoc()
306 return getLocalSourceRange().getBegin(); in getLocalBeginLoc()

1234567