| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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 | 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()
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | InductiveRangeCheckElimination.cpp | 171 const SCEV *getBegin() const { return Begin; } in getBegin() function in __anonf68f20f70111::InductiveRangeCheck 208 const SCEV *getBegin() const { return Begin; } in getBegin() function in __anonf68f20f70111::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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugSuppression.cpp | 75 return isLessOrEqual(Larger.getBegin(), Smaller.getBegin(), SM) && in fullyContains()
|
| /src/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()
|