Add some c++17 headers to the list of known headers.

This CL updates cpplint.py to add some of the c++17 header files to the
list of known c++ headers. We're specifically using optional and variant
in the Tint project and would like to remove the NOLINT lines necessary
to keep the linter happy.

Bug: dawn:1379
Change-Id: I41cacd21e0742f992cdd6913b7f4def556b543c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3709241
Auto-Submit: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
changes/41/3709241/3
dan sinclair 3 years ago committed by LUCI CQ
parent 8254f06ba7
commit 9a3c4bc67c

7
cpplint.py vendored

@ -329,15 +329,19 @@ _CPP_HEADERS = frozenset([
'vector.h', 'vector.h',
# 17.6.1.2 C++ library headers # 17.6.1.2 C++ library headers
'algorithm', 'algorithm',
'any',
'array', 'array',
'atomic', 'atomic',
'bitset', 'bitset',
'charconv',
'chrono', 'chrono',
'codecvt', 'codecvt',
'complex', 'complex',
'condition_variable', 'condition_variable',
'deque', 'deque',
'execution',
'exception', 'exception',
'filesystem',
'forward_list', 'forward_list',
'fstream', 'fstream',
'functional', 'functional',
@ -354,9 +358,11 @@ _CPP_HEADERS = frozenset([
'locale', 'locale',
'map', 'map',
'memory', 'memory',
'memory_resource',
'mutex', 'mutex',
'new', 'new',
'numeric', 'numeric',
'optional',
'ostream', 'ostream',
'queue', 'queue',
'random', 'random',
@ -381,6 +387,7 @@ _CPP_HEADERS = frozenset([
'unordered_set', 'unordered_set',
'utility', 'utility',
'valarray', 'valarray',
'variant',
'vector', 'vector',
# 17.6.1.2 C++ headers for C library facilities # 17.6.1.2 C++ headers for C library facilities
'cassert', 'cassert',

Loading…
Cancel
Save