1 ;; LLVM coding style guidelines in emacs
2 ;; Maintainer: LLVM Team, http://llvm.org/
4 ;; Add a cc-mode style for editing LLVM C and C++ code
5 (c-add-style "llvm.org"
10 (indent-tabs-mode . nil)
11 (c-offsets-alist . ((arglist-intro . ++)
13 (member-init-intro . ++)))))
15 ;; Files with "llvm" in their names will automatically be set to the
16 ;; llvm.org coding style.
17 (add-hook 'c-mode-common-hook
20 (if (string-match "llvm" buffer-file-name)
22 (c-set-style "llvm.org"))))))