From: Alex Lorenz Date: Mon, 3 Oct 2016 12:17:56 +0000 (+0000) Subject: Revert r283102 (Typo in the phabricator link) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e387da0a61b392c051faa4d9a6eb773376e3ec8b;p=clang Revert r283102 (Typo in the phabricator link) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283104 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp index 6d47dd7b88..7e786990be 100644 --- a/lib/AST/DeclPrinter.cpp +++ b/lib/AST/DeclPrinter.cpp @@ -1346,17 +1346,6 @@ void DeclPrinter::VisitUsingDecl(UsingDecl *D) { if (D->hasTypename()) Out << "typename "; D->getQualifier()->print(Out, Policy); - - // Use the correct record name when the using declaration is used for - // inheriting constructors. - for (const auto *Shadow : D->shadows()) { - if (const auto *ConstructorShadow = - dyn_cast(Shadow)) { - assert(Shadow->getDeclContext() == ConstructorShadow->getDeclContext()); - Out << *ConstructorShadow->getNominatedBaseClass(); - return; - } - } Out << *D; } diff --git a/test/SemaCXX/cxx11-ast-print.cpp b/test/SemaCXX/cxx11-ast-print.cpp index 9c617af4e9..1eeb67a3d9 100644 --- a/test/SemaCXX/cxx11-ast-print.cpp +++ b/test/SemaCXX/cxx11-ast-print.cpp @@ -43,14 +43,6 @@ template const char *operator"" _suffix(); // CHECK: const char *PR23120 = operator""_suffix(); const char *PR23120 = U"𐐷"_suffix; -// PR28885 -struct A { - A(); -}; -struct B : A { - using A::A; // CHECK: using A::A; -}; // CHECK-NEXT: }; - // CHECK: ; ; // CHECK-NOT: ;