r283104 - Revert r283102 (Typo in the phabricator link)

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 3 05:17:57 PDT 2016


Author: arphaman
Date: Mon Oct  3 07:17:56 2016
New Revision: 283104

URL: http://llvm.org/viewvc/llvm-project?rev=283104&view=rev
Log:
Revert r283102 (Typo in the phabricator link)

Modified:
    cfe/trunk/lib/AST/DeclPrinter.cpp
    cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp

Modified: cfe/trunk/lib/AST/DeclPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=283104&r1=283103&r2=283104&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclPrinter.cpp (original)
+++ cfe/trunk/lib/AST/DeclPrinter.cpp Mon Oct  3 07:17:56 2016
@@ -1346,17 +1346,6 @@ void DeclPrinter::VisitUsingDecl(UsingDe
   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<ConstructorUsingShadowDecl>(Shadow)) {
-      assert(Shadow->getDeclContext() == ConstructorShadow->getDeclContext());
-      Out << *ConstructorShadow->getNominatedBaseClass();
-      return;
-    }
-  }
   Out << *D;
 }
 

Modified: cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp?rev=283104&r1=283103&r2=283104&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp Mon Oct  3 07:17:56 2016
@@ -43,14 +43,6 @@ template <class C, C...> const char *ope
 // CHECK: const char *PR23120 = operator""_suffix<char32_t, 66615>();
 const char *PR23120 = U"𐐷"_suffix;
 
-// PR28885
-struct A {
-  A();
-};
-struct B : A {
-  using A::A; // CHECK:      using A::A;
-};            // CHECK-NEXT: };
-
 // CHECK: ;
 ;
 // CHECK-NOT: ;




More information about the cfe-commits mailing list