commit | 51c6ff8545aeea2214ac430c3772d8e2f0ed4f7d | [log] [tgz] |
---|---|---|
author | Matthias Gehre <M.Gehre@gmx.de> | Mon Oct 26 21:56:02 2015 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 04 13:39:47 2020 -0700 |
tree | 9a1aaa2cb79e0ea526e0fb93842d01fc97d482ef | |
parent | 4829fea266525af80973b771b4ce0f8068f30f79 [diff] |
[clang-tidy] Add new check cppcoreguidelines-pro-bounds-array-to-pointer-decay Summary: This check flags all array to pointer decays. Pointers should not be used as arrays. array_view is a bounds-checked, safe alternative to using pointers to access arrays. This rule is part of the "Bounds safety" profile of the C++ Core Guidelines, see https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-bounds3-no-array-to-pointer-decay Reviewers: alexfh, sbenza, bkramer, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D13640 llvm-svn: 251358 GitOrigin-RevId: f33319699dbf6f4a7b2f0e816b01d719706ea0b1