diff --git a/check_source/check_style_c.py b/check_source/check_style_c.py index 9f737d296f52ed007f55403242cf3bfa9288e825..4f3f4c143a9e0ebe606de750d2f9c5656ba5c053 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):