[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
Thu Jun 28 10:03:29 PDT 2018
JonasToth marked 3 inline comments as done.
JonasToth added inline comments.
================
Comment at: clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp:24
+ const auto AllPointerTypes = anyOf(
+ hasType(pointerType()), hasType(autoType(hasDeducedType(pointerType()))));
----------------
alexfh wrote:
> Can anyOf be pushed inside hasType? (`hasType(anyOf(pointerType(), autoType(...)))`)
Unfortunatly no. It is ambigous then.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D48717
More information about the cfe-commits
mailing list