We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c658a66 commit c7d9a27Copy full SHA for c7d9a27
Makefile.am
@@ -67,3 +67,9 @@ include $(top_srcdir)/build/dist-changelog.am
67
# clang-format versions via a bash alias.)
68
format:
69
clang-format -i `find . -name "*.h" -or -name "*.cc"`
70
+
71
+# Run clang-format over all files, and fail if they are not formatted correctly.
72
+# (This requires clang-format 10, which has the --dry-run and --Werror
73
+# command-line arguments.)
74
+check-format:
75
+ clang-format --dry-run --Werror `find . -name "*.h" -or -name "*.cc"`
0 commit comments