Update cpplint.

da90c53e3d was incorrect; the size()
functions take almost anything, not just word characters, and
std::extent() uses brackets.

BUG=837308

Change-Id: I6ee75a5da7a021758bbfb0996aeaef81f2003cd9
Reviewed-on: https://chromium-review.googlesource.com/c/1401581
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
changes/81/1401581/2
Avi Drissman 6 years ago committed by Commit Bot
parent 9d5b468279
commit 4157ba1c3c

6
cpplint.py vendored

@ -4665,9 +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
if Search(r'base::size\(.+\)', tok): continue
if Search(r'std::size\(.+\)', tok): continue
if Search(r'std::extent<.+>', tok): continue
tok = tok.lstrip('(')
tok = tok.rstrip(')')

Loading…
Cancel
Save