[PATCH] D27207: Adds hasUnqualifiedDesugaredType to allow matching through type sugar.

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 04:00:38 PST 2016


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?




https://reviews.llvm.org/D27207





More information about the cfe-commits mailing list