| Index: PRESUBMIT.py
|
| ===================================================================
|
| --- PRESUBMIT.py (revision 79435)
|
| +++ PRESUBMIT.py (working copy)
|
| @@ -116,7 +116,8 @@
|
|
|
| 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\w*\s*\*')
|
| + pattern = input_api.re.compile(
|
| + r'const\s+NS(?!(Point|Range|Rect|Size)\s*\*)\w*\s*\*')
|
| files = []
|
| for f in input_api.AffectedSourceFiles(source_file_filter):
|
| if f.LocalPath().endswith('.h') or f.LocalPath().endswith('.mm'):
|
|
|