diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2017-03-22 01:08:54 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2017-03-22 01:08:54 +0000 |
commit | 73f283e6fc8d87f34072b6dbb4e56f80dd4e6730 (patch) | |
tree | fcef64e01d7be3884d365470c3ebc5b11ab45f1d /clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp | |
parent | 5827756e90d980ff1ff272715ec399e19c17a940 (diff) | |
download | bcm5719-llvm-73f283e6fc8d87f34072b6dbb4e56f80dd4e6730.tar.gz bcm5719-llvm-73f283e6fc8d87f34072b6dbb4e56f80dd4e6730.zip |
Reverting r298421 due to using a header that's unavailable to all systems and some other post-commit review feedback.
llvm-svn: 298470
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp b/clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp index 22d98bcd121..ce192805dda 100644 --- a/clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp +++ b/clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-array-to-pointer-decay.cpp @@ -1,5 +1,4 @@ // RUN: %check_clang_tidy %s cppcoreguidelines-pro-bounds-array-to-pointer-decay %t -#include <assert.h> #include <stddef.h> namespace gsl { @@ -35,11 +34,6 @@ void f() { for (auto &e : a) // OK, iteration internally decays array to pointer e = 1; - - assert(false); // OK, array decay inside system header macro - - assert(a); - // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay] } const char *g() { |