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

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 29 14:25:02 PST 2016


malcolm.parsons added a comment.

In https://reviews.llvm.org/D27207#608433, @lukasza wrote:

> I think the above will work for my tool - thank you for providing the matcher example (for some reason I incorrectly thought that desugaring would only be done one step a time - this made me think that matching at an arbitrary depth will require tricky things to build a recursive matcher out of a single-step matcher).


clang-tidy's modernize-use-auto check has a matcher that desugars one step at a time:
https://reviews.llvm.org/diffusion/L/browse/clang-tools-extra/trunk/clang-tidy/modernize/UseAutoCheck.cpp;288204$69


https://reviews.llvm.org/D27207





More information about the cfe-commits mailing list