llvm.org GIT mirror llvm / a02446a
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 Daniel Dunbar 10 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 ;; LLVM coding style guidelines in emacs
11 ;; Maintainer: LLVM Team, http://llvm.org/
2 ;; Modified: 2005-04-24
2 ;; Modified: 2009-07-28
33
44 ;; Max 80 cols per line, indent by two spaces, no tabs.
55 ;; Apparently, this does not affect tabs in Makefiles.
1616 '((fill-column . 80)
1717 (c++-indent-level . 2)
1818 (c-basic-offset . 2)
19 (indent-tabs-mode . nil)))
19 (indent-tabs-mode . nil)
20 (c-offsets-alist . ((innamespace 0)))))
21
2022 (add-hook 'c-mode-hook
2123 (function
2224 (lambda nil
2527 (c-set-style "llvm.org")
2628 )
2729 ))))
30
2831 (add-hook 'c++-mode-hook
2932 (function
3033 (lambda nil