Do not check include guards in iOS porting files
authorPyry Haulos <phaulos@google.com>
Tue, 16 Aug 2016 10:38:35 +0000 (12:38 +0200)
committerPyry 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

index fa792e1..a3b9c9b 100644 (file)
@@ -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