]> granicus.if.org Git - clang/commitdiff
Revert r283102 (Typo in the phabricator link)
authorAlex Lorenz <arphaman@gmail.com>
Mon, 3 Oct 2016 12:17:56 +0000 (12:17 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 3 Oct 2016 12:17:56 +0000 (12:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283104 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/DeclPrinter.cpp
test/SemaCXX/cxx11-ast-print.cpp

index 6d47dd7b8837608be9f65e498139c9ea8774fb11..7e786990becb1724a037488c8dbd69a650e3256d 100644 (file)
@@ -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<ConstructorUsingShadowDecl>(Shadow)) {
-      assert(Shadow->getDeclContext() == ConstructorShadow->getDeclContext());
-      Out << *ConstructorShadow->getNominatedBaseClass();
-      return;
-    }
-  }
   Out << *D;
 }
 
index 9c617af4e95fd42409b18188cfc665dd0b09480f..1eeb67a3d9b345735b4c0e149f027cb5142c31f4 100644 (file)
@@ -43,14 +43,6 @@ template <class C, C...> const char *operator"" _suffix();
 // 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: ;