Slick V3.3 manual 10. C/C++ Beautifier Schemes Tab

Models: V3.3

1 568
Download 568 pages 2.03 Kb
Page 265
Image 265

C/C++ Beautifier

The following options are available:

Indent preprocessing - When this option is selected, the indent before the # character of prepro- cessing is set to indicate the preprocessing nesting level.

Indent inside block - When this option is selected, preprocessing inside brace block is indented when inside preprocessing. Otherwise, preprocessing within a brace block start in column 1.

Indent inside special #ifndef - Many C/C++ header files starts with the following lines of code:

#ifndef myheader_h #define myheader_h

#endif

When this option is selected, preprocessing inside this special #ifndef case is indented.

Eat spaces after # - When this option is selected, the spaces after a preprocessor #, but before the keyword (if, ifdef, else, elif, endif, etc.), are removed. This is useful for fixing old C code where the # character had to start in column 1 and spaces were used after the # to indicate the nesting level.

Force parens on return - When this option is selected, parentheses are added to returns statements which do not have parentheses.

Pad condition - These options indicate if parenthesized conditional expressions should have their spa- cing adjusted.

Schemes Tab

Figure 7.10. C/C++ Beautifier: Schemes Tab

243

Page 265
Image 265
Slick V3.3 manual 10. C/C++ Beautifier Schemes Tab