[cfe-commits] r93973 - /cfe/trunk/lib/Frontend/ASTConsumers.cpp

Zhongxing Xu xuzhongxing at gmail.com
Tue Jan 19 19:21:28 PST 2010


Author: zhongxingxu
Date: Tue Jan 19 21:21:28 2010
New Revision: 93973

URL: http://llvm.org/viewvc/llvm-project?rev=93973&view=rev
Log:
Add a missing case for DeclContext printer.

Modified:
    cfe/trunk/lib/Frontend/ASTConsumers.cpp

Modified: cfe/trunk/lib/Frontend/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTConsumers.cpp?rev=93973&r1=93972&r2=93973&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/ASTConsumers.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTConsumers.cpp Tue Jan 19 21:21:28 2010
@@ -421,6 +421,11 @@
       Out << "<namespace alias> " << NAD->getNameAsString() << "\n";
       break;
     }
+    case Decl::ClassTemplate: {
+      ClassTemplateDecl *CTD = cast<ClassTemplateDecl>(*I);
+      Out << "<class template> " << CTD->getNameAsString() << '\n';
+      break;
+    }
     default:
       Out << "DeclKind: " << DK << '"' << I->getDeclKindName() << "\"\n";
       assert(0 && "decl unhandled");





More information about the cfe-commits mailing list