| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/ |
| H A D | FixIt.h | 32 inline CharSourceRange getSourceRange(const SourceRange &Range) { in getSourceRange() function 37 inline CharSourceRange getSourceRange(const SourceLocation &Loc) { in getSourceRange() function 43 template <typename T> CharSourceRange getSourceRange(const T &Node) { in getSourceRange() function 44 return CharSourceRange::getTokenRange(Node.getSourceRange()); in getSourceRange() 51 return internal::getText(internal::getSourceRange(Node), Context); in getText() 57 return FixItHint::CreateRemoval(internal::getSourceRange(Node)); in createRemoval() 64 return FixItHint::CreateReplacement(internal::getSourceRange(Destination), in createReplacement() 71 return FixItHint::CreateReplacement(internal::getSourceRange(Destination), in createReplacement()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 85 commit.replaceWithInner(Msg->getSourceRange(), in rewriteObjCRedundantCallWithLiteral() 188 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToSubscriptGetCommon() 189 SourceRange RecRange = Rec->getSourceRange(); in rewriteToSubscriptGetCommon() 236 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToArraySubscriptSet() 237 SourceRange RecRange = Rec->getSourceRange(); in rewriteToArraySubscriptSet() 270 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToDictionarySubscriptSet() 271 SourceRange RecRange = Rec->getSourceRange(); in rewriteToDictionarySubscriptSet() 388 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToArrayLiteral() 957 SourceRange Range = E->getSourceRange(); in objectifyExpr() 1105 << Msg->getSourceRange(); in rewriteToNumericBoxedExpression() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTTypeTraits.cpp | 181 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange() function in DynTypedNode 183 return CCI->getSourceRange(); in getSourceRange() 185 return NNSL->getSourceRange(); in getSourceRange() 187 return TL->getSourceRange(); in getSourceRange() 189 return D->getSourceRange(); in getSourceRange() 191 return S->getSourceRange(); in getSourceRange() 193 return TAL->getSourceRange(); in getSourceRange() 197 return CBS->getSourceRange(); in getSourceRange()
|
| H A D | CommentSema.cpp | 128 << Comment->getSourceRange(); in checkFunctionDeclVerbatimLine() 167 << Comment->getSourceRange(); in checkContainerDeclVerbatimLine() 217 << Comment->getSourceRange(); in checkContainerDecl() 501 << HET->getSourceRange(); in actOnHTMLEndTag() 531 << HST->getSourceRange() << HET->getSourceRange(); in actOnHTMLEndTag() 536 << HST->getSourceRange(); in actOnHTMLEndTag() 538 << HET->getSourceRange(); in actOnHTMLEndTag() 579 << Command->getSourceRange(); in checkBlockCommandEmptyParagraph() 617 << Command->getSourceRange(); in checkReturnsCommand() 626 << Command->getSourceRange(); in checkReturnsCommand() [all …]
|
| H A D | ParentMapContext.cpp | 224 auto SR = Child->getSourceRange(); in AscendIgnoreUnlessSpelledInSource() 227 if (C->getSourceRange() == SR) in AscendIgnoreUnlessSpelledInSource() 232 if (C->getSourceRange() == SR || C->isElidable()) in AscendIgnoreUnlessSpelledInSource() 237 if (C->getSourceRange() == SR) in AscendIgnoreUnlessSpelledInSource() 242 if (C->getSourceRange() == SR) in AscendIgnoreUnlessSpelledInSource()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransGCCalls.cpp | 41 E->getSourceRange()); in VisitCallExpr() 56 DRE->getSourceRange()); in VisitCallExpr() 57 TA.replace(DRE->getSourceRange(), "CFBridgingRelease"); in VisitCallExpr() 62 DRE->getSourceRange()); in VisitCallExpr()
|
| H A D | TransRetainReleaseDealloc.cpp | 76 E->getBeginLoc(), E->getSourceRange()); in VisitObjCMessageExpr() 128 Pass.TA.replace(E->getSourceRange(), "self"); in VisitObjCMessageExpr() 143 SourceRange RecRange = rec->getSourceRange(); in VisitObjCMessageExpr() 150 Pass.TA.replace(RecContainer->getSourceRange(), RecRange); in VisitObjCMessageExpr() 158 Pass.TA.replace(RecContainer->getSourceRange(), RecRange); in VisitObjCMessageExpr() 381 RecRange = Rec->getSourceRange(); in checkForGCDOrXPC() 444 Pass.TA.replace(bopE->getSourceRange(), bopE->getRHS()->getSourceRange()); in tryRemoving()
|
| H A D | TransAPIUses.cpp | 79 parm->getSourceRange()) in VisitObjCMessageExpr() 97 Pass.TA.replace(E->getSourceRange(), getNilString(Pass)); in VisitObjCMessageExpr()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 561 R1 = UO->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 566 R1 = CAO->getLHS()->getSourceRange(); in GetUnreachableLoc() 567 R2 = CAO->getRHS()->getSourceRange(); in GetUnreachableLoc() 578 R1 = ME->getSourceRange(); in GetUnreachableLoc() 583 R1 = ASE->getLHS()->getSourceRange(); in GetUnreachableLoc() 584 R2 = ASE->getRHS()->getSourceRange(); in GetUnreachableLoc() 589 R1 = CSC->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 594 R1 = CE->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 602 R1 = CSC->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 607 R1 = S->getSourceRange(); in GetUnreachableLoc() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 331 ranges.push_back(drCond->getSourceRange()); in checkLoopConditionForFloat() 332 ranges.push_back(drInc->getSourceRange()); in checkLoopConditionForFloat() 382 CELoc, CE->getCallee()->getSourceRange()); in checkCall_bcmp() 425 CELoc, CE->getCallee()->getSourceRange()); in checkCall_bcopy() 465 CELoc, CE->getCallee()->getSourceRange()); in checkCall_bzero() 504 CELoc, CE->getCallee()->getSourceRange()); in checkCall_gets() 544 CELoc, CE->getCallee()->getSourceRange()); in checkCall_getpw() 818 CE->getCallee()->getSourceRange()); in checkDeprecatedOrUnsafeBufferHandling() 891 CE->getCallee()->getSourceRange()); in checkCall_rand() 990 MELoc, ME->getSourceRange()); in checkMsg_decodeValueOfObjCType() [all …]
|
| H A D | CloneChecker.cpp | 119 R->addRange(Group.front().getSourceRange()); in reportClones() 123 Group[i].getSourceRange()); in reportClones() 178 R->addRange(Pair.FirstCloneInfo.Mention->getSourceRange()); in reportSuspiciousClones() 184 Pair.SecondCloneInfo.Mention->getSourceRange()); in reportSuspiciousClones()
|
| H A D | IdenticalExprChecker.cpp | 92 Sr[0] = RHS->getSourceRange(); in checkBitwiseOrLogicalOp() 93 Sr[1] = B2->getRHS()->getSourceRange(); in checkBitwiseOrLogicalOp() 100 Sr[0] = RHS->getSourceRange(); in checkBitwiseOrLogicalOp() 101 Sr[1] = LHS->getSourceRange(); in checkBitwiseOrLogicalOp() 141 SourceRange Sr = Cond1->getSourceRange(); in VisitIfStmt() 283 Sr[0] = C->getTrueExpr()->getSourceRange(); in VisitConditionalOperator() 284 Sr[1] = C->getFalseExpr()->getSourceRange(); in VisitConditionalOperator()
|
| H A D | StackAddrEscapeChecker.cpp | 83 range = CL->getSourceRange(); in genName() 87 range = ARE->getSourceRange(); in genName() 93 range = BD->getSourceRange(); in genName() 99 range = VR->getDecl()->getSourceRange(); in genName() 105 range = TOR->getExpr()->getSourceRange(); in genName() 169 report->addRange(RetE->getSourceRange()); in EmitStackError()
|
| H A D | UnixAPIChecker.cpp | 200 Arg->getSourceRange()); in CheckOpenVariant() 211 CE->getArg(MaxArgCount)->getSourceRange()); in CheckOpenVariant() 266 oflagsEx->getSourceRange()); in CheckOpenVariant() 310 report->addRange(CE->getArg(0)->getSourceRange()); in CheckPthreadOnce() 355 report->addRange(arg->getSourceRange()); in ReportZeroByteAllocation()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclFriend.h | 148 SourceRange getSourceRange() const override LLVM_READONLY { in getSourceRange() function 151 return FD->getSourceRange(); in getSourceRange() 153 return FTD->getSourceRange(); in getSourceRange() 155 return CTD->getSourceRange(); in getSourceRange() 158 return DD->getSourceRange(); in getSourceRange()
|
| H A D | NestedNameSpecifier.h | 287 SourceRange getSourceRange() const LLVM_READONLY; 300 return getSourceRange().getBegin(); in getBeginLoc() 306 return getSourceRange().getEnd(); in getEndLoc() 483 SourceRange getSourceRange() const LLVM_READONLY { in getSourceRange() function 484 return NestedNameSpecifierLoc(Representation, Buffer).getSourceRange(); in getSourceRange()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 174 << Arg->getSourceRange(); in SemaBuiltinMSVCAnnotation() 357 << Call->getSourceRange(); in SemaBuiltinCallWithStaticChain() 364 << Call->getSourceRange(); in SemaBuiltinCallWithStaticChain() 378 << Call->getSourceRange(); in SemaBuiltinCallWithStaticChain() 6457 << Real->getSourceRange() << Imag->getSourceRange(); in SemaBuiltinComplex() 10914 << LHS->getSourceRange() << RHS->getSourceRange(); in CheckFloatComparison() 11729 << E->getLHS()->getSourceRange() << E->getRHS()->getSourceRange(); in CheckTautologicalComparison() 11751 << E->getLHS()->getSourceRange() << E->getRHS()->getSourceRange()); in CheckTautologicalComparison() 11764 << E->getLHS()->getSourceRange() << E->getRHS()->getSourceRange(); in CheckTautologicalComparison() 11888 << LHS->getSourceRange() << RHS->getSourceRange()); in AnalyzeComparison() [all …]
|
| H A D | SemaExpr.cpp | 1460 << LHS->getSourceRange() << RHS->getSourceRange() in checkEnumArithmeticConversions() 5594 << LHSExp->getSourceRange() << RHSExp->getSourceRange()); in CreateBuiltinArraySubscriptExpr() 8078 << Expr1->getSourceRange() << Expr2->getSourceRange(); in checkPointerIntegerMismatch() 8342 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); in CheckConditionalOperands() 9738 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); in InvalidOperands() 10237 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); in CheckVectorOperands() 10463 << LHS->getSourceRange() << RHS->getSourceRange(); in diagnoseArithmeticOnTwoFunctionPointers() 11167 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); in diagnoseDistinctPointerComparison() 11208 << LHS.get()->getSourceRange() << RHS.get()->getSourceRange(); in diagnoseFunctionPointerToVoidComparison() 11461 << LHS->getSourceRange() << RHS->getSourceRange() in diagnoseTautologicalComparison() [all …]
|
| H A D | SemaStmtAsm.cpp | 74 << BadArgument->getSourceRange(); in emitAndFixInvalidAsmCastLValue() 77 << BadArgument->getSourceRange(); in emitAndFixInvalidAsmCastLValue() 183 << E->getSourceRange(); in checkExprMemoryConstraintCompat() 305 << OutputExpr->getSourceRange()); in ActOnGCCAsmStmt() 337 << OutputExpr->getSourceRange()); in ActOnGCCAsmStmt() 427 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() 435 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() 499 << AsmString->getSourceRange(); in ActOnGCCAsmStmt() 688 << InTy << OutTy << OutputExpr->getSourceRange() in ActOnGCCAsmStmt() 689 << InputExpr->getSourceRange(); in ActOnGCCAsmStmt() [all …]
|
| H A D | SemaConcept.cpp | 116 << ConstraintExpression->getSourceRange(); in CheckConstraintExpression() 187 << SubstitutedAtomicExpr.get()->getSourceRange(); in calculateConstraintSatisfaction() 219 AtomicExpr->getSourceRange()); in calculateConstraintSatisfaction() 595 CSE->getSourceRange().getBegin(), in diagnoseWellFormedUnsatisfiedConstraintExpr() 602 S.Diag(SubstExpr->getSourceRange().getBegin(), in diagnoseWellFormedUnsatisfiedConstraintExpr() 623 S.Diag(SubstExpr->getSourceRange().getBegin(), in diagnoseWellFormedUnsatisfiedConstraintExpr() 726 S, ArgsAsWritten->arguments().front().getSourceRange().getBegin(), in substituteParameterMappings() 728 SourceRange(ArgsAsWritten->arguments()[0].getSourceRange().getBegin(), in substituteParameterMappings() 783 CSE->getSourceRange()); in fromConstraintExpr() 1023 << AmbiguousAtomic1->getSourceRange(); in MaybeEmitAmbiguousAtomicConstraintsDiagnostic() [all …]
|
| H A D | AnalysisBasedWarnings.cpp | 150 SourceRange DiagRange = B->getSourceRange(); in compareAlwaysTrue() 160 SourceRange DiagRange = B->getSourceRange(); in compareBitwiseEquality() 169 SourceRange DiagRange = B->getSourceRange(); in compareBitwiseOr() 820 << Use.getUser()->getSourceRange(); in DiagUninitUse() 829 << VD->getSourceRange(); in DiagUninitUse() 874 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 884 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() 896 Range = BO->getLHS()->getSourceRange(); in DiagUninitUse() 976 << Use.getUser()->getSourceRange(); in DiagUninitUse() 1496 << FirstRead->getSourceRange(); in diagnoseRepeatedUseOfWeak() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 9978 << DR.SecondDecl->getSourceRange(); in diagnoseOdrViolations() 10399 FirstRange = FirstStr->getSourceRange(); in diagnoseOdrViolations() 10402 FirstRange = FirstSA->getSourceRange(); in diagnoseOdrViolations() 10409 SecondRange = SecondSA->getSourceRange(); in diagnoseOdrViolations() 10670 << FirstInit->getSourceRange(); in diagnoseOdrViolations() 10675 << SecondInit->getSourceRange(); in diagnoseOdrViolations() 10988 FirstTemplate->getSourceRange(), in diagnoseOdrViolations() 10993 SecondTemplate->getSourceRange(), in diagnoseOdrViolations() 11073 FirstTemplate->getSourceRange(), in diagnoseOdrViolations() 11153 FirstTemplate->getSourceRange(), in diagnoseOdrViolations() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 83 SourceLocation Loc = PPE->getSourceRange().getBegin(); in isPreprocessedEntityIfInFileID() 203 SourceRange Range = PPE->getSourceRange(); in getLoc() 229 if (SourceMgr.isBeforeInTranslationUnit((*I)->getSourceRange().getEnd(), in findBeginLocalPreprocessedEntity() 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()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Transformer/ |
| H A D | SourceCode.h | 35 return maybeExtendRange(CharSourceRange::getTokenRange(Node.getSourceRange()), in getExtendedRange() 52 return getText(CharSourceRange::getTokenRange(Node.getSourceRange()), in getText()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/ |
| H A D | RefactoringCallbacks.cpp | 75 Sources, CharSourceRange::getTokenRange(From.getSourceRange()), Text); in replaceStmtWithText() 81 Lexer::getSourceText(CharSourceRange::getTokenRange(To.getSourceRange()), in replaceStmtWithStmt() 93 CharSourceRange::getTokenRange(FromMatch->getSourceRange()), ToText)); in run() 216 CharSourceRange::getTokenRange(NodeIter->second.getSourceRange()); in run()
|