Permalink
Browse files

Format all files

  • Loading branch information...
dlevin256 committed Jul 20, 2016
1 parent 846a125 commit ff2dc299f546b2eef43b80d5323195bb3cc5bbb4
Showing with 5 additions and 6 deletions.
  1. +5 −6 format-all.py
@@ -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, '...' )

0 comments on commit ff2dc29

Please sign in to comment.