Commit cc740ae5 authored by Aaron Ballman's avatar Aaron Ballman
Browse files

Add a new check, readability-simplify-subscript-expr, that diagnoses array...

Add a new check, readability-simplify-subscript-expr, that diagnoses array subscript expressions that can be simplified.

Currently, diagnoses code that calls container.data()[some_index] when the container exposes a suitable operator[]() method that can be used directly.

Patch by Shuai Wang.

llvm-svn: 332519
parent ad3fed62
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment