Commit da90c53e authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Update cpplint.

Using base/std::size and std::extent does not result in the creation
of a VLA; cpplint should not warn on their use.

BUG=837308

Change-Id: Ie133b2144b6c1c9f4f5e406144f28b333a212197
Reviewed-on: https://chromium-review.googlesource.com/c/1399961Reviewed-by: 's avatarMarc-Antoine Ruel <maruel@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
parent d16b51b9
......@@ -4665,6 +4665,9 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
if Search(r'sizeof\(.+\)', tok): continue
if Search(r'arraysize\(\w+\)', tok): continue
if Search(r'base::size\(\w+\)', tok): continue
if Search(r'std::size\(\w+\)', tok): continue
if Search(r'std::extent\(\w+\)', tok): continue
tok = tok.lstrip('(')
tok = tok.rstrip(')')
......
Markdown is supported
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