klimek added a comment.
I added a test for multi-stage desugaring. Generally, we want to model Clang's
AST where it makes sense. The AST has a getUnqualifiedDesugaredType, thus the
matcher as it is is expected. We can add single step desugaring or
hasAnyDeclaration or similar things when they are actually needed.
This question from my previous comment still stands:
> How about using hasUnqualifiedDesugaredType(recordType(hasDeclaration instead?
cfe-commits mailing list