projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f189365
)
Do not check include guards in iOS porting files
author
Pyry Haulos
<phaulos@google.com>
Tue, 16 Aug 2016 10:38:35 +0000
(12:38 +0200)
committer
Pyry Haulos
<phaulos@google.com>
Tue, 16 Aug 2016 10:38:35 +0000
(12:38 +0200)
Change-Id: I0c67290322eb36bbc9287145cbbaea22f405d29c
scripts/src_util/check_include_guards.py
patch
|
blob
|
history
diff --git
a/scripts/src_util/check_include_guards.py
b/scripts/src_util/check_include_guards.py
index fa792e1594eb4f6f0167dc1854a1266112b981e8..a3b9c9b3f135dfd1c389abdb43e214f49aa8295a 100644
(file)
--- a/
scripts/src_util/check_include_guards.py
+++ b/
scripts/src_util/check_include_guards.py
@@
-26,6
+26,7
@@
from fnmatch import fnmatch
from optparse import OptionParser
HEADER_PATTERNS = ["*.hpp", "*.h"]
+IGNORE_FILES = set(["tcuEAGLView.h", "tcuIOSAppDelegate.h", "tcuIOSViewController.h"])
CHECK_END_COMMENT = True
def getIncludeGuardName (headerFile):
@@
-80,6
+81,9
@@
def fixIncludeGuard (headerFile):
f.close()
def isHeader (filename):
+ if os.path.basename(filename) in IGNORE_FILES:
+ return False
+
for pattern in HEADER_PATTERNS:
if fnmatch(filename, pattern):
return True