[PATCH] D48717: [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 20 14:42:36 PDT 2018


JonasToth added a comment.

> I don't think we want to modify `hasType()` -- that would strip off too much type information if it automatically reached through to the underlying type. However, we may want to consider adding something like `hasUnderlyingType()` that checks the matcher against each level of type sugar. I'm not certain this would be required for your patch, however.

Yes, an additional facility that does not care how the type got produced (auto, decltype, written, template, ...) and just finds all places with that type.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D48717





More information about the cfe-commits mailing list