[Bf-blender-cvs] [6f0424f3772] temp-clang-format: clang-format: add most intern/ modules for formatting, including cycles.
Brecht Van Lommel
noreply at git.blender.org
Thu Jan 10 13:54:08 CET 2019
Commit: 6f0424f3772fa7d323dcb2b8c0f4eb4fb5379f0a
Author: Brecht Van Lommel
Date: Thu Jan 10 12:56:36 2019 +0100
Branches: temp-clang-format
https://developer.blender.org/rB6f0424f3772fa7d323dcb2b8c0f4eb4fb5379f0a
clang-format: add most intern/ modules for formatting, including cycles.
The only excluded modules still are libmv, numaapi (using Google style) and
elbeem, smoke, itasc (originated outside of Blender).
===================================================================
M clang-format-paths.py
===================================================================
diff --git a/clang-format-paths.py b/clang-format-paths.py
index 4ba21dbc7ed..63ea8e9bab1 100755
--- a/clang-format-paths.py
+++ b/clang-format-paths.py
@@ -10,10 +10,26 @@ VERSION_MIN = (6, 0, 0)
paths = sys.argv[1:]
if not paths:
paths.extend((
+ "intern/atomic",
+ "intern/audaspace",
"intern/clog",
+ "intern/cycles",
+ "intern/dualcon",
+ "intern/eigen",
+ "intern/ffmpeg",
"intern/ghost",
+ "intern/glew-mx",
"intern/guardedalloc",
+ "intern/iksolver",
+ "intern/locale",
+ "intern/memutil",
+ "intern/mikktspace",
+ "intern/opencolorio",
+ "intern/opensubdiv",
+ "intern/openvdb",
+ "intern/rigidbody",
"intern/string",
+ "intern/utfconv",
"source",
))
@@ -27,6 +43,10 @@ extensions = (
".osl", ".glsl",
)
+ignore_files = (
+ "sobol.cpp", # Too heavy for clang-format
+)
+
print("Operating on:")
for p in paths:
print(" ", p)
@@ -75,7 +95,7 @@ def main():
files = [
f for f in source_files_from_git()
- if f.endswith(extensions)
+ if f.endswith(extensions) and os.path.basename(f) not in ignore_files
]
convert_tabs_to_spaces(files)
More information about the Bf-blender-cvs
mailing list