changeset 42965:5dfb57af1148

contrib: add new examples area and start it out with a config for `hg fix` This is the configuration contributors should use for our C/C++ code. I expect to expand this file as we get more automated formatter oversight. Differential Revision: https://phab.mercurial-scm.org/D6872
author Augie Fackler <augie@google.com>
date Mon, 20 May 2019 14:33:46 -0400
parents be0d54cce8f4
children f5ad85dd5f7e
files contrib/examples/fix.hgrc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/examples/fix.hgrc	Mon May 20 14:33:46 2019 -0400
@@ -0,0 +1,3 @@
+[fix]
+clang-format:command = clang-format --style file -i
+clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"