{"push_id":869505263,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"6a78f19ced21ab6b8852331385d1d54071e723fa","before":"7fdf5c31ddb0de8c25a8624eacddf19ff8d9bca8","commits":[{"sha":"6a78f19ced21ab6b8852331385d1d54071e723fa","author":{"email":"0dd5a697d6657e4d33c16056c03fc918529f7d7b@gmx.de","name":"Matthias Gehre"},"message":"[clang-tidy] add check cppcoreguidelines-pro-bounds-constant-array-index\n\nSummary:\nThis check flags all array subscriptions on static arrays and\nstd::arrays that either have a non-compile-time-constant index or are\nout of bounds.\n\nDynamic accesses into arrays are difficult for both tools and humans to\nvalidate as safe. array_view is a bounds-checked, safe type for\naccessing arrays of data. at() is another alternative that ensures\nsingle accesses are bounds-checked. If iterators are needed to access an\narray, use the iterators from an array_view constructed over the array.\n\nThis rule is part of the \"Bounds safety\" profile of the C++ Core\nGuidelines, see\nhttps://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#-bounds2-only-index-into-arrays-using-constant-expressions\n\nReviewers: alexfh, sbenza, bkramer, aaron.ballman\n\nSubscribers: cfe-commits\n\nDifferential Revision: http://reviews.llvm.org/D13746\n\ngit-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@253401 91177308-0d34-0410-b5e6-96231b3b80d8","distinct":true,"url":"https://api.github.com/repos/llvm-mirror/clang-tools-extra/commits/6a78f19ced21ab6b8852331385d1d54071e723fa"}]}