Home
last modified time | relevance | path

Searched refs:CtorDecl (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DGTestChecker.cpp193 const CXXConstructorDecl *CtorDecl = CtorCall->getDecl(); in checkPostCall() local
194 const CXXRecordDecl *CtorParent = CtorDecl->getParent(); in checkPostCall()
198 unsigned ParamCount = CtorDecl->getNumParams(); in checkPostCall()
204 if (CtorDecl->isCopyConstructor() && ParamCount == 1) { in checkPostCall()
223 if (ParamCount == 1 && CtorDecl->getParamDecl(0)->getType() == BoolTy) { in checkPostCall()
229 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>(); in checkPostCall()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp111 getConstructedRegion(const CXXConstructorDecl *CtorDecl,
141 const auto *CtorDecl = dyn_cast_or_null<CXXConstructorDecl>( in checkEndFunction() local
143 if (!CtorDecl) in checkEndFunction()
146 if (!CtorDecl->isUserProvided()) in checkEndFunction()
149 if (CtorDecl->getParent()->isUnion()) in checkEndFunction()
153 if (willObjectBeAnalyzedLater(CtorDecl, Context)) in checkEndFunction()
156 const TypedValueRegion *R = getConstructedRegion(CtorDecl, Context); in checkEndFunction()
458 getConstructedRegion(const CXXConstructorDecl *CtorDecl, in getConstructedRegion() argument
462 Context.getSValBuilder().getCXXThis(CtorDecl, Context.getStackFrame()); in getConstructedRegion()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp46 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration() local
47 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration()
167 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors() local
168 USRSet.insert(getUSRForDecl(CtorDecl)); in addUSRsOfCtorDtors()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaInit.cpp539 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local
540 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit()
542 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit()
543 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit()
544 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit()
566 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit()
4171 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local
4184 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization()
4194 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()
4214 Best->FoundDecl, CtorDecl, DestArrayType, HadMultipleCandidates, in TryConstructorInitialization()
[all …]