forked from OSchip/llvm-project
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. llvm-svn: 145892
This commit is contained in:
parent
c77830d21e
commit
853604d596
|
@ -1285,7 +1285,11 @@ ClangASTType::DumpTypeDescription (clang::ASTContext *ast_context, clang_type_t
|
||||||
{
|
{
|
||||||
clang::ObjCInterfaceDecl *class_interface_decl = objc_class_type->getInterface();
|
clang::ObjCInterfaceDecl *class_interface_decl = objc_class_type->getInterface();
|
||||||
if (class_interface_decl)
|
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;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue