Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp106 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()
455 getConstructedRegion(const CXXConstructorDecl *CtorDecl, in getConstructedRegion() argument
459 Context.getSValBuilder().getCXXThis(CtorDecl, Context.getStackFrame()); in getConstructedRegion()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp39 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(FoundDecl)) in getCanonicalSymbolDeclaration() local
40 FoundDecl = CtorDecl->getParent(); in getCanonicalSymbolDeclaration()
158 for (const auto *CtorDecl : RecordDecl->ctors()) in addUSRsOfCtorDtors() local
159 USRSet.insert(getUSRForDecl(CtorDecl)); in addUSRsOfCtorDtors()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp280 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(&FD)) in getReferencedDecls() local
281 Visitor.traverseConstructorInits(CtorDecl); in getReferencedDecls()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp559 if (auto *CtorDecl = dyn_cast<CXXConstructorDecl>(D)) { in IsFunctionTrivial() local
560 for (auto *CtorInit : CtorDecl->inits()) { in IsFunctionTrivial()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp663 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local
664 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit()
666 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit()
667 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit()
668 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit()
690 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit()
4628 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local
4633 !(CtorDecl->isCopyOrMoveConstructor() && CtorDecl->isImplicit()) && in TryConstructorInitialization()
4653 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization()
4663 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp1403 const auto *CtorDecl = CE->getConstructor(); in isTrivialCopyOrMoveCtor() local
1405 return CtorDecl->isCopyOrMoveConstructor() && CtorDecl->isTrivial(); in isTrivialCopyOrMoveCtor()