summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc')
-rw-r--r--cc/PRESUBMIT.py8
1 files changed, 8 insertions, 0 deletions
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 <hash_map> and <hash_set> 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 == '<hash_map>' or
+ header == '<hash_set>')
+ else (a,b,header)
+ for (a,b,header) in cpplint._re_pattern_templates]
+
for file_name in files:
cpplint.ProcessFile(file_name, level)