Improve AST dumping:

1) When dumping a declaration that declares a name for a type, also dump the named type.
 2) Add a #pragma clang __debug dump X, that dumps the lookup results for X in
    the current context.

llvm-svn: 257529
This commit is contained in:
Richard Smith
2016-01-12 21:59:26 +00:00
parent c81c8c66d5
commit ba3a4f917f
12 changed files with 89 additions and 4 deletions

View File

@@ -668,6 +668,9 @@ Parser::ParseExternalDeclaration(ParsedAttributesWithRange &attrs,
case tok::annot_pragma_ms_pragma:
HandlePragmaMSPragma();
return DeclGroupPtrTy();
case tok::annot_pragma_dump:
HandlePragmaDump();
return DeclGroupPtrTy();
case tok::semi:
// Either a C++11 empty-declaration or attribute-declaration.
SingleDecl = Actions.ActOnEmptyDeclaration(getCurScope(),