| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/ |
| H A D | ASTSelection.cpp | 31 ? CharSourceRange::getCharRange(R.getBegin(), LocAfterEnd) in getLexicalDeclRange() 43 SelectionBegin(Selection.getBegin()), in ASTSelectionFinder() 44 SelectionEnd(Selection.getBegin() == Selection.getEnd() in ASTSelectionFinder() 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() 154 bool HasEnd = SM.isPointWithin(SelectionEnd, Range.getBegin(), End); in selectionKindFor() 164 if (HasEnd && SelectionEnd != Range.getBegin()) in selectionKindFor() 186 SourceLocation::isPairOfFileLocations(SelectionRange.getBegin(), in findSelectedASTNodes() 190 Context.getSourceManager().getFileID(SelectionRange.getBegin()); in findSelectedASTNodes() [all …]
|
| H A D | ASTSelectionRequirements.cpp | 28 Range->getBegin(), diag::err_refactor_selection_invalid_ast); in evaluate() 46 Context.getSelectionRange().getBegin(), in evaluate()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 50 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() 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() 419 SM.getBufferData(SM.getFileID(Range.getBegin()), &Invalid); in getAssociatedRange() 423 Source.substr(0, SM.getFileOffset(Range.getBegin())); in getAssociatedRange() [all …]
|
| H A D | Transformer.cpp | 42 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in convertToAtomicChanges() 45 T.Range.getBegin(), T.Metadata)) in convertToAtomicChanges()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 198 Op.OpRange.getBegin()); in ~CheckNoDerefRAII() 508 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast() 525 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast() 933 Self.Diag(OpRange.getBegin(), in CheckDynamicCast() 980 Self.Diag(OpRange.getBegin(), msg) in CheckAddrspaceCast() 1218 Self.Diag(OpRange.getBegin(), DiagID) in CheckReinterpretCast() 2556 Self.Diag(OpRange.getBegin(), in TryReinterpretCast() 2565 Self.Diag(OpRange.getBegin(), in TryReinterpretCast() 2581 Self.Diag(OpRange.getBegin(), in TryReinterpretCast() 2700 this->Diag(R.getBegin(), in CheckAltivecInitFromScalar() [all …]
|
| H A D | DeclSpec.cpp | 57 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() 1152 TSWRange.getBegin(), TSCLoc, TSSLoc, in Finish() 1214 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec) in Finish() 1227 S.Diag(TSWRange.getBegin(), in Finish() 1251 S.Diag(TSWRange.getBegin(), in Finish() 1293 S.Diag(TSWRange.getBegin(), diag::err_invalid_width_spec) in Finish() [all …]
|
| H A D | ParsedAttr.cpp | 315 if (First.Range.getBegin().isValid()) in takeAndConcatenateAttrs() 316 Result.Range.setBegin(First.Range.getBegin()); in takeAndConcatenateAttrs() 318 Result.Range.setBegin(Second.Range.getBegin()); in takeAndConcatenateAttrs()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 513 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 D | Commit.cpp | 82 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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 84 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() 446 SkippedRanges.emplace_back(Range.getBegin(), EndifLoc); in SourceRangeSkipped() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | NodeIntrospection.cpp | 64 if (LHS.first.getBegin() < RHS.first.getBegin()) in operator ()() 66 else if (LHS.first.getBegin() != RHS.first.getBegin()) in operator ()()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Format/ |
| H A D | AffectedRangeManager.cpp | 64 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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 143 if (!isRewritable(Range.getBegin()) || in getRangeSize() 147 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 181 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 187 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 199 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText() 328 if (!isRewritable(range.getBegin())) return true; in ReplaceText() 331 SourceLocation start = range.getBegin(); in ReplaceText() 335 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText() 344 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation() 351 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
| H A D | Rewriter.h | 147 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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 65 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() 544 LocationStack.push_back(SM.getImmediateExpansionRange(L).getBegin()); in emitMacroExpansions()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | FixItRewriter.cpp | 72 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace() 162 commit.insertFromRange(Hint.RemoveRange.getBegin(), in HandleDiagnostic() 169 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in HandleDiagnostic() 172 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in HandleDiagnostic()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | HTMLLogger.cpp | 421 if (EltRange.getBegin() < Range.getBegin() || in writeCode() 423 EltRange.getEnd() < Range.getBegin() || in writeCode() 426 unsigned Off = EltRange.getBegin().getRawEncoding() - in writeCode() 427 Range.getBegin().getRawEncoding(); in writeCode() 429 EltRange.getBegin().getRawEncoding(); in writeCode() 438 AST.getSourceManager().getSpellingLineNumber(Range.getBegin()); in writeCode() 443 AST.getSourceManager().getFilename(Range.getBegin())), in writeCode()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 116 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()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 171 const SCEV *getBegin() const { return Begin; } in getBegin() function in __anonfea5f1180111::InductiveRangeCheck 208 const SCEV *getBegin() const { return Begin; } in getBegin() function in __anonfea5f1180111::InductiveRangeCheck::Range 635 SE.isKnownPredicate(PredLE, Range.getBegin(), Smallest); in calculateSubRanges() 637 Result.LowLimit = Clamp(Range.getBegin()); in calculateSubRanges() 657 auto *RCType = dyn_cast<IntegerType>(getBegin()->getType()); in computeSafeIterationSpace() 695 const SCEV *C = getBegin(); in computeSafeIterationSpace() 846 const SCEV *NewBegin = SE.getSMaxExpr(R1Value.getBegin(), R2.getBegin()); in IntersectSignedRange() 875 const SCEV *NewBegin = SE.getUMaxExpr(R1Value.getBegin(), R2.getBegin()); in IntersectUnsignedRange() 1062 SafeIterRange->getBegin()->getType(), *MaybeSR); in run()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 69 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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | State.cpp | 138 addDiag(CallRange.getBegin(), diag::note_constexpr_calls_suppressed) in addCallStack() 149 addDiag(CallRange.getBegin(), in addCallStack() 158 addDiag(CallRange.getBegin(), diag::note_constexpr_call_here) in addCallStack()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Core/ |
| H A D | Diagnostic.cpp | 41 FilePath = std::string(Sources.getFilename(Range.getBegin())); in FileByteRange() 43 FileOffset = Sources.getFileOffset(Range.getBegin()); in FileByteRange()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransformActions.cpp | 68 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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugSuppression.cpp | 75 return isLessOrEqual(Larger.getBegin(), Smaller.getBegin(), SM) && in fullyContains()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ContainerModeling.cpp | 213 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()
|