[Presubmit] When checking include guards, replace + with _.
+ is an invalid character for include guard, so for a file
named "foo+bar.h", include guard should be FOO_BAR_H_
Bug: 856548
Change-Id: I39a2d01e328b9352620d0d0e9548e40f1b57150a
Reviewed-on: https://chromium-review.googlesource.com/1152971
Commit-Queue: Olivier Robin <[email protected]>
Reviewed-by: Jochen Eisinger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#579010}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 206b318..74208a78 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -3081,7 +3081,7 @@
input_api.os_path.join('third_party', 'blink'))))
def replace_special_with_underscore(string):
- return input_api.re.sub(r'[\\/.-]', '_', string)
+ return input_api.re.sub(r'[+\\/.-]', '_', string)
errors = []