From 2d1b6dae5acc5c7580668a1d8e12e33c46774782 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Wed, 13 Jul 2016 10:40:01 -0700 Subject: [PATCH] Support C++11 types in build/include_what_you_use This is a cherry-pick of https://github.com/google/styleguide/pull/159 (plus some code that it depends on). BUG=627514 TEST=cpplint_unittest.py Review-Url: https://codereview.chromium.org/2146553003 --- cpplint.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cpplint.py b/cpplint.py index 1b2a373a0..2f460a47b 100755 --- a/cpplint.py +++ b/cpplint.py @@ -5244,12 +5244,15 @@ _HEADERS_CONTAINING_TEMPLATES = ( ('', ('numeric_limits',)), ('', ('list',)), ('', ('map', 'multimap',)), - ('', ('allocator',)), + ('', ('allocator', 'make_shared', 'make_unique', 'shared_ptr', + 'unique_ptr', 'weak_ptr')), ('', ('queue', 'priority_queue',)), ('', ('set', 'multiset',)), ('', ('stack',)), ('', ('char_traits', 'basic_string',)), ('', ('tuple',)), + ('', ('unordered_map', 'unordered_multimap')), + ('', ('unordered_set', 'unordered_multiset')), ('', ('pair',)), ('', ('vector',)), @@ -5264,7 +5267,7 @@ _HEADERS_MAYBE_TEMPLATES = ( ('', ('copy', 'max', 'min', 'min_element', 'sort', 'transform', )), - ('', ('swap',)), + ('', ('forward', 'make_pair', 'move', 'swap')), ) _RE_PATTERN_STRING = re.compile(r'\bstring\b')