-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AStyle definition file and travis astyle check #6014
Closed
Closed
Commits on Mar 14, 2018
-
Add Astyle configuration file for mbed OS
This follows what is in the codebase in most cases (K&R with few exceptions). This should follow also how online compiler formats the code.
Configuration menu - View commit details
-
Copy full SHA for fe7569d - Browse repository at this point
Copy the full SHA fe7569dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82e8aa0 - Browse repository at this point
Copy the full SHA 82e8aa0View commit details -
Fetch 3.1 astyle from website (install from ubuntu contains old 2.05). Print version to verify and run on our codebase
Configuration menu - View commit details
-
Copy full SHA for 44bd7b0 - Browse repository at this point
Copy the full SHA 44bd7b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac9f57a - Browse repository at this point
Copy the full SHA ac9f57aView commit details -
This should reflect these rules that we have defined since mbed 2: ``` Indentation - 4 spaces. Please do not use tabs. Braces - K&R (see the exception 1 TBS below) 1 TBS -use braces for statements if, else, while, for (exception from K&R) Reference: http://en.wikipedia.org/wiki/Indent_style#Variant:_1TBS One line per statement Preprocessor macro starts at the beginning of a new line, the code inside is indented accordingly the code above it Cases within switch are indented (exception from K&R) Space after statements if, while, for, switch, same applies to binary and ternary operators Each line has preferably at most 120 characters For pointers, '*' is adjacent to a data name (analogin_t *obj) or a function name (analog_t *get_analogin_object()) Don't leave trailing spaces at the end of lines Empty lines should have no trailing spaces Unix line endings are default option for files Use capital letters for macros A file should have an empty line at the end ```
Configuration menu - View commit details
-
Copy full SHA for 8a341f1 - Browse repository at this point
Copy the full SHA 8a341f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc5f843 - Browse repository at this point
Copy the full SHA bc5f843View commit details -
Configuration menu - View commit details
-
Copy full SHA for 453da17 - Browse repository at this point
Copy the full SHA 453da17View commit details -
Configuration menu - View commit details
-
Copy full SHA for f99f9dc - Browse repository at this point
Copy the full SHA f99f9dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15fe790 - Browse repository at this point
Copy the full SHA 15fe790View commit details -
Configuration menu - View commit details
-
Copy full SHA for b502faa - Browse repository at this point
Copy the full SHA b502faaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dd6aba - Browse repository at this point
Copy the full SHA 0dd6abaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a4cd64 - Browse repository at this point
Copy the full SHA 0a4cd64View commit details -
Configuration menu - View commit details
-
Copy full SHA for b15554c - Browse repository at this point
Copy the full SHA b15554cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 774aa9c - Browse repository at this point
Copy the full SHA 774aa9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f5058a - Browse repository at this point
Copy the full SHA 9f5058aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1743833 - Browse repository at this point
Copy the full SHA 1743833View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c945b3 - Browse repository at this point
Copy the full SHA 5c945b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d8dd0c - Browse repository at this point
Copy the full SHA 6d8dd0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 35d03a6 - Browse repository at this point
Copy the full SHA 35d03a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1cb121 - Browse repository at this point
Copy the full SHA a1cb121View commit details
Commits on Mar 15, 2018
-
Configuration menu - View commit details
-
Copy full SHA for ef9dbc5 - Browse repository at this point
Copy the full SHA ef9dbc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83b47ef - Browse repository at this point
Copy the full SHA 83b47efView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.