Makefile & Format Code

This commit is contained in:
100mango
2018-10-08 11:16:19 +08:00
parent 9e75f2cdd2
commit dbd09496f6
11 changed files with 322 additions and 307 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import os.path
path = os.getcwd()
for root, dirs, files in os.walk(path):
if root.endswith("/aes") or root.endswith("/openssl"):
continue
for name in files:
if (name.endswith(".h") or name.endswith(".m") or name.endswith(".mm") or name.endswith(".hpp") or name.endswith(".cpp")):
localpath = root + '/' + name
print localpath
os.system("clang-format -i %s -style=File" %(localpath))