root/system/astylerc @ 356

Revision 356, 1.2 kB (checked in by smidl, 15 years ago)

astyle

Line 
1# ----------------------------------------------------------------------
2# This is an astyle configuration file, which can be used for indenting,
3# formatting and beautifying IT++ header and source files. The Artistic
4# Style (astyle) program can be downloaded from the following site:
5#   http://astyle.sourceforge.net/
6# To filter a source or header file using this option please use the
7# following command:
8#   $ astyle --options=<IT++_source_directory>/extras/astylerc file.cpp
9#
10# Similar indentation style can be obtained in GNU emacs editor by
11# adding these settings to the default .emacs configuration file:
12#
13# (defun it++-mode ()
14#   "C++ mode with adjusted defaults for use with the IT++ project."
15#   (interactive)
16#   (c++-mode)
17#   (c-set-style "gnu")
18#   (c-set-offset 'innamespace 0)
19#   (setq c-basic-offset 2)
20#   (setq indent-tabs-mode nil)
21#   (setq c-block-comment-prefix "* "))
22#
23# (setq auto-mode-alist (cons '("itpp.*/.*\\.\\(h\\|cpp\\)$" . it++-mode)
24#                             auto-mode-alist))
25# ----------------------------------------------------------------------
26indent=spaces=2
27brackets=linux
28brackets=break-closing
29indent-labels
30pad=oper
31unpad=paren
32one-line=keep-blocks
33convert-tabs
Note: See TracBrowser for help on using the browser.