mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-07-14 07:05:28 +00:00
Support C++11 types in build/include_what_you_use
This change adds support for forward, make_pair, make_shared,, make_unique, move, shared_ptr, unique_ptr, unordered_map, unordered_multimap, unordered_multiset, unordered_set, weak_ptr. Closes #133.
This commit is contained in:
Vendored
+5
-2
@@ -5262,12 +5262,15 @@ _HEADERS_CONTAINING_TEMPLATES = (
|
||||
('<limits>', ('numeric_limits',)),
|
||||
('<list>', ('list',)),
|
||||
('<map>', ('map', 'multimap',)),
|
||||
('<memory>', ('allocator',)),
|
||||
('<memory>', ('allocator', 'make_shared', 'make_unique', 'shared_ptr',
|
||||
'unique_ptr', 'weak_ptr')),
|
||||
('<queue>', ('queue', 'priority_queue',)),
|
||||
('<set>', ('set', 'multiset',)),
|
||||
('<stack>', ('stack',)),
|
||||
('<string>', ('char_traits', 'basic_string',)),
|
||||
('<tuple>', ('tuple',)),
|
||||
('<unordered_map>', ('unordered_map', 'unordered_multimap')),
|
||||
('<unordered_set>', ('unordered_set', 'unordered_multiset')),
|
||||
('<utility>', ('pair',)),
|
||||
('<vector>', ('vector',)),
|
||||
|
||||
@@ -5282,7 +5285,7 @@ _HEADERS_MAYBE_TEMPLATES = (
|
||||
('<algorithm>', ('copy', 'max', 'min', 'min_element', 'sort',
|
||||
'transform',
|
||||
)),
|
||||
('<utility>', ('swap',)),
|
||||
('<utility>', ('forward', 'make_pair', 'move', 'swap')),
|
||||
)
|
||||
|
||||
_RE_PATTERN_STRING = re.compile(r'\bstring\b')
|
||||
|
||||
Reference in New Issue
Block a user