mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-17 04:30:56 +08:00
Makefile & Format Code
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user