Home
last modified time | relevance | path

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

/external/clang/unittests/ASTMatchers/Dynamic/
DRegistryTest.cpp302 Matcher<Decl> CtorDecl = constructMatcher( in TEST_F() local
309 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()
/external/clang/lib/Sema/
DSemaInit.cpp428 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local
429 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() local
3608 if (!CtorDecl->getParent()->allowConstDefaultInit()) { in TryConstructorInitialization()
3618 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()
3627 Best->FoundDecl, CtorDecl, DestType, HadMultipleCandidates, in TryConstructorInitialization()
[all …]