Update cpplint.
da90c53e3db0b4d0da541d57475984cbf76799ed 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>
diff --git a/cpplint.py b/cpplint.py
index 0edcf70..670c285 100755
--- a/cpplint.py
+++ b/cpplint.py
@@ -4665,9 +4665,9 @@
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(')')