Align C formatting extensions (#26137)

This commit is contained in:
Joel Challis 2026-04-09 12:03:53 +01:00 committed by GitHub
parent 6a11370434
commit 92c0e2cee1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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