Index: presubmit_canned_checks.py |
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
index 27cbc429542baed291000c7754d3bbd3041d6406..49ed07c6f853592116aba2a1366cc4b3ec6c61ee 100644 |
--- a/presubmit_canned_checks.py |
+++ b/presubmit_canned_checks.py |
@@ -948,7 +948,8 @@ def _RietveldOwnerAndReviewers(input_api, email_regexp, approval_needed=False): |
def _CheckConstNSObject(input_api, output_api, source_file_filter): |
"""Checks to make sure no objective-c files have |const NSSomeClass*|.""" |
pattern = input_api.re.compile( |
- r'const\s+NS(?!(Point|Range|Rect|Size)\s*\*)\w*\s*\*') |
+ r'(?<!reinterpret_cast<)' |
+ r'const\s+NS(?!(Point|Range|Rect|Size)\s*\*)\w*\s*\*') |
def objective_c_filter(f): |
return (source_file_filter(f) and |