summaryrefslogtreecommitdiffstats
path: root/BuildTools
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-03-26 21:24:02 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-03-26 21:24:02 +0000
commit2c7288d46b3727a23cbe485818bb39a95bc4caad (patch)
treeb9b1dfb8baa7980c461f631dfe6d0267595496fd /BuildTools
parentUpdated clang-format to the latest release (diff)
downloadDiligentCore-2c7288d46b3727a23cbe485818bb39a95bc4caad.tar.gz
DiligentCore-2c7288d46b3727a23cbe485818bb39a95bc4caad.zip
Enabled format validation on MacOS
Diffstat (limited to 'BuildTools')
-rwxr-xr-xBuildTools/FormatValidation/clang-format_10.0.0bin0 -> 2349840 bytes
-rwxr-xr-xBuildTools/FormatValidation/validate_format_mac.sh13
2 files changed, 6 insertions, 7 deletions
diff --git a/BuildTools/FormatValidation/clang-format_10.0.0 b/BuildTools/FormatValidation/clang-format_10.0.0
new file mode 100755
index 00000000..cf170123
--- /dev/null
+++ b/BuildTools/FormatValidation/clang-format_10.0.0
Binary files differ
diff --git a/BuildTools/FormatValidation/validate_format_mac.sh b/BuildTools/FormatValidation/validate_format_mac.sh
index 754d8fd1..cbb4cdf5 100755
--- a/BuildTools/FormatValidation/validate_format_mac.sh
+++ b/BuildTools/FormatValidation/validate_format_mac.sh
@@ -1,8 +1,7 @@
#!/bin/bash
-#python clang-format-validate.py -r \
-# --exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h \
-# --exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h \
-# --exclude ../../Graphics/GraphicsEngineVulkan/shaders/* \
-# ../../Common ../../Graphics ../../Platforms ../../Primitives
-echo "Format validation is not yet enabled for DiligentCore module on MacOS"
-
+python clang-format-validate.py --clang-format-executable ./clang-format_10.0.0 \
+-r ../../Common ../../Graphics ../../Platforms ../../Primitives ../../Tests \
+--exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h \
+--exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h \
+--exclude ../../Graphics/GraphicsEngineVulkan/shaders/GenerateMipsCS_inc.h \
+--exclude ../../Tests/DiligentCoreAPITest/assets/*