/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 std::pair<FileID, unsigned> 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 | 42 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in convertToAtomicChanges() 45 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 | 28 Range->getBegin(), diag::err_refactor_selection_invalid_ast); in evaluate() 46 Context.getSelectionRange().getBegin(), in evaluate()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaCast.cpp | 200 Op.OpRange.getBegin()); in ~CheckNoDerefRAII() 442 = (CT == CT_CStyle)? InitializationKind::CreateCStyleCast(range.getBegin(), in tryDiagnoseOverloadedCast() 500 candidates.BestViableFunction(S, range.getBegin(), Best); in tryDiagnoseOverloadedCast() 505 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast() 516 PartialDiagnosticAt(range.getBegin(), in tryDiagnoseOverloadedCast() 533 S.Diag(opRange.getBegin(), msg) << castType in diagnoseBadCast() 812 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ref_or_ptr) in CheckDynamicCast() 822 if (Self.RequireCompleteType(OpRange.getBegin(), DestPointee, in CheckDynamicCast() 829 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_class) in CheckDynamicCast() 845 Self.Diag(OpRange.getBegin(), diag::err_bad_dynamic_cast_not_ptr) in CheckDynamicCast() [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() 1169 TSWRange.getBegin(), TSCLoc, TSSLoc, in Finish() 1199 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_long_decl_spec); in Finish() 1234 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_bool_decl_spec) in Finish() 1247 S.Diag(TSWRange.getBegin(), in Finish() 1269 S.Diag(TSWRange.getBegin(), diag::err_invalid_vector_long_decl_spec); in Finish() [all …]
|
H A D | ParsedAttr.cpp | 321 if (First.Range.getBegin().isValid()) in takeAndConcatenateAttrs() 322 Result.Range.setBegin(First.Range.getBegin()); in takeAndConcatenateAttrs() 324 Result.Range.setBegin(Second.Range.getBegin()); in takeAndConcatenateAttrs()
|
/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 …]
|
/freebsd/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() 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 …]
|
/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() 1112 C.OriginalWhitespaceRange.getBegin().getRawEncoding() - in alignTrailingComments() 1664 if (Last.getBegin() == New.getBegin() && in generateChanges() 1665 (Last.getEnd() != Last.getBegin() || in generateChanges() 1666 New.getEnd() == New.getBegin())) { in generateChanges() 1693 SourceMgr.getFileOffset(Range.getBegin()); in storeReplacement() [all …]
|
H A D | SortJavaScriptImports.cpp | 244 return getSourceText(Range.getBegin(), Range.getEnd()); in getSourceText() 329 getSourceText(Reference.Range.getBegin(), Reference.Range.getEnd()); in appendReference() 346 Buffer += getSourceText(Reference.Range.getBegin(), Reference.SymbolsStart); in appendReference() 560 Current->getPreviousNonComment()->Next->WhitespaceRange.getBegin()); in parseNamedBindings()
|
/freebsd/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/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/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | HTMLLogger.cpp | 433 if (EltRange.getBegin() < Range.getBegin() || in writeCode() 435 EltRange.getEnd() < Range.getBegin() || in writeCode() 438 unsigned Off = EltRange.getBegin().getRawEncoding() - in writeCode() 439 Range.getBegin().getRawEncoding(); in writeCode() 441 EltRange.getBegin().getRawEncoding(); in writeCode() 450 AST.getSourceManager().getSpellingLineNumber(Range.getBegin()); in writeCode() 455 AST.getSourceManager().getFilename(Range.getBegin())), in writeCode()
|
/freebsd/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/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() 159 addDiag(CallRange.getBegin(), diag::note_constexpr_call_here) in addCallStack()
|
/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/Core/ |
H A D | BugSuppression.cpp | 75 return isLessOrEqual(Larger.getBegin(), Smaller.getBegin(), SM) && in fullyContains()
|
H A D | SarifDiagnostics.cpp | 117 if (R.getBegin() == R.getEnd()) in convertTokenRangeToCharRange() 120 SourceLocation BeginCharLoc = R.getBegin(); in convertTokenRangeToCharRange()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | ContainerModeling.cpp | 218 if (CData.getBegin()) { in checkLiveSymbols() 219 SR.markLive(CData.getBegin()); in checkLiveSymbols() 220 if(const auto *SIE = dyn_cast<SymIntExpr>(CData.getBegin())) in checkLiveSymbols() 347 if (const auto OldBeginSym = OldCData->getBegin()) { in handleAssignment() 511 if (const auto BeginSym = CData->getBegin()) { in handlePushFront() 543 if (const auto BeginSym = CData->getBegin()) { in handlePopFront() 737 if (CData.getBegin()) in printState() 738 CData.getBegin()->dumpToStream(Out); in printState() 836 return CDataPtr->getBegin(); in getContainerBegin() 853 if (CDataPtr && CDataPtr->getBegin()) in createContainerBegin()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Initialization.h | 663 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast() 664 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast() 674 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast() 682 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast() 683 TypeRange.getBegin(), TypeRange.getEnd()); in CreateFunctionalCast()
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
H A D | Tokens.cpp | 46 return SM.isBeforeInTranslationUnit(T.location(), R.getBegin()); in getTokensCovering() 119 auto DecFirst = SM.getDecomposedExpansionLoc(Candidate.getBegin()); in spelledForExpandedSlow() 127 auto Dec = SM.getDecomposedLoc(SM.getExpansionRange(Prev).getBegin()); in spelledForExpandedSlow() 248 const auto B = ExpandedTokIndex.find(R.getBegin()); in expandedTokens() 654 if (!Range.getBegin().isFileID()) { in MacroExpands() 655 Range.setBegin(SM.getExpansionLoc(Range.getBegin())); in MacroExpands() 656 assert(Collector->Expansions.count(Range.getBegin()) && in MacroExpands() 660 Collector->Expansions[Range.getBegin()] = Range.getEnd(); in MacroExpands()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | SourceLocation.h | 222 SourceLocation getBegin() const { return B; } 286 SourceLocation getBegin() const { return Range.getBegin(); }
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | UncountedCallArgsChecker.cpp | 260 : CallArg->getSourceRange().getBegin(); in reportBug() 271 const SourceLocation SrcLocToReport = CallArg->getSourceRange().getBegin(); in reportBugOnThis()
|