build: fix run-clang-format extension matching (#34076)
This commit is contained in:
parent
5b648854d5
commit
706d585eb8
1 changed files with 1 additions and 2 deletions
|
@ -55,8 +55,7 @@ def list_files(files, recursive=False, extensions=None, exclude=None):
|
||||||
x for x in fpaths if not fnmatch.fnmatch(x, pattern)
|
x for x in fpaths if not fnmatch.fnmatch(x, pattern)
|
||||||
]
|
]
|
||||||
for fp in fpaths:
|
for fp in fpaths:
|
||||||
ext = os.path.splitext(f)[1][1:]
|
ext = os.path.splitext(fp)[1][1:]
|
||||||
print(ext)
|
|
||||||
if ext in extensions:
|
if ext in extensions:
|
||||||
out.append(fp)
|
out.append(fp)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue