From: Daniel Dunbar Date: Tue, 28 Jul 2009 17:34:57 +0000 (+0000) Subject: Tweak LLVM emacs style to make default namespace indentation closer to style X-Git-Tag: android-x86-6.0-r1~1003^2~17709 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a02446a9d5cea82553717d20230a46c808893bfc;p=android-x86%2Fexternal-llvm.git Tweak LLVM emacs style to make default namespace indentation closer to style guide. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77331 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/emacs/emacs.el b/utils/emacs/emacs.el index a12848b4575..969f538c817 100644 --- a/utils/emacs/emacs.el +++ b/utils/emacs/emacs.el @@ -1,6 +1,6 @@ ;; LLVM coding style guidelines in emacs ;; Maintainer: LLVM Team, http://llvm.org/ -;; Modified: 2005-04-24 +;; Modified: 2009-07-28 ;; Max 80 cols per line, indent by two spaces, no tabs. ;; Apparently, this does not affect tabs in Makefiles. @@ -17,7 +17,9 @@ '((fill-column . 80) (c++-indent-level . 2) (c-basic-offset . 2) - (indent-tabs-mode . nil))) + (indent-tabs-mode . nil) + (c-offsets-alist . ((innamespace 0))))) + (add-hook 'c-mode-hook (function (lambda nil @@ -26,6 +28,7 @@ (c-set-style "llvm.org") ) )))) + (add-hook 'c++-mode-hook (function (lambda nil