Searched refs:CtorDecl (Results 1 – 7 of 7) sorted by relevance
| /src/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()
|
| /src/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()
|
| /src/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()
|
| /src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | ASTOps.cpp | 274 if (const auto *CtorDecl = dyn_cast<CXXConstructorDecl>(&FD)) in getReferencedDecls() local 275 Visitor.TraverseConstructorInits(CtorDecl); in getReferencedDecls()
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | PtrTypesSemantics.cpp | 285 if (auto *CtorDecl = dyn_cast<CXXConstructorDecl>(D)) { in IsFunctionTrivial() local 286 for (auto *CtorInit : CtorDecl->inits()) { in IsFunctionTrivial()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 617 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local 618 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit() 620 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit() 621 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit() 622 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit() 644 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit() 4473 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local 4486 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization() 4496 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization() 4516 Best->FoundDecl, CtorDecl, DestArrayType, HadMultipleCandidates, in TryConstructorInitialization() [all …]
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporterVisitors.cpp | 1451 const auto *CtorDecl = CE->getConstructor(); in isTrivialCopyOrMoveCtor() local 1453 return CtorDecl->isCopyOrMoveConstructor() && CtorDecl->isTrivial(); in isTrivialCopyOrMoveCtor()
|