From bd8326ccebf222178258c8ac58d0d3fc124542f7 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 24 Feb 2014 10:04:03 +1100
Subject: [PATCH] Add cc files for syntax checker

---
 check_source/check_style_c.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/check_source/check_style_c.py b/check_source/check_style_c.py
index 9f737d2..4f3f4c1 100755
--- a/check_source/check_style_c.py
+++ b/check_source/check_style_c.py
@@ -965,6 +965,7 @@ def quick_check_include_guard(lines):
     else:
         warning_lineonly("missing include guard %r" % guard, 1)
 
+
 def quick_check_source(fp, code, args):
 
     global filepath
@@ -1120,7 +1121,7 @@ def scan_source_recursive(dirpath, args):
 
     def is_source(filename):
         ext = splitext(filename)[1]
-        return (ext in {".c", ".inl", ".cpp", ".cxx", ".hpp", ".hxx", ".h", ".osl"})
+        return (ext in {".c", ".inl", ".cpp", ".cxx", ".cc", ".hpp", ".hxx", ".h", ".hh", ".osl"})
 
     for filepath in sorted(source_list(dirpath, is_source)):
         if is_ignore(filepath):
-- 
GitLab