From 46de9e716e27b2896ea5ce61930c059b57a09fde Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Thu, 11 Apr 2013 04:36:20 +0000 Subject: cc: Make include-what-you-use know about base/hash_tables.h For hash_map and hash_set, we should be including base/hash_tables.h instead of or . This teaches cpplint about this fact. NOTRY=true R=enne BUG= Review URL: https://chromiumcodereview.appspot.com/14137003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193570 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/PRESUBMIT.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cc') diff --git a/cc/PRESUBMIT.py b/cc/PRESUBMIT.py index cf9737e..f49515f 100644 --- a/cc/PRESUBMIT.py +++ b/cc/PRESUBMIT.py @@ -22,6 +22,14 @@ def CheckChangeLintsClean(input_api, output_api): input_api.AffectedSourceFiles(source_filter)] level = 1 # strict, but just warn + # Replace and as headers that need to be included + # with "base/hash_tables.h" instead. + cpplint._re_pattern_templates = [ + (a,b,'base/hash_tables.h') if (header == '' or + header == '') + else (a,b,header) + for (a,b,header) in cpplint._re_pattern_templates] + for file_name in files: cpplint.ProcessFile(file_name, level) -- cgit v1.1