Searched refs:CtorDecl (Results 1 – 6 of 6) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GTestChecker.cpp | 192 const CXXConstructorDecl *CtorDecl = CtorCall->getDecl(); in checkPostCall() local 193 const CXXRecordDecl *CtorParent = CtorDecl->getParent(); in checkPostCall() 197 unsigned ParamCount = CtorDecl->getNumParams(); in checkPostCall() 203 if (CtorDecl->isCopyConstructor() && ParamCount == 1) { in checkPostCall() 222 if (ParamCount == 1 && CtorDecl->getParamDecl(0)->getType() == BoolTy) { in checkPostCall() 228 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>(); in checkPostCall()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedObjectChecker.cpp | 106 getConstructedRegion(const CXXConstructorDecl *CtorDecl, 136 const auto *CtorDecl = dyn_cast_or_null<CXXConstructorDecl>( in checkEndFunction() local 138 if (!CtorDecl) in checkEndFunction() 141 if (!CtorDecl->isUserProvided()) in checkEndFunction() 144 if (CtorDecl->getParent()->isUnion()) in checkEndFunction() 148 if (willObjectBeAnalyzedLater(CtorDecl, Context)) in checkEndFunction() 151 const TypedValueRegion *R = getConstructedRegion(CtorDecl, Context); in checkEndFunction() 453 getConstructedRegion(const CXXConstructorDecl *CtorDecl, in getConstructedRegion() argument 457 Context.getSValBuilder().getCXXThis(CtorDecl, Context.getStackFrame()); in getConstructedRegion()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.cpp | 46 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration() local 47 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration() 165 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors() local 166 USRSet.insert(getUSRForDecl(CtorDecl)); in addUSRsOfCtorDtors()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.cpp | 437 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FuncDecl)) { in initFieldsGlobalsAndFuncs() local 438 for (const auto *Init : CtorDecl->inits()) { in initFieldsGlobalsAndFuncs() 450 for (const FieldDecl *F : CtorDecl->getParent()->fields()) in initFieldsGlobalsAndFuncs()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 555 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local 556 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit() 558 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit() 559 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit() 560 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit() 582 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit() 4336 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local 4349 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization() 4359 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization() 4379 Best->FoundDecl, CtorDecl, DestArrayType, HadMultipleCandidates, in TryConstructorInitialization() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporterVisitors.cpp | 1447 const auto *CtorDecl = CE->getConstructor(); in isTrivialCopyOrMoveCtor() local 1449 return CtorDecl->isCopyOrMoveConstructor() && CtorDecl->isTrivial(); in isTrivialCopyOrMoveCtor()
|