| 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 |
# |
| 7 |
# Please note that this file is compatible with older version of astyle, |
| 8 |
# i.e. 1.x series (e.g. 1.24) |
| 9 |
# |
| 10 |
# To filter a source or header file using this option please use the |
| 11 |
# following command: |
| 12 |
# $ astyle --options=<IT++_source_directory>/extras/astylerc_old file.cpp |
| 13 |
# |
| 14 |
# Similar indentation style can be obtained in GNU emacs editor by |
| 15 |
# adding these settings to the default .emacs configuration file: |
| 16 |
# |
| 17 |
# (defun it++-mode () |
| 18 |
# "C++ mode with adjusted defaults for use with the IT++ project." |
| 19 |
# (interactive) |
| 20 |
# (c++-mode) |
| 21 |
# (c-set-style "gnu") |
| 22 |
# (c-set-offset 'innamespace 0) |
| 23 |
# (setq c-basic-offset 2) |
| 24 |
# (setq indent-tabs-mode nil) |
| 25 |
# (setq c-block-comment-prefix "* ")) |
| 26 |
# |
| 27 |
# (setq auto-mode-alist (cons '("itpp.*/.*\\.\\(h\\|cpp\\)$" . it++-mode) |
| 28 |
# auto-mode-alist)) |
| 29 |
# ---------------------------------------------------------------------- |
| 30 |
indent=spaces=2 |
| 31 |
brackets=linux |
| 32 |
brackets=break-closing |
| 33 |
indent-labels |
| 34 |
pad=oper |
| 35 |
unpad=paren |
| 36 |
one-line=keep-blocks |
| 37 |
convert-tabs |