diff --git a/cpplint.py b/cpplint.py index e3b36c6cc6..0edcf706db 100755 --- a/cpplint.py +++ b/cpplint.py @@ -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(')')