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.cpp416 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in PerformEmptyInit() local
417 CXXRecordDecl *R = CtorDecl->getParent(); in PerformEmptyInit()
419 if (CtorDecl->getMinRequiredArguments() == 0 && in PerformEmptyInit()
420 CtorDecl->isExplicit() && R->getDeclName() && in PerformEmptyInit()
421 SemaRef.SourceMgr.isInSystemHeader(CtorDecl->getLocation())) { in PerformEmptyInit()
444 SemaRef.Diag(CtorDecl->getLocation(), in PerformEmptyInit()
3531 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in TryConstructorInitialization() local
3532 if (IsListInit && !Kind.AllowExplicit() && CtorDecl->isExplicit()) { in TryConstructorInitialization()
3541 CtorDecl, Best->FoundDecl.getAccess(), DestType, HadMultipleCandidates, in TryConstructorInitialization()
7254 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function); in Diagnose() local
[all …]