Browse Source

replace clang-format with uncrustify.

ng0 4 years ago
parent
commit
a0fce305c5
3 changed files with 4 additions and 5 deletions
  1. 0 3
      .dir-locals.el
  2. 2 0
      .gitignore
  3. 2 2
      bootstrap

+ 0 - 3
.dir-locals.el

@@ -1,8 +1,5 @@
 ;; Per-directory local variables for GNU Emacs 23 and later.
 
-((c-mode
-  (eval add-hook 'before-save-hook #'clang-format-buffer nil t)))
-
 ((nil
   . ((fill-column . 78)
      (tab-width   .  4)

+ 2 - 0
.gitignore

@@ -62,6 +62,8 @@ doc/tutorial/gversion.texi
 # top-level symlink can exist
 .clang-format
 
+uncrustify.cfg
+
 # this exists outside of the main repository
 cmake/
 build

+ 2 - 2
bootstrap

@@ -3,8 +3,8 @@
 echo "Removing folder 'libltdl'..."
 rm -rf libltdl
 
-# Install clang format symlink (if possible)
-ln -s contrib/conf/editors/clang-format .clang-format 2> /dev/null
+# Install uncrustify format symlink (if possible)
+ln -s contrib/uncrustify.cfg uncrustify.cfg 2> /dev/null
 
 echo "checking for libtoolize / libtool... "