diff --git a/lib/python/qmk/c_parse.py b/lib/python/qmk/c_parse.py index 785b940456..8a186ea9d3 100644 --- a/lib/python/qmk/c_parse.py +++ b/lib/python/qmk/c_parse.py @@ -45,7 +45,7 @@ def strip_multiline_comment(string): def c_source_files(dir_names): - """Returns a list of all *.c, *.h, and *.cpp files for a given list of directories + """Returns a list of all *.c, *.h, *.cpp, and *.hpp files for a given list of directories Args: @@ -54,7 +54,7 @@ def c_source_files(dir_names): """ files = [] for dir in dir_names: - files.extend(file for file in Path(dir).glob('**/*') if file.suffix in ['.c', '.h', '.cpp']) + files.extend(file for file in Path(dir).glob('**/*') if file.suffix in ['.c', '.h', '.cpp', '.hpp']) return files