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

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 28 06:44:41 PDT 2018


alexfh added inline comments.


================
Comment at: clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp:24
 
+  const auto AllPointerTypes = anyOf(
+      hasType(pointerType()), hasType(autoType(hasDeducedType(pointerType()))));
----------------
Can anyOf be pushed inside hasType? (`hasType(anyOf(pointerType(), autoType(...)))`)


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D48717





More information about the cfe-commits mailing list