Skip to content

Commit

Permalink
Format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
dancazarin committed Jul 20, 2016
1 parent 846a125 commit ff2dc29
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions format-all.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@

path = os.path.dirname(os.path.realpath(__file__))

masks = ['*.hpp', '*.h', '*.cpp', '*.c', '*.cxx']

filenames = []
for root, dirnames, files in os.walk(path, path):
for filename in fnmatch.filter(files, '*.hpp'):
filenames.append(os.path.join(root, filename))
for filename in fnmatch.filter(files, '*.h'):
filenames.append(os.path.join(root, filename))
for filename in fnmatch.filter(files, '*.cpp'):
filenames.append(os.path.join(root, filename))
for mask in masks:
for filename in fnmatch.filter(files, mask):
filenames.append(os.path.join(root, filename))

for filename in filenames:
print( filename, '...' )
Expand Down

0 comments on commit ff2dc29

Please sign in to comment.