Searched refs:CtorDecl (Results 1 – 2 of 2) sorted by relevance
302 Matcher<Decl> CtorDecl = constructMatcher( in TEST_F() local309 EXPECT_TRUE(matches("struct Foo { Foo() : foo(1) {} int foo; };", CtorDecl)); in TEST_F()310 EXPECT_FALSE(matches("struct Foo { Foo() {} int foo; };", CtorDecl)); in TEST_F()311 EXPECT_FALSE(matches("struct Foo { Foo() : bar(1) {} int bar; };", CtorDecl)); in TEST_F()
428 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local429 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit()431 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit()432 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit()433 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit()455 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit()3605 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local3608 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization()3618 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()3627 Best->FoundDecl, CtorDecl, DestType, HadMultipleCandidates, in TryConstructorInitialization()[all …]