This patch handles more declarations in DeclContextPrinter to avoid crashes when clang is given the -print-decl-contexts option. I would like to get an opinion on the testing in this patch - the current -print-decl-contexts test doesn't check the output, so this patch follows the same testing protocol. Do you think I should also check the output of -print-decl-contexts?
This patch contains 7 commits that I squashed just for review to make it easier:
- DeclContextPrinter: Handle StaticAssertDecl
- DeclContextPrinter: Handle variable template declaration
- DeclContextPrinter: Handle Access specifier declaration
- DeclContextPrinter: Handle ClassTemplateSpecialization and ClassTemplatePartialSpecialization declarations
- DeclContextPrinter: Handle EmptyDecl
- DeclContextPrinter: Handle UsingDecl
- DeclContextPrinter: Handle FriendDecl
Thanks