Skip to content
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

Fix astyle errors (clears all remaining styling issues) #8711

Merged
merged 24 commits into from
Nov 16, 2018

Conversation

0xc0170
Copy link
Contributor

@0xc0170 0xc0170 commented Nov 12, 2018

Description

Last clean up for master - run astyle for all files.

Main goal: turn astyle coding failures to errors (I'll test it here that styling error causes PR red)

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@0xc0170 0xc0170 force-pushed the fix_astyle_error branch 3 times, most recently from 304eb57 to 427ad7a Compare November 12, 2018 12:33
@0xc0170 0xc0170 changed the title Fix astyle error Fix astyle errors (clears all remaining styling issues) Nov 12, 2018
@0xc0170 0xc0170 force-pushed the fix_astyle_error branch 3 times, most recently from 69bf4a8 to fc05eec Compare November 13, 2018 10:27
@cmonr cmonr self-requested a review November 13, 2018 22:51
@0xc0170
Copy link
Contributor Author

0xc0170 commented Nov 14, 2018

The style check works - it errors if there is style issue. I'll rebase to remove style issue and should get green.

This still needs reviews

@0xc0170
Copy link
Contributor Author

0xc0170 commented Nov 15, 2018

Conflict resolved, removed style error for testing, rebased to the latest master

@0xc0170
Copy link
Contributor Author

0xc0170 commented Nov 15, 2018

8 styling issues on master, rerunning travis to report them and will fix

@0xc0170
Copy link
Contributor Author

0xc0170 commented Nov 15, 2018

AStyle - 0 errors, please review! This was tested with an error, and without.

I would suggest to get this for 5.11 (asap) otherwise we will have conflicts all the time (not that simple to rebase and rerun astyle to check for errors)

Copy link
Contributor

@cmonr cmonr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

enet_tasklet_network_state_changed(MESH_CONNECTED_GLOBAL);
} else {
enet_tasklet_network_state_changed(MESH_CONNECTED_LOCAL);;
}
}
} else {
if (tasklet_data_ptr->connection_status != MESH_DISCONNECTED &&
tasklet_data_ptr->connection_status != MESH_BOOTSTRAP_STARTED)
tasklet_data_ptr->connection_status != MESH_BOOTSTRAP_STARTED) {
enet_tasklet_network_state_changed(MESH_DISCONNECTED);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit concerned and bothered that astyle caught this..

if (NULL == os_timer) {
os_timer = new (os_timer_data) rtos::internal::SysTimer();
os_timer->setup_irq();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way GitHub handled this diff is odd...

@cmonr
Copy link
Contributor

cmonr commented Nov 15, 2018

travis-ci/astyle — Passed, 0 files (-58 files)

Minus.

Nice

@cmonr
Copy link
Contributor

cmonr commented Nov 16, 2018

Info: This PR has been re-bundled into a new rollup PR (#8763).

The previous rollup found an issue with a bundled PR after new devices were added into master. The PR needing work has been removed.

No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged.
If any more commits are made in this PR, this PR will remain open and have to go through CI on its own.

@0xc0170 0xc0170 merged commit 3f289c2 into ARMmbed:master Nov 16, 2018
@0xc0170 0xc0170 removed the needs: CI label Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants