/freebsd/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/contrib/llvm-project/clang/lib/AST/ |
H A D | ODRDiagsEmitter.cpp | 84 << FirstMethod->getSourceRange() << DiffType << FirstMethodType in diagnoseSubMismatchMethodParameters() 94 << SecondMethod->getSourceRange() << DiffType << SecondMethodType in diagnoseSubMismatchMethodParameters() 161 << FirstField->getSourceRange() << DiffType; in diagnoseSubMismatchField() 167 << SecondModule.empty() << SecondModule << SecondField->getSourceRange() << DiffType; in diagnoseSubMismatchField() 202 << FirstII << FirstField->getBitWidth()->getSourceRange(); in diagnoseSubMismatchField() 204 << SecondII << SecondField->getBitWidth()->getSourceRange(); in diagnoseSubMismatchField() 236 << FirstII << FirstInitializer->getSourceRange(); in diagnoseSubMismatchField() 238 << SecondII << SecondInitializer->getSourceRange(); in diagnoseSubMismatchField() 259 << FirstTD->getSourceRange() << DiffType; in diagnoseSubMismatchTypedef() 265 << SecondModule << SecondTD->getSourceRange() << DiffType; in diagnoseSubMismatchTypedef() [all …]
|
H A D | ASTTypeTraits.cpp | 237 SourceRange DynTypedNode::getSourceRange() const { in getSourceRange() function in DynTypedNode 239 return CCI->getSourceRange(); in getSourceRange() 241 return NNSL->getSourceRange(); in getSourceRange() 243 return TL->getSourceRange(); in getSourceRange() 245 return D->getSourceRange(); in getSourceRange() 247 return S->getSourceRange(); in getSourceRange() 249 return TAL->getSourceRange(); in getSourceRange() 253 return CBS->getSourceRange(); in getSourceRange() 257 return P->getSourceRange(); in getSourceRange() 259 return C->getSourceRange(); in getSourceRange()
|
H A D | DeclTemplate.cpp | 677 SourceRange TemplateTypeParmDecl::getSourceRange() const { in getSourceRange() function in TemplateTypeParmDecl 680 getDefaultArgument().getSourceRange().getEnd()); in getSourceRange() 686 return TypeDecl::getSourceRange(); in getSourceRange() 796 SourceRange NonTypeTemplateParmDecl::getSourceRange() const { in getSourceRange() function in NonTypeTemplateParmDecl 799 getDefaultArgument().getSourceRange().getEnd()); in getSourceRange() 800 return DeclaratorDecl::getSourceRange(); in getSourceRange() 804 return hasDefaultArgument() ? getDefaultArgument().getSourceRange().getBegin() in getDefaultArgumentLoc() 1002 ClassTemplateSpecializationDecl::getSourceRange() const { in getSourceRange() function in ClassTemplateSpecializationDecl 1013 return CTPSD->getSourceRange(); in getSourceRange() 1014 return Pattern.get<ClassTemplateDecl *>()->getSourceRange(); in getSourceRange() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaBoundsSafety.cpp | 61 << Kind << FD->getSourceRange(); in CheckCountedByAttrOnField() 132 << (ShouldWarn ? 1 : 0) << Kind << FD->getSourceRange(); in CheckCountedByAttrOnField() 140 << Kind << E->getSourceRange(); in CheckCountedByAttrOnField() 148 << Kind << E->getSourceRange(); in CheckCountedByAttrOnField() 159 << CountDecl << Kind << E->getSourceRange(); in CheckCountedByAttrOnField() 163 << CountDecl << CountDecl->getSourceRange(); in CheckCountedByAttrOnField() 170 << Kind << CountFD->getSourceRange(); in CheckCountedByAttrOnField() 181 << CountFD << Kind << FieldTy->isArrayType() << E->getSourceRange(); in CheckCountedByAttrOnField() 184 << CountFD << CountFD->getSourceRange(); in CheckCountedByAttrOnField()
|
H A D | SemaOpenCL.cpp | 44 << D->getSourceRange(); in handleAccessAttr() 86 << AL << E->getSourceRange(); in handleSubGroupSize() 369 << Call->getDirectCallee() << Arg0->getSourceRange(); in checkPipeArg() 389 << "read_only" << Arg0->getSourceRange(); in checkPipeArg() 403 << "write_only" << Arg0->getSourceRange(); in checkPipeArg() 427 << ArgIdx->getType() << ArgIdx->getSourceRange(); in checkPipePacketType() 456 << Call->getArg(1)->getType() << Call->getArg(1)->getSourceRange(); in checkBuiltinRWPipe() 466 << Arg2->getType() << Arg2->getSourceRange(); in checkBuiltinRWPipe() 476 << Call->getDirectCallee() << Call->getSourceRange(); in checkBuiltinRWPipe() 495 << Call->getArg(1)->getType() << Call->getArg(1)->getSourceRange(); in checkBuiltinReserveRWPipe() [all …]
|
H A D | SemaARM.cpp | 41 << "first" << FirstArgType << Arg0->getSourceRange(); in BuiltinARMMemoryTaggingCall() 50 << "second" << SecArgType << Arg1->getSourceRange(); in BuiltinARMMemoryTaggingCall() 68 << "first" << FirstArgType << Arg0->getSourceRange(); in BuiltinARMMemoryTaggingCall() 90 << "first" << FirstArgType << Arg0->getSourceRange(); in BuiltinARMMemoryTaggingCall() 95 << "second" << SecArgType << Arg1->getSourceRange(); in BuiltinARMMemoryTaggingCall() 112 << "first" << FirstArgType << Arg0->getSourceRange(); in BuiltinARMMemoryTaggingCall() 142 << "first" << ArgTypeA << ArgA->getSourceRange(); in BuiltinARMMemoryTaggingCall() 146 << "second" << ArgTypeB << ArgB->getSourceRange(); in BuiltinARMMemoryTaggingCall() 158 << ArgTypeA << ArgTypeB << ArgA->getSourceRange() in BuiltinARMMemoryTaggingCall() 159 << ArgB->getSourceRange(); in BuiltinARMMemoryTaggingCall() [all …]
|
H A D | SemaExpr.cpp | 209 SourceLocation DeclBegin = First->getSourceRange().getBegin(); in MaybeSuggestAddingStaticToDecl() 503 return E ? E->getSourceRange() : SourceRange(); in getExprRange() 571 << UO->getSubExpr()->getSourceRange()); in CheckForNullPointerDereference() 1496 << LHS->getSourceRange() << RHS->getSourceRange() << (int)ACK << LEnum in checkEnumArithmeticConversions() 1530 S.Diag(Loc, DiagID) << LHS->getSourceRange() << RHS->getSourceRange() in checkEnumArithmeticConversions() 1761 << Types[i]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr() 1774 << Types[j]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr() 1779 << Types[i]->getTypeLoc().getSourceRange() in CreateGenericSelectionExpr() 1829 ? ControllingExpr->getSourceRange() in CreateGenericSelectionExpr() 1830 : ControllingType->getTypeLoc().getSourceRange(); in CreateGenericSelectionExpr() [all …]
|
H A D | SemaStmtAsm.cpp | 76 << BadArgument->getSourceRange(); in emitAndFixInvalidAsmCastLValue() 79 << BadArgument->getSourceRange(); in emitAndFixInvalidAsmCastLValue() 185 << E->getSourceRange(); in checkExprMemoryConstraintCompat() 308 << OutputExpr->getSourceRange()); in ActOnGCCAsmStmt() 340 << OutputExpr->getSourceRange()); in ActOnGCCAsmStmt() 386 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() 403 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() 425 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() 436 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() 444 << InputExpr->getSourceRange()); in ActOnGCCAsmStmt() [all …]
|
H A D | SemaChecking.cpp | 141 << /*is non object*/ 0 << Call->getSourceRange(); in checkArgCountAtLeast() 150 << /*is non object*/ 0 << Call->getSourceRange(); in checkArgCountAtMost() 174 << /*is non object*/ 0 << Call->getArg(1)->getSourceRange(); in checkArgCount() 196 << DiagMsgKind << Arg->getSourceRange(); in checkBuiltinVerboseTrap() 229 << ValArg->getSourceRange(); in BuiltinAnnotation() 238 << StrArg->getSourceRange(); in BuiltinAnnotation() 251 << TheCall->getCallee()->getSourceRange(); in BuiltinMSVCAnnotation() 260 << Arg->getSourceRange(); in BuiltinMSVCAnnotation() 299 << TheCall->getSourceRange(); in BuiltinFunctionStart() 438 << CkdOperation << Ty << Arg.get()->getSourceRange(); in BuiltinOverflow() [all …]
|
H A D | SemaWasm.cpp | 36 << ArgIndex + 1 << ArgExpr->getSourceRange(); in CheckWasmBuiltinArgIsTable() 49 << ArgIndex + 1 << ArgExpr->getSourceRange(); in CheckWasmBuiltinArgIsInteger() 153 << 2 << 1 << NewElemArg->getSourceRange(); in BuiltinWasmTableGrow() 180 << 3 << 1 << NewElemArg->getSourceRange(); in BuiltinWasmTableFill() 208 << 2 << 1 << TableYArg->getSourceRange(); in BuiltinWasmTableCopy()
|
H A D | SemaAMDGPU.cpp | 45 << ArgExpr->getSourceRange(); in CheckAMDGCNBuiltinFunctionCall() 48 << ArgExpr->getSourceRange(); in CheckAMDGCNBuiltinFunctionCall() 84 << 0 << ArgExpr->getSourceRange(); in CheckAMDGCNBuiltinFunctionCall() 91 << 0 << ArgExpr->getSourceRange(); in CheckAMDGCNBuiltinFunctionCall() 274 << &Attr << Exprs[i]->getSourceRange(); in checkAMDGPUMaxNumWorkGroupsArguments()
|
H A D | SemaM68k.cpp | 40 << NumParamsExpr->getSourceRange(); in handleInterruptAttr() 48 << NumParamsExpr->getSourceRange(); in handleInterruptAttr()
|
H A D | AnalysisBasedWarnings.cpp | 168 SourceRange DiagRange = B->getSourceRange(); in logicAlwaysTrue() 176 SourceRange DiagRange = B->getSourceRange(); in compareAlwaysTrue() 186 SourceRange DiagRange = B->getSourceRange(); in compareBitwiseEquality() 195 SourceRange DiagRange = B->getSourceRange(); in compareBitwiseOr() 833 Fixit1 = FixItHint::CreateRemoval(If->getSourceRange()); in CreateIfFixit() 847 << Use.getUser()->getSourceRange(); in DiagUninitUse() 856 << VD->getSourceRange(); in DiagUninitUse() 858 << IsCapturedByBlock << Use.getUser()->getSourceRange(); in DiagUninitUse() 901 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 911 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() [all …]
|
H A D | SemaMSP430.cpp | 61 << NumParamsExpr->getSourceRange(); in handleInterruptAttr() 69 << NumParamsExpr->getSourceRange(); in handleInterruptAttr()
|
/freebsd/contrib/llvm-project/clang/lib/Edit/ |
H A D | RewriteObjCFoundationAPI.cpp | 86 commit.replaceWithInner(Msg->getSourceRange(), in rewriteObjCRedundantCallWithLiteral() 87 Msg->getArg(0)->getSourceRange()); in rewriteObjCRedundantCallWithLiteral() 176 SourceRange RecRange = Receiver->getSourceRange(); in maybePutParensOnReceiver() 189 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToSubscriptGetCommon() 190 SourceRange RecRange = Rec->getSourceRange(); in rewriteToSubscriptGetCommon() 191 SourceRange ArgRange = Msg->getArg(0)->getSourceRange(); in rewriteToSubscriptGetCommon() 237 SourceRange MsgRange = Msg->getSourceRange(); in rewriteToArraySubscriptSet() 238 SourceRange RecRange = Rec->getSourceRange(); in rewriteToArraySubscriptSet() 239 SourceRange Arg0Range = Msg->getArg(0)->getSourceRange(); in rewriteToArraySubscriptSet() 240 SourceRange Arg1Range = Msg->getArg(1)->getSourceRange(); in rewriteToArraySubscriptSet() [all …]
|
/freebsd/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()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ReachableCode.cpp | 230 *SilenceableCondVal = E->getSourceRange(); in isConfigurationValue() 265 UO->getSubExpr()->IgnoreCasts()->getSourceRange()) in isConfigurationValue() 266 *SilenceableCondVal = UO->getSourceRange(); in isConfigurationValue() 610 R1 = UO->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 615 R1 = CAO->getLHS()->getSourceRange(); in GetUnreachableLoc() 616 R2 = CAO->getRHS()->getSourceRange(); in GetUnreachableLoc() 627 R1 = ME->getSourceRange(); in GetUnreachableLoc() 632 R1 = ASE->getLHS()->getSourceRange(); in GetUnreachableLoc() 633 R2 = ASE->getRHS()->getSourceRange(); in GetUnreachableLoc() 638 R1 = CSC->getSubExpr()->getSourceRange(); in GetUnreachableLoc() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Source.cpp | 27 return E->getSourceRange(); in getRange() 29 return S->getSourceRange(); in getRange() 31 return D->getSourceRange(); in getRange()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclFriend.h | 147 SourceRange getSourceRange() const override LLVM_READONLY { in getSourceRange() function 150 return FD->getSourceRange(); in getSourceRange() 152 return FTD->getSourceRange(); in getSourceRange() 154 return CTD->getSourceRange(); in getSourceRange() 157 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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | UncountedCallArgsChecker.cpp | 260 : CallArg->getSourceRange().getBegin(); in reportBug() 264 Report->addRange(CallArg->getSourceRange()); in reportBug() 271 const SourceLocation SrcLocToReport = CallArg->getSourceRange().getBegin(); in reportBugOnThis() 277 Report->addRange(CallArg->getSourceRange()); in reportBugOnThis()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PreprocessingRecord.cpp | 84 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/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
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()
|