Chromium Code Reviews| Index: tools/code_hygiene.py |
| diff --git a/tools/code_hygiene.py b/tools/code_hygiene.py |
| index 05d572b43f9b8e70bbc0a7b829905009d48c30a4..c3fa296194c25ef1a542ec21d64b771d1b15e1ab 100755 |
| --- a/tools/code_hygiene.py |
| +++ b/tools/code_hygiene.py |
| @@ -1,5 +1,5 @@ |
| #!/usr/bin/python |
| -# Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| +# Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| @@ -232,6 +232,7 @@ class UntrustedIfDefChecker(GenericRegexChecker): |
| if 'is_untrusted' not in props: return False |
| if 'is_untrusted_stubs' in props: return False |
| if 'is_untrusted_ehsupport' in props: return False |
| + if 'is_untrusted_crash_dump' in props: return False |
|
Mark Seaborn
2012/02/16 18:42:50
This needs a comment: i.e. we need "#ifdef __GLIBC
bradn
2012/02/16 20:13:10
Done.
|
| return '.c' in props or '.cc' in props |
| @@ -394,6 +395,7 @@ VALID_PROPS = { |
| 'is_untrusted': True, # Is untrusted code. |
| 'is_untrusted_stubs': True, # Is untrusted/stubs code. |
| 'is_untrusted_ehsupport': True, # Is untrusted/ehsupport code. |
| + 'is_untrusted_crash_dump': True, # Is untrusted/crash_dump code. |
| 'is_shared': True, # Is shared code. |
| 'is_scons': True, # Is scons file (not one generated by gyp). |
| } |
| @@ -457,6 +459,8 @@ def FileProperties(filename, data): |
| d['is_untrusted_stubs'] = True |
| if 'src/untrusted/ehsupport/' in filename: |
| d['is_untrusted_ehsupport'] = True |
| + if 'src/untrusted/crash_dump/' in filename: |
| + d['is_untrusted_crash_dump'] = True |
| if 'src/untrusted/' in filename: |
| d['is_untrusted'] = True |
| if 'src/shared/' in filename: |