Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp109 getConstructedRegion(const CXXConstructorDecl *CtorDecl,
139 const auto *CtorDecl = dyn_cast_or_null<CXXConstructorDecl>( in checkEndFunction() local
141 if (!CtorDecl) in checkEndFunction()
144 if (!CtorDecl->isUserProvided()) in checkEndFunction()
147 if (CtorDecl->getParent()->isUnion()) in checkEndFunction()
151 if (willObjectBeAnalyzedLater(CtorDecl, Context)) in checkEndFunction()
154 const TypedValueRegion *R = getConstructedRegion(CtorDecl, Context); in checkEndFunction()
456 getConstructedRegion(const CXXConstructorDecl *CtorDecl, in getConstructedRegion() argument
460 Context.getSValBuilder().getCXXThis(CtorDecl, Context.getStackFrame()); in getConstructedRegion()
/openbsd-src/gnu/llvm/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()
165 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors() local
166 USRSet.insert(getUSRForDecl(CtorDecl)); in addUSRsOfCtorDtors()
/openbsd-src/gnu/llvm/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp246 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(&DeclCtx)) { in Environment() local
247 for (const auto *Init : CtorDecl->inits()) { in Environment()
339 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FuncDecl)) { in pushCallInternal() local
340 for (const auto *Init : CtorDecl->inits()) { in pushCallInternal()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaInit.cpp552 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local
553 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit()
555 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit()
556 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit()
557 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit()
579 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit()
4228 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local
4241 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization()
4251 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()
4271 Best->FoundDecl, CtorDecl, DestArrayType, HadMultipleCandidates, in TryConstructorInitialization()
[all …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp1422 const auto *CtorDecl = CE->getConstructor(); in isTrivialCopyOrMoveCtor() local
1424 return CtorDecl->isCopyOrMoveConstructor() && CtorDecl->isTrivial(); in isTrivialCopyOrMoveCtor()