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/1399961
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
diff --git a/cpplint.py b/cpplint.py
index e3b36c6..0edcf70 100755
--- a/cpplint.py
+++ b/cpplint.py
@@ -4665,6 +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
tok = tok.lstrip('(')
tok = tok.rstrip(')')