fair.astyle 955 B

1234567891011121314151617181920212223242526272829303132
  1. # setup of the default options used for the fairbase classes
  2. # to use this option "astyle --options=fair.astyle <infile>"
  3. # bracket-style is linux
  4. # Break brackets from namespace, class, and function definitions,
  5. # but attach brackets to statements within a function
  6. --brackets=linux
  7. # indent is 2 spaces
  8. --indent=spaces=2
  9. # convert all tabs into spaces
  10. --convert-tabs
  11. # Add brackets to unbracketed one line conditional statements
  12. --add-brackets
  13. # Don't break one-line blocks.
  14. --keep-one-line-blocks
  15. # Force use of the linux (LF) line end style.
  16. --lineend=linux
  17. # Indent 'class' and 'struct' blocks so that the blocks
  18. # 'public:', 'protected:' and 'private:' are indented.
  19. # The struct blocks are indented only if an access modifier
  20. # is declared somewhere in the struct. The entire block is indented.
  21. --indent-classes
  22. # Attach a pointer or reference operator (* or &) to the variable type.
  23. --align-pointer=type