[PATCH] D14582: [clang-tidy] cppcoreguidelines-pro-bounds-pointer-arithmetic: ignore generated pointer arithmetic

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 06:36:56 PST 2015


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

Sorry for the delay, I was sick and didn't read mail.

Looks good with a nit. Thanks for the fix!


================
Comment at: clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp:28
@@ -28,1 +27,3 @@
+                     hasType(pointerType()),
+                     unless(hasLHS(ignoringImpCasts(declRefExpr(to(isImplicit()))))))
           .bind("expr"),
----------------
nit: Does this still fit to 80 characters? I mean, clang-format, please ;)


http://reviews.llvm.org/D14582





More information about the cfe-commits mailing list