a high level wrapper of astyle.
Aspect | bstyle | alias |
---|---|---|
deploy | single line command | config all bashrc manually |
use | more clear cli-opts | you have to obey original cli-opts layout |
Type the following command in shell.
cd path/to/source
./installprog.sh /usr/local
To convert a file of C-like source code:
bstyle -t path/to/source/targetfile1 -t path/to/source/targetfile2 -s FavoriteStyle
To List all avaliable styles:
bstyle -l
Output:
nice|nice-c -> Nice C (C); nice-c++ -> Nice C++ (C++); qt|qt-c++ -> Qt (C++); linux -> Linux Kernel (C); google|google-c++ -> Google C++ (C++)
It currently doesn't support formating all directory recursively, but there is alternative way to implement that.
find path/to/your/project -type f -name \*.xxx -exec bstyle -s STYLE -t {} \;
-
Nice C - Most readable C style as far as personal view.
-
Nice C++ - Most readable C++ style as far as personal view.
If there is incorrect astyle options for a certain style, please add a issue or send me a pull request with relevent references.