[go: up one dir, main page]

Menu

[62db13]: / extras / astylerc  Maximize  Restore  History

Download this file

34 lines (33 with data), 1.2 kB

# ----------------------------------------------------------------------
# This is an astyle configuration file, which can be used for indenting,
# formatting and beautifying IT++ header and source files. The Artistic
# Style (astyle) program can be downloaded from the following site:
#   http://astyle.sourceforge.net/
# To filter a source or header file using this option please use the
# following command:
#   $ astyle --options=<IT++_source_directory>/extras/astylerc file.cpp
#
# Similar indentation style can be obtained in GNU emacs editor by
# adding these settings to the default .emacs configuration file:
#
# (defun it++-mode ()
#   "C++ mode with adjusted defaults for use with the IT++ project."
#   (interactive)
#   (c++-mode)
#   (c-set-style "gnu")
#   (c-set-offset 'innamespace 0)
#   (setq c-basic-offset 2)
#   (setq indent-tabs-mode nil)
#   (setq c-block-comment-prefix "* "))
#
# (setq auto-mode-alist (cons '("itpp.*/.*\\.\\(h\\|cpp\\)$" . it++-mode)
#                             auto-mode-alist))
# ----------------------------------------------------------------------
indent=spaces=2
brackets=linux
break-closing-brackets
indent-labels
pad-oper
unpad-paren
keep-one-line-blocks
convert-tabs