Fix cformat processing files within ignore folders (#8063)

This commit is contained in:
Joel Challis 2020-02-02 16:33:17 +00:00 committed by GitHub
parent 1877736fa4
commit 5b91c3e0a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ def cformat(cli):
for dirpath, dirnames, filenames in os.walk(dir):
if any(i in dirpath for i in ignores):
dirnames.clear()
continue
for name in filenames:
if name.endswith(('.c', '.h', '.cpp')):