]> granicus.if.org Git - libvpx/commitdiff
README: add a note about clang-format
authorJames Zern <jzern@google.com>
Thu, 28 Jul 2016 05:16:51 +0000 (22:16 -0700)
committerJames Zern <jzern@google.com>
Thu, 4 Aug 2016 00:34:03 +0000 (17:34 -0700)
Change-Id: I835401e3befffcbc68e7d2bdd2fd556a19948e91

README

diff --git a/README b/README
index 774109026e72e9db6f1cc6a3dbbf4a668de040b3..24e8f7dbccc38fb2300ee1022ebda25bb7c357e3 100644 (file)
--- a/README
+++ b/README
@@ -131,6 +131,21 @@ VP8/VP9 TEST VECTORS:
   $ ./configure --enable-unit-tests
   $ LIBVPX_TEST_DATA_PATH=../libvpx-test-data make testdata
 
+CODE STYLE:
+  The coding style used by this project is enforced with clang-format using the
+  configuration contained in the .clang-format file in the root of the
+  repository.
+
+  Before pushing changes for review you can format your code with:
+  # Apply clang-format to modified .c, .h and .cc files
+  $ clang-format -i --style=file \
+    $(git diff --name-only --diff-filter=ACMR '*.[hc]' '*.cc')
+
+  Check the .clang-format file for the version used to generate it if there is
+  any difference between your local formatting and the review system.
+
+  See also: http://clang.llvm.org/docs/ClangFormat.html
+
 SUPPORT
   This library is an open source project supported by its community. Please
   email webm-discuss@webmproject.org for help.