Home
last modified time | relevance | path

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

12345678

/netbsd/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp30 ? CharSourceRange::getCharRange(R.getBegin(), LocAfterEnd) in getLexicalDeclRange()
42 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder()
43 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder()
90 FileLoc = SM.getSpellingLoc(DeclRange.getBegin()); in TraverseDecl()
144 if (!SourceLocation::isPairOfFileLocations(Range.getBegin(), End)) in selectionKindFor()
148 if (SM.isPointWithin(SelectionBegin, Range.getBegin(), End)) in selectionKindFor()
153 bool HasEnd = SM.isPointWithin(SelectionEnd, Range.getBegin(), End); in selectionKindFor()
163 if (HasEnd && SelectionEnd != Range.getBegin()) in selectionKindFor()
185 SourceLocation::isPairOfFileLocations(SelectionRange.getBegin(), in findSelectedASTNodes()
189 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()
/netbsd/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaCast.cpp184 Op.OpRange.getBegin()); in ~CheckNoDerefRAII()
475 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast()
492 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast()
900 Self.Diag(OpRange.getBegin(), in CheckDynamicCast()
939 Self.Diag(OpRange.getBegin(), msg) in CheckAddrspaceCast()
1030 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast()
2490 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2499 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2515 Self.Diag(OpRange.getBegin(), in TryReinterpretCast()
2600 Self.Diag(OpRange.getBegin(), DiagID) in checkAddressSpaceCast()
[all …]
H A DDeclSpec.cpp56 if (Range.getBegin().isInvalid()) in Extend()
69 if (Range.getBegin().isInvalid()) in Extend()
82 if (Range.getBegin().isInvalid()) in Extend()
95 if (Range.getBegin().isInvalid()) in Extend()
208 I.Fun.ExceptionSpecLocBeg = ESpecRange.getBegin(); in getFunction()
1132 TSWRange.getBegin(), TSCLoc, TSSLoc, in Finish()
1183 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec) in Finish()
1203 S.Diag(TSWRange.getBegin(), in Finish()
1225 S.Diag(TSWRange.getBegin(), in Finish()
1267 S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec) in Finish()
[all …]
H A DSemaStmtAttr.cpp30 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()
334 SourceLocation OptionLoc = LH->getRange().getBegin(); in CheckForIncompatibleAttributes()
376 S.Diag(A.getRange().getBegin(), in handleOpenCLUnrollHint()
431 S.Diag(A.getRange().getBegin(), diag::err_decl_attribute_invalid_on_stmt) in ProcessStmtAttribute()
H A DSemaConcept.cpp285 Sema::InstantiatingTemplate Inst(S, TemplateIDRange.getBegin(), in CheckConstraintSatisfaction()
296 TemplateIDRange.getBegin(), MLTAL, in CheckConstraintSatisfaction()
399 Diag(TemplateIDRange.getBegin(), in EnsureTemplateArgumentListConstraints()
590 CSE->getSourceRange().getBegin(), in diagnoseWellFormedUnsatisfiedConstraintExpr()
597 S.Diag(SubstExpr->getSourceRange().getBegin(), in diagnoseWellFormedUnsatisfiedConstraintExpr()
618 S.Diag(SubstExpr->getSourceRange().getBegin(), in diagnoseWellFormedUnsatisfiedConstraintExpr()
721 S, ArgsAsWritten->arguments().front().getSourceRange().getBegin(), in substituteParameterMappings()
723 SourceRange(ArgsAsWritten->arguments()[0].getSourceRange().getBegin(), in substituteParameterMappings()
/netbsd/external/apache2/llvm/dist/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp512 commit.insertBefore(ValRange.getBegin(), ": "); in rewriteToDictionaryLiteral()
513 commit.insertFromRange(ValRange.getBegin(), in rewriteToDictionaryLiteral()
516 commit.insertBefore(ValRange.getBegin(), "@{"); in rewriteToDictionaryLiteral()
651 commit.insert(ArgRange.getBegin(), "@"); in rewriteToCharLiteral()
665 commit.insert(ArgRange.getBegin(), "@"); in rewriteToBoolLiteral()
685 if (literalRange.getBegin().isMacroID() || in getLiteralInfo()
746 SourceLocation B = literalRange.getBegin(); in getLiteralInfo()
833 commit.insert(ArgRange.getBegin(), "@"); in rewriteToNumberLiteral()
839 if (ArgRange.getBegin().isMacroID()) in rewriteToNumberLiteral()
960 commit.insertBefore(Range.getBegin(), "(id)"); in objectifyExpr()
[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()
/netbsd/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); in maybeExtendRange()
59 if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID()) in validateEditRange()
63 if (SM.isInSystemHeader(Range.getBegin()) || in validateEditRange()
68 std::pair<FileID, unsigned> BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateEditRange()
328 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange()
332 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange()
354 Range.getBegin()) && in getAssociatedRange()
367 !SM.isBeforeInTranslationUnit(Attr->getLocation(), Range.getBegin())) in getAssociatedRange()
375 SM.getBufferData(SM.getFileID(Range.getBegin()), &Invalid); in getAssociatedRange()
379 Source.substr(0, SM.getFileOffset(Range.getBegin())); in getAssociatedRange()
[all …]
H A DTransformer.cpp48 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in run()
51 T.Range.getBegin(), T.Metadata)) in run()
/netbsd/external/apache2/llvm/dist/clang/lib/Lex/
H A DPreprocessingRecord.cpp83 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()
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()
307 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in addPreprocessedEntity()
434 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc); in SourceRangeSkipped()
[all …]
/netbsd/external/apache2/llvm/dist/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 ()()
/netbsd/external/apache2/llvm/dist/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()
331 if (!isRewritable(range.getBegin())) return true; in ReplaceText()
334 SourceLocation start = range.getBegin(); in ReplaceText()
338 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText()
347 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation()
354 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
/netbsd/external/apache2/llvm/dist/clang/lib/Format/
H A DAffectedRangeManager.cpp65 if (!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), I->getBegin()) && in affectsCharSourceRange()
66 !SourceMgr.isBeforeInTranslationUnit(I->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()
H A DWhitespaceManager.cpp23 C1.OriginalWhitespaceRange.getBegin(), in operator ()()
24 C2.OriginalWhitespaceRange.getBegin()); in operator ()()
113 Changes[i].OriginalWhitespaceRange.getBegin(); in calculateLineBreakInformation()
951 assert(Changes[i - 1].OriginalWhitespaceRange.getBegin() != in generateChanges()
952 C.OriginalWhitespaceRange.getBegin() && in generateChanges()
974 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement()
976 if (StringRef(SourceMgr.getCharacterData(Range.getBegin()), in storeReplacement()
/netbsd/external/apache2/llvm/dist/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp66 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits()
73 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits()
76 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits()
289 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation()
308 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation()
325 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs()
367 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges()
379 Begin = SM->getImmediateExpansionRange(Begin).getBegin(); in mapDiagnosticRanges()
478 SourceLocation BegLoc = Range.getBegin(), EndLoc = Range.getEnd(); in checkRangeForMacroArgExpansion()
547 LocationStack.push_back(SM.getImmediateExpansionRange(L).getBegin()); in emitMacroExpansions()
/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/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()
370 comments::Lexer L(Allocator, Diags, EmptyTraits, getSourceRange().getBegin(), in getFormattedText()
/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/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()
/netbsd/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DContainerModeling.cpp227 if (CData.getBegin()) { in checkLiveSymbols()
228 SR.markLive(CData.getBegin()); in checkLiveSymbols()
229 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getBegin())) in checkLiveSymbols()
356 if (const auto OldBeginSym = OldCData->getBegin()) { in handleAssignment()
520 if (const auto BeginSym = CData->getBegin()) { in handlePushFront()
552 if (const auto BeginSym = CData->getBegin()) { in handlePopFront()
746 if (CData.getBegin()) in printState()
747 CData.getBegin()->dumpToStream(Out); in printState()
841 return CDataPtr->getBegin(); in getContainerBegin()
858 if (CDataPtr && CDataPtr->getBegin()) in createContainerBegin()
/netbsd/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DSarifDiagnostics.cpp184 {"startLine", SM.getExpansionLineNumber(R.getBegin())}, in createTextRegion()
185 {"startColumn", adjustColumnPos(SM, R.getBegin())}, in createTextRegion()
187 if (R.getBegin() == R.getEnd()) { in createTextRegion()
188 Region["endColumn"] = adjustColumnPos(SM, R.getBegin()); in createTextRegion()
/netbsd/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCoverageMappingGen.cpp67 Range.getBegin())) in AddSkippedRange()
250 return Loc.isMacroID() ? SM.getImmediateExpansionRange(Loc).getBegin() in getIncludeOrExpansionLoc()
273 Loc = SM.getImmediateExpansionRange(Loc).getBegin(); in getStart()
281 Loc = SM.getImmediateExpansionRange(Loc).getBegin(); in getEnd()
377 auto LocStart = Range.getBegin(); in gatherSkippedRegions()
977 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), in VisitStmt()
1097 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitWhileStmt()
1187 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitForStmt()
1224 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitCXXForRangeStmt()
1257 fillGapAreaWithCount(Gap->getBegin(), Gap->getEnd(), BodyCount); in VisitObjCForCollectionStmt()
[all …]

12345678