| /freebsd/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() 71 FileIDAndOffset BeginInfo = SM.getDecomposedLoc(Range.getBegin()); in validateRange() 132 auto BeginToken = getExpansionForSplitToken(Range.getBegin(), SM, LangOpts); in getRangeForSplitTokens() 136 BeginToken ? BeginToken->getBegin() : Range.getBegin(); in getRangeForSplitTokens() 145 return CharSourceRange::getTokenRange(BeginToken->getBegin(), in getRangeForSplitTokens() 161 if (spelledInMacroDefinition(AdjustedRange.getBegin(), SM) || in getRange() 165 auto B = SM.getSpellingLoc(AdjustedRange.getBegin()); in getRange() 421 if (SM.isBeforeInTranslationUnit(T->getBeginLoc(), Range.getBegin())) in getAssociatedRange() [all …]
|
| H A D | Transformer.cpp | 41 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in convertToAtomicChanges() 44 T.Range.getBegin(), T.Metadata)) in convertToAtomicChanges()
|
| /freebsd/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() 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 D | ASTSelectionRequirements.cpp | 27 Range->getBegin(), diag::err_refactor_selection_invalid_ast); in evaluate() 45 Context.getSelectionRange().getBegin(), in evaluate()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaCast.cpp | 110 SourceLocation getBegin() const { return Locations[0]; } in getBegin() function 126 return SourceRange(getBegin(), getRParenLoc()); in operator SourceRange() 208 Self.Diag(DestRange.getBegin(), diag::err_ptrauth_qualifier_cast) in checkQualifiedDestType() 243 Op.OpRange.getBegin()); in ~CheckNoDerefRAII() 349 CastOperation::OpRangeType(OpLoc, Parens.getBegin(), Parens.getEnd()); in BuildCXXNamedCast() 486 range.getBegin(), range, listInitialization) in tryDiagnoseOverloadedCast() 489 range.getBegin(), range.getParenRange(), listInitialization) in tryDiagnoseOverloadedCast() 549 candidates.BestViableFunction(S, range.getBegin(), Best); in tryDiagnoseOverloadedCast() 554 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast() 565 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast() [all …]
|
| H A D | DeclSpec.cpp | 54 if (Range.getBegin().isInvalid()) in Extend() 67 if (Range.getBegin().isInvalid()) in Extend() 80 if (Range.getBegin().isInvalid()) in Extend() 93 if (Range.getBegin().isInvalid()) in Extend() 206 I.Fun.ExceptionSpecLocBeg = ESpecRange.getBegin(); in getFunction() 1172 TSWRange.getBegin(), TSCLoc, TSSLoc, in Finish() 1202 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_long_decl_spec); in Finish() 1239 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec) in Finish() 1252 S.Diag(TSWRange.getBegin(), in Finish() 1274 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_decl_spec); in Finish() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Edit/ |
| H A 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 …]
|
| H A D | Commit.cpp | 81 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange() 98 addRemove(range.getBegin(), Offs, Len); in remove() 104 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap() 121 if (!canInsert(range.getBegin(), Offs) || !canRemoveRange(range, Offs, Len)) { in replace() 126 addRemove(range.getBegin(), Offs, Len); in replace() 127 addInsert(range.getBegin(), Offs, text, false); in replace() 157 addRemove(range.getBegin(), in replaceWithInner() 302 if (range.getBegin().isMacroID() || range.getEnd().isMacroID()) in canRemoveRange() 304 if (SM.isInSystemHeader(range.getBegin()) || in canRemoveRange() 311 FileIDAndOffset beginInfo = SM.getDecomposedLoc(range.getBegin()); in canRemoveRange()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 81 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID() 136 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in getPreprocessedEntitiesInRangeSlow() 142 if (!ExternalSource || SourceMgr.isLocalSourceLocation(Range.getBegin())) in getPreprocessedEntitiesInRangeSlow() 168 assert(!SourceMgr.isBeforeInTranslationUnit(Range.getEnd(),Range.getBegin())); in findLocalPreprocessedEntitiesInRange() 170 unsigned Begin = findBeginLocalPreprocessedEntity(Range.getBegin()); in findLocalPreprocessedEntitiesInRange() 244 PPEntityComp<&SourceRange::getBegin>(SourceMgr)); in findEndLocalPreprocessedEntity() 251 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() 257 PreprocessedEntities.back()->getSourceRange().getBegin())) && in addPreprocessedEntity() 266 PreprocessedEntities.back()->getSourceRange().getBegin())) { in addPreprocessedEntity() 294 (*I)->getSourceRange().getBegin())) { in addPreprocessedEntity() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Rewrite/ |
| H A D | Rewriter.cpp | 48 if (!isRewritable(Range.getBegin()) || in getRangeSize() 52 unsigned StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRangeSize() 86 if (!isRewritable(Range.getBegin()) || in getRewrittenText() 92 StartOff = getLocationOffsetAndFileID(Range.getBegin(), StartFileID); in getRewrittenText() 104 const char *Ptr = SourceMgr->getCharacterData(Range.getBegin()); in getRewrittenText() 233 if (!isRewritable(range.getBegin())) return true; in ReplaceText() 236 SourceLocation start = range.getBegin(); in ReplaceText() 240 unsigned newOffs = getLocationOffsetAndFileID(replacementRange.getBegin(), in ReplaceText() 249 if (!isRewritable(range.getBegin())) return true; in IncreaseIndentation() 256 StartOff = getLocationOffsetAndFileID(range.getBegin(), StartFileID); in IncreaseIndentation()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenStmtOpenACC.cpp | 129 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCComputeConstruct() 152 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCDataConstruct() 162 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCInitConstruct() 170 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCSetConstruct() 178 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCShutdownConstruct() 186 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCWaitConstruct() 222 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCCombinedConstruct() 245 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCHostDataConstruct() 255 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCEnterDataConstruct() 263 mlir::Location start = getLoc(s.getSourceRange().getBegin()); in emitOpenACCExitDataConstruct() [all …]
|
| /freebsd/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()
|
| H A D | WhitespaceManager.cpp | 25 C1.OriginalWhitespaceRange.getBegin(), in operator ()() 26 C2.OriginalWhitespaceRange.getBegin()) || in operator ()() 27 (C1.OriginalWhitespaceRange.getBegin() == in operator ()() 28 C2.OriginalWhitespaceRange.getBegin() && in operator ()() 137 C.OriginalWhitespaceRange.getBegin(); in calculateLineBreakInformation() 1107 C.OriginalWhitespaceRange.getBegin().getRawEncoding() - in alignTrailingComments() 1662 if (Last.getBegin() == New.getBegin() && in generateChanges() 1663 (Last.getEnd() != Last.getBegin() || in generateChanges() 1664 New.getEnd() == New.getBegin())) { in generateChanges() 1691 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
| H A D | Rewriter.h | 148 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts); 153 return RemoveText(range.getBegin(), getRangeSize(range, opts), opts); 166 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText() 173 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 64 commit.insertFromRange(Hint.RemoveRange.getBegin(), in mergeFixits() 71 Hint.RemoveRange.getBegin() != Hint.RemoveRange.getEnd()) in mergeFixits() 74 commit.insert(Hint.RemoveRange.getBegin(), Hint.CodeToInsert, in mergeFixits() 284 IsBegin ? MacroRange.getBegin() : MacroRange.getEnd(); in retrieveMacroLocation() 303 IsBegin ? MacroArgRange.getBegin() : MacroArgRange.getEnd(); in retrieveMacroLocation() 320 Loc = IsBegin ? ExpRange.getBegin() : ExpRange.getEnd(); in getMacroArgExpansionFileIDs() 362 SourceLocation Begin = Range.getBegin(), End = Range.getEnd(); in mapDiagnosticRanges() 374 Begin = SM->getImmediateExpansionRange(Begin).getBegin(); in mapDiagnosticRanges() 472 SourceLocation Begin = R.getBegin(); in rangesInsideSameMacroArgExpansion() 519 LocationStack.push_back(SM.getImmediateExpansionRange(L).getBegin()); in emitMacroExpansions()
|
| /freebsd/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/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | HTMLLogger.cpp | 432 if (EltRange.getBegin() < Range.getBegin() || in writeCode() 434 EltRange.getEnd() < Range.getBegin() || in writeCode() 437 unsigned Off = EltRange.getBegin().getRawEncoding() - in writeCode() 438 Range.getBegin().getRawEncoding(); in writeCode() 440 EltRange.getBegin().getRawEncoding(); in writeCode() 449 AST.getSourceManager().getSpellingLineNumber(Range.getBegin()); in writeCode() 454 AST.getSourceManager().getFilename(Range.getBegin())), in writeCode()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 114 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) { in RawComment() 128 SourceMgr.getDecomposedLoc(Range.getBegin()); in RawComment() 158 SourceMgr.getDecomposedLoc(Range.getBegin()); in getRawTextSlow() 188 Range.getBegin(), in extractBriefText() 210 getSourceRange().getBegin(), in parse() 386 comments::Lexer L(Allocator, Diags, EmptyTraits, getSourceRange().getBegin(), in getFormattedLines()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | State.cpp | 139 addDiag(CallRange.getBegin(), diag::note_constexpr_calls_suppressed) in addCallStack() 150 addDiag(CallRange.getBegin(), in addCallStack() 160 addDiag(CallRange.getBegin(), diag::note_constexpr_call_here) in addCallStack()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 60 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate() 63 SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol); in initiate() 144 AtomicChange Change(SM, Ranges[0].getBegin()); in createRenameReplacements() 204 FullSourceLoc FullLoc(Occurrence.getNameRanges()[0].getBegin(), in HandleOneRename()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 163 const SCEV *getBegin() const { return Begin; } in getBegin() function in __anona4c10e620111::InductiveRangeCheck 200 const SCEV *getBegin() const { return Begin; } in getBegin() function in __anona4c10e620111::InductiveRangeCheck::Range 651 SE.isKnownPredicate(PredLE, Range.getBegin(), Smallest); in calculateSubRanges() 653 Result.LowLimit = Clamp(Range.getBegin()); in calculateSubRanges() 673 auto *RCType = dyn_cast<IntegerType>(getBegin()->getType()); in computeSafeIterationSpace() 711 const SCEV *C = getBegin(); in computeSafeIterationSpace() 862 const SCEV *NewBegin = SE.getSMaxExpr(R1Value.getBegin(), R2.getBegin()); in IntersectSignedRange() 891 const SCEV *NewBegin = SE.getUMaxExpr(R1Value.getBegin(), R2.getBegin()); in IntersectUnsignedRange() 1084 SafeIterRange->getBegin()->getType(), *MaybeSR); in run()
|
| /freebsd/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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ContainerModeling.cpp | 221 if (CData.getBegin()) { in checkLiveSymbols() 222 SR.markLive(CData.getBegin()); in checkLiveSymbols() 223 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getBegin())) in checkLiveSymbols() 351 if (const auto OldBeginSym = OldCData->getBegin()) { in handleAssignment() 515 if (const auto BeginSym = CData->getBegin()) { in handlePushFront() 547 if (const auto BeginSym = CData->getBegin()) { in handlePopFront() 741 if (CData.getBegin()) in printState() 742 CData.getBegin()->dumpToStream(Out); in printState() 840 return CDataPtr->getBegin(); in getContainerBegin() 858 if (CDataPtr && CDataPtr->getBegin()) in createContainerBegin()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugSuppression.cpp | 77 return isLessOrEqual(Larger.getBegin(), Smaller.getBegin(), SM) && in fullyContains()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 44 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering() 117 auto DecFirst = SM.getDecomposedExpansionLoc(Candidate.getBegin()); in spelledForExpandedSlow() 125 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Prev).getBegin()); in spelledForExpandedSlow() 246 const auto B = ExpandedTokIndex.find(R.getBegin()); in expandedTokens() 652 if (!Range.getBegin().isFileID()) { in MacroExpands() 653 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands() 654 assert(Collector->Expansions.count(Range.getBegin()) && in MacroExpands() 658 Collector->Expansions[Range.getBegin()] = Range.getEnd(); in MacroExpands()
|