Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DGTestChecker.cpp194 const CXXConstructorDecl *CtorDecl = CtorCall->getDecl(); in checkPostCall() local
195 const CXXRecordDecl *CtorParent = CtorDecl->getParent(); in checkPostCall()
199 unsigned ParamCount = CtorDecl->getNumParams(); in checkPostCall()
205 if (CtorDecl->isCopyConstructor() && ParamCount == 1) { in checkPostCall()
224 if (ParamCount == 1 && CtorDecl->getParamDecl(0)->getType() == BoolTy) { in checkPostCall()
230 auto *RefTy = CtorDecl->getParamDecl(0)->getType()->getAs<ReferenceType>(); in checkPostCall()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp109 getConstructedRegion(const CXXConstructorDecl *CtorDecl,
129 const auto *CtorDecl = dyn_cast_or_null<CXXConstructorDecl>( in checkEndFunction() local
131 if (!CtorDecl) in checkEndFunction()
134 if (!CtorDecl->isUserProvided()) in checkEndFunction()
137 if (CtorDecl->getParent()->isUnion()) in checkEndFunction()
141 if (willObjectBeAnalyzedLater(CtorDecl, Context)) in checkEndFunction()
144 const TypedValueRegion *R = getConstructedRegion(CtorDecl, Context); in checkEndFunction()
442 getConstructedRegion(const CXXConstructorDecl *CtorDecl, in getConstructedRegion() argument
445 Loc ThisLoc = Context.getSValBuilder().getCXXThis(CtorDecl, in getConstructedRegion()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp45 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration() local
46 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration()
131 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors() local
132 USRSet.insert(getUSRForDecl(CtorDecl)); in addUSRsOfCtorDtors()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaInit.cpp440 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local
441 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit()
443 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit()
444 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit()
445 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit()
467 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit()
3953 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local
3956 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization()
3966 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()
3974 Best->FoundDecl, CtorDecl, DestArrayType, HadMultipleCandidates, in TryConstructorInitialization()
[all …]