[Lldb-commits] [lldb] r145892 - /lldb/trunk/source/Symbol/ClangASTType.cpp

Sean Callanan scallanan at apple.com
Mon Dec 5 17:44:41 PST 2011


Author: spyffe
Date: Mon Dec  5 19:44:41 2011
New Revision: 145892

URL: http://llvm.org/viewvc/llvm-project?rev=145892&view=rev
Log:
Set a flag on the AST type dump to see Objective-C
methods.  The Clang dump is now much more verbose,
but when somebody types "target modules lookup -t"
that is typically what they're looking for.

Modified:
    lldb/trunk/source/Symbol/ClangASTType.cpp

Modified: lldb/trunk/source/Symbol/ClangASTType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTType.cpp?rev=145892&r1=145891&r2=145892&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTType.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTType.cpp Mon Dec  5 19:44:41 2011
@@ -1285,7 +1285,11 @@
                 {
                     clang::ObjCInterfaceDecl *class_interface_decl = objc_class_type->getInterface();
                     if (class_interface_decl)
-                        class_interface_decl->print(llvm_ostrm, ast_context->getPrintingPolicy(), s->GetIndentLevel());
+                    {
+                        clang::PrintingPolicy policy = ast_context->getPrintingPolicy();
+                        policy.Dump = 1;
+                        class_interface_decl->print(llvm_ostrm, policy, s->GetIndentLevel());
+                    }
                 }
             }
             break;





More information about the lldb-commits mailing list