|
| 1 | +#Artistic Style file options for LibreCAD |
| 2 | +#Use: |
| 3 | +#first install Artistic Style: http://astyle.sourceforge.net/ |
| 4 | +#change to the top directory of LibreCAD sources (the dir containing this file) |
| 5 | +#exec: astyle --options=./arilux.astylerc *.cpp |
| 6 | +#exec: astyle --options=./arilux.astylerc *.h |
| 7 | +#or |
| 8 | +#exec: astyle --options=./arilux.astylerc path_to_some_source_file/source_file |
| 9 | + |
| 10 | + |
| 11 | +#Indent a C/C++, file. |
| 12 | +--mode=c |
| 13 | + |
| 14 | +# Bracket Style |
| 15 | +--style=attach |
| 16 | + |
| 17 | +# Indent using # spaces per indent |
| 18 | +--indent=spaces=4 |
| 19 | + |
| 20 | +# Indent 'class' and 'struct' blocks so that the blocks 'public:', |
| 21 | +# 'protected:' and 'private:' are indented. |
| 22 | +#--indent-classes |
| 23 | + |
| 24 | +# Indent 'switch' blocks so that the 'case X:' statements are |
| 25 | +# indented in the switch block. |
| 26 | +--indent-switches |
| 27 | + |
| 28 | +# Indent 'case X:' blocks from the 'case X:' headers. |
| 29 | +# Case statements not enclosed in blocks are NOT indented. |
| 30 | +#--indent-cases |
| 31 | + |
| 32 | +# Add extra indentation to namespace blocks. |
| 33 | +#--indent-namespaces |
| 34 | + |
| 35 | +# Add extra indentation to labels so they appear 1 indent less than |
| 36 | +# the current indentation, rather than being flushed to the left. |
| 37 | +#--indent-labels |
| 38 | + |
| 39 | +# Indent multi-line preprocessor definitions ending with a backslash. |
| 40 | +# Should be used with --convert-tabs for proper results. |
| 41 | +--indent-preprocessor |
| 42 | + |
| 43 | +# Indent C++ comments beginning in column one. |
| 44 | +--indent-col1-comments |
| 45 | + |
| 46 | +# Set the minimal indent that is added when a header is built of multiple lines. |
| 47 | +--min-conditional-indent=0 |
| 48 | + |
| 49 | +# Set the maximum of # spaces to indent a continuation line. |
| 50 | +# The # indicates a number of columns and must not be greater than 120. |
| 51 | +--max-instatement-indent=60 |
| 52 | + |
| 53 | +# Pad empty lines around header blocks (e.g. 'if', 'for', 'while'...). |
| 54 | +--break-blocks |
| 55 | + |
| 56 | +# Pad empty lines around header blocks (e.g. 'if', 'for', 'while'...). |
| 57 | +# Treat closing header blocks (e.g. 'else', 'catch') as stand-alone blocks. |
| 58 | +#--break-blocks=all |
| 59 | + |
| 60 | +# Insert space padding around operators. |
| 61 | +# Note that there is no option to unpad. Once padded, they stay padded. |
| 62 | +--pad-oper |
| 63 | + |
| 64 | +# Insert space padding around parenthesis on both the outside and the inside. |
| 65 | +#--pad-paren |
| 66 | + |
| 67 | +# Insert space padding around parenthesis on the outside only. |
| 68 | +# This can be used with unpad-paren below to remove unwanted spaces. |
| 69 | +#--pad-paren-out |
| 70 | + |
| 71 | +# Insert space padding around parenthesis on the inside only. |
| 72 | +# This can be used with unpad-paren below to remove unwanted spaces. |
| 73 | +#--pad-paren-in |
| 74 | + |
| 75 | +# Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...). |
| 76 | +# This can be used with unpad-paren below to remove unwanted spaces. |
| 77 | +--pad-header |
| 78 | + |
| 79 | +# Remove extra space padding around parenthesis on the inside and outside. |
| 80 | +# This option can be used in combination with the paren padding options pad‑paren, |
| 81 | +# pad‑paren‑out, pad‑paren‑in, and pad‑header above. Only padding that has not |
| 82 | +# been requested by other options will be removed. |
| 83 | +# For example, if a source has parens padded on both the inside and outside, |
| 84 | +# and you want inside only. You need to use unpad-paren to remove the outside |
| 85 | +# padding, and pad‑paren‑in to retain the inside padding. |
| 86 | +# Using only pad‑paren‑in would not remove the outside padding. |
| 87 | +--unpad-paren |
| 88 | + |
| 89 | +# Delete empty lines within a function or method. Empty lines outside of functions |
| 90 | +# or methods are NOT deleted. If used with break-blocks or break-blocks=all it will |
| 91 | +# delete all lines EXCEPT the lines added by the break-blocks options. |
| 92 | +# --delete-empty-lines |
| 93 | + |
| 94 | +# Fill empty lines with the white space of the previous line. |
| 95 | +#--fill-empty-lines |
| 96 | + |
| 97 | +# When used with --style=attach, --style=linux, or --style=stroustrup, |
| 98 | +# this breaks closing headers (e.g. 'else', 'catch', ...) from their immediately |
| 99 | +# preceding closing brackets. Closing header brackets are always broken with |
| 100 | +# broken brackets, horstmann brackets, indented blocks, and indented brackets. |
| 101 | +#--break-closing-brackets |
| 102 | + |
| 103 | +# Break "else if" header combinations into separate lines. This option has no effect |
| 104 | +# if keep-one-line-statements is used, the "else if" statements will remain as they are. |
| 105 | +# If this option is NOT used, "else if" header combinations will be placed on a single line. |
| 106 | +#--break-elseifs |
| 107 | + |
| 108 | +# Don't break one-line blocks. |
| 109 | +#--keep-one-line-blocks |
| 110 | + |
| 111 | +# Don't break complex statements and multiple statements residing on a single line. |
| 112 | +#--keep-one-line-statements |
| 113 | + |
| 114 | +#Add brackets to unbracketed one line conditional statements (e.g. 'if', 'for', 'while'...). |
| 115 | +# The statement must be on a single line. The brackets will be added according to the |
| 116 | +# currently requested predefined style. If no style is requested the brackets will be attached. |
| 117 | +# If --add-one-line-brackets is also used the result will be one line brackets. |
| 118 | +--add-brackets |
| 119 | + |
| 120 | + |
| 121 | +# Add one line brackets to unbracketed one line conditional statements |
| 122 | +# (e.g. 'if', 'for', 'while'...). The statement must be on a single line. |
| 123 | +# The option implies --keep-one-line-blocks and will not break the one line blocks. |
| 124 | +#--add-one-line-brackets |
| 125 | + |
| 126 | +#Converts tabs into spaces in the non-indentation part of the line. The number of spaces |
| 127 | +# inserted will maintain the spacing of the tab. The current setting for spaces per tab is used. |
| 128 | +# It may not produce the expected results if convert-tabs is used when changing spaces per tab. |
| 129 | +# Tabs are not replaced in quotes. |
| 130 | +--convert-tabs |
| 131 | + |
| 132 | +# Attach a pointer or reference operator (* or &) to either the variable type (left) or variable |
| 133 | +# name (right), or place it in middle (between the type and name). The spacing between the type and |
| 134 | +# name will be preserved, if possible. To format references separately use the following |
| 135 | +# align-reference option. |
| 136 | +--align-pointer=type |
| 137 | + |
| 138 | +# This option will align references separate from pointers. Pointers are not changes by this option. |
| 139 | +# If pointers and references are to be aligned the same, use the previous align-pointer option. |
| 140 | +# The option align-reference=none will not change the reference alignment. The other options are |
| 141 | +# the same as for align-pointer. |
| 142 | +--align-reference=type |
| 143 | + |
| 144 | +######################### File Options ######################################### |
| 145 | + |
| 146 | +#Append the suffix #### instead of '.orig' to original filename (e.g. --suffix=.bak). |
| 147 | +# If this is to be a file extension, the dot '.' must be included. Otherwise the suffix will be |
| 148 | +# appended to the current file extension. |
| 149 | +#--suffix=.orig |
| 150 | + |
| 151 | +# Do not retain a backup of the original file. The original file is purged after it is formatted. |
| 152 | +#--suffix=none |
| 153 | + |
| 154 | +# For each directory in the command line, process all subdirectories recursively. When using the |
| 155 | +# recursive option the file name statement should contain a wildcard. Linux users should place the |
| 156 | +# filepath and name in double quotes so the shell will not resolve the wildcards (e.g. "$HOME/src/*.cpp"). |
| 157 | +# Windows users should place the filepath and name in double quotes if the path or name contains spaces. |
| 158 | +#--recursive |
| 159 | + |
| 160 | +#Specify a file or sub directory #### to be excluded from processing. |
| 161 | +# Excludes are matched from the end of the filepath. An exclude option of "templates" will exclude ALL |
| 162 | +# directories named "templates". An exclude option of "cpp/templates" will exclude ALL "cpp/templates" |
| 163 | +# directories. You may proceed backwards in the directory tree to exclude only the required directories. |
| 164 | +# Specific files may be excluded in the same manner. An exclude option of "default.cpp" will exclude ALL |
| 165 | +# files named "default.cpp". An exclude option of "python/default.cpp" will exclude ALL files named |
| 166 | +# "default.cpp" contained in a "python" subdirectory. You may proceed backwards in the directory tree to |
| 167 | +# exclude only the required files. |
| 168 | +# Wildcards are NOT allowed. There may be more than one exclude statement. |
| 169 | +# The filepath and name may be placed in double quotes (e.g. ‑‑exclude="foo bar.cpp"). |
| 170 | +#--exclude=#### |
| 171 | + |
| 172 | + |
| 173 | +# Allow processing to continue if there are errors in the "exclude=###" options. |
| 174 | +# This option lets the excludes for several projects be entered in a single option file. This option may |
| 175 | +# be placed in the same option file as the excludes. It will display the unmatched excludes. |
| 176 | +# The following option will not display the unmatched excludes. |
| 177 | +#ignore-exclude-errors |
| 178 | + |
| 179 | +# Allow processing to continue if there are errors in the "exclude=###" options. |
| 180 | +# This option lets the excludes for several projects be entered in a single option file. This option may |
| 181 | +# be placed in the same option file as the excludes. It will NOT display the unmatched excludes. |
| 182 | +# The preceding option will display the unmatched excludes. |
| 183 | +#ignore-exclude-errors-x |
| 184 | + |
| 185 | +# Print errors to standard-output rather than to standard-error. |
| 186 | +# This option should be helpful for systems/shells that do not have this option, such as in Windows95. |
| 187 | +#--errors-to-stdout |
| 188 | + |
| 189 | +# Preserve the original file's date and time modified. The date and time modified will not be changed |
| 190 | +# in the formatted file. This option is not effective if redirection is used to rename the input file. |
| 191 | +--preserve-date |
| 192 | + |
| 193 | +# Verbose display mode. Display optional information, such as release number and statistical data. |
| 194 | +#--verbose |
| 195 | + |
| 196 | +# Formatted files display mode. Display only the files that have been formatted. Do not display files that are unchanged. |
| 197 | +--formatted |
| 198 | + |
| 199 | +# Quiet display mode. Suppress all output except error messages. |
| 200 | +#--quiet |
| 201 | + |
| 202 | +# Force use of the specified line end style. Valid options are windows (CRLF), linux (LF), and macold (CR). |
| 203 | +# MacOld style is the format for OS 9 and earlier. Mac OS X uses the Linux style. If one of these options |
| 204 | +# is not used the line ends will be determined automatically from the input file. |
| 205 | +#--lineend=windows |
| 206 | +--lineend=linux |
| 207 | +#--lineend=macold |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
0 commit comments