|
Revision 582, 1.3 kB
(checked in by smidl, 16 years ago)
|
|
eol native
|
-
Property svn:eol-style set to
native
|
| 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 | # ---------------------------------------------------------------------- |
|---|
| 26 | indent=tab=4 |
|---|
| 27 | brackets=attach |
|---|
| 28 | pad=oper |
|---|
| 29 | pad=paren |
|---|
| 30 | unpad=paren |
|---|
| 31 | |
|---|
| 32 | #Don't want to break one-line blocks? Uncomment the following line... |
|---|
| 33 | #one-line=keep-blocks |
|---|
| 34 | #Code like: |
|---|
| 35 | # if (isFoo) |
|---|
| 36 | # { isFoo = false; cout << isFoo << endl; } |
|---|
| 37 | # then remains unchanged. |
|---|