[PATCH] D14582: [clang-tidy] cppcoreguidelines-pro-bounds-pointer-arithmetic: ignore generated pointer arithmetic
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 11 12:11:54 PST 2015
aaron.ballman added inline comments.
================
Comment at: clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp:19
@@ -18,1 +18,3 @@
+AST_MATCHER_P(CXXForRangeStmt, hasRangeBeginEndStmt,
+ ast_matchers::internal::Matcher<DeclStmt>, InnerMatcher) {
----------------
This same code exists in ProBoundsArrayToPointerDecayCheck.cpp and should not be duplicated. I kind of wonder whether this belongs in clangTidyUtils, or in the AST matchers. I think for right now, clangTidyUtils because they still seem a little niche.
http://reviews.llvm.org/D14582
More information about the cfe-commits
mailing list