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