[PATCH] D13746: [clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 17 18:25:25 PST 2015


chapuni added a subscriber: chapuni.
chapuni added a comment.

I have reverted in r253428, since I can reproduce failure locally. I'll investigate later, too.


================
Comment at: clang-tools-extra/trunk/test/clang-tidy/cppcoreguidelines-pro-bounds-constant-array-index.cpp:2
@@ +1,3 @@
+// RUN: %check_clang_tidy %s cppcoreguidelines-pro-bounds-constant-array-index %t -- -config='{CheckOptions: [{key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader, value: "dir1/gslheader.h"}]}' -- -std=c++11
+#include <array>
+// CHECK-FIXES: #include "dir1/gslheader.h"
----------------
Standard headers might be unavailable depending on a target, like host=linux target=msvc.
Could you improve it?


  # Avoid <array>
  # Introduce a new feature like "native"




Repository:
  rL LLVM

http://reviews.llvm.org/D13746





More information about the cfe-commits mailing list