[PATCH] D13311: [clang-tidy] Add check cppcoreguidelines-pro-bounds-pointer-arithmetic
Samuel Benzaquen via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 5 09:06:31 PDT 2015
sbenza added inline comments.
================
Comment at: clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp:35
@@ +34,3 @@
+
+ //Array subscript on a pointer (not an array) is also pointer arithmetic
+ Finder->addMatcher(
----------------
Space after //
================
Comment at: test/clang-tidy/cppcoreguidelines-pro-bounds-pointer-arithmetic.cpp:68
@@ +67,3 @@
+ int a[3];
+ i = a[2]; //OK, access to array
+
----------------
Space after //
http://reviews.llvm.org/D13311
More information about the cfe-commits
mailing list