You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use it, copy the script above to a file named e.g. 'astyle_config'.
Then, to apply the style to the source file example.cpp, call 'astyle' with the following command:
astyle --options=astyle_config example.cpp
The file example.cpp will be rewritten to match the style rules.
Run the script from the root of the repository, for example:
./ci/astyle.sh
All the changed files in the last commit from the current branch will be checked and rewritten. The differences will be displayed after code style is applied.
Run script with parameter:
Optionally, the commit range can be passed as parameter to the script, applying code style on all changed files within the commits.