-
Notifications
You must be signed in to change notification settings - Fork 46
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 #109, Move variables declared mid-function to the top #333
Conversation
a02d29f
to
a4e5277
Compare
@thnkslprpt Can you run the Clang formatter? |
a4e5277
to
d087112
Compare
Yes OK - I think i got it working now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit-pick on comment placement. Thank you for the contribution!
d087112
to
79486ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Claang formatting needed
79486ee
to
e151abd
Compare
4e1bb97
to
9b31ad9
Compare
commit 4e1bb97 Author: Avi Weiss <[email protected]> Date: Mon Dec 26 16:14:26 2022 +1100 Typo from merge from main commit 57ab176 Merge: e151abd 8368adc Author: Avi <[email protected]> Date: Mon Dec 26 15:16:21 2022 +1100 Merge branch 'main' into fix-109-variable-declarations commit e151abd Author: Avi <[email protected]> Date: Thu Oct 13 18:34:51 2022 +1000 Fix nasa#109, Move variables declared mid-function to the top
9b31ad9
to
dec4440
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-reviewed. Some initializations are moved along with the declaration line changes, however, these are done to variables whose assignment is unchanged whether mid-function or top.
commit 3454b3501d05c1e538a9068572b70d2ba35329f3 Author: Avi <[email protected]> Date: Fri Mar 10 09:32:15 2023 +1000 Fix nasa#105, Remove 'dummy' from variable names commit e18bde9 Merge: 8fb8d9c cb2977c Author: Avi <[email protected]> Date: Fri Mar 10 08:41:21 2023 +1000 Merge branch 'main' into fix-105-remove-dummy-from-variable-names commit cb2977c Merge: 4ce1aa9 3444ff4 Author: dzbaker <[email protected]> Date: Thu Mar 9 15:23:53 2023 -0500 Merge pull request nasa#366 from thnkslprpt/fix-365-remove-extraneous-assignments Fix nasa#365, Remove extraneous assignments to CFE_SUCCESS commit 4ce1aa9 Merge: c44e372 dec4440 Author: dzbaker <[email protected]> Date: Thu Mar 9 15:20:08 2023 -0500 Merge pull request nasa#333 from thnkslprpt/fix-109-variable-declarations Fix nasa#109, Move variables declared mid-function to the top commit 8fb8d9c Author: Avi <[email protected]> Date: Thu Feb 23 12:45:59 2023 +1000 Fix nasa#105, Remove 'dummy' from variable names commit 3444ff4 Author: Avi <[email protected]> Date: Thu Feb 16 10:39:06 2023 +1000 Fix nasa#365, Remove extraneous assignments to CFE_SUCCESS commit dec4440 Author: Avi Weiss <[email protected]> Date: Mon Dec 26 16:23:48 2022 +1100 Fix nasa#109, Move variables declared mid-function to the top commit 4e1bb97 Author: Avi Weiss <[email protected]> Date: Mon Dec 26 16:14:26 2022 +1100 Typo from merge from main commit 57ab176 Merge: e151abd 8368adc Author: Avi <[email protected]> Date: Mon Dec 26 15:16:21 2022 +1100 Merge branch 'main' into fix-109-variable-declarations commit e151abd Author: Avi <[email protected]> Date: Thu Oct 13 18:34:51 2022 +1000 Fix nasa#109, Move variables declared mid-function to the top
commit 4ef9460 Author: Avi <[email protected]> Date: Fri Mar 10 10:10:40 2023 +1000 Formatting commit e18bde9 Merge: 8fb8d9c cb2977c Author: Avi <[email protected]> Date: Fri Mar 10 08:41:21 2023 +1000 Merge branch 'main' into fix-105-remove-dummy-from-variable-names commit cb2977c Merge: 4ce1aa9 3444ff4 Author: dzbaker <[email protected]> Date: Thu Mar 9 15:23:53 2023 -0500 Merge pull request nasa#366 from thnkslprpt/fix-365-remove-extraneous-assignments Fix nasa#365, Remove extraneous assignments to CFE_SUCCESS commit 4ce1aa9 Merge: c44e372 dec4440 Author: dzbaker <[email protected]> Date: Thu Mar 9 15:20:08 2023 -0500 Merge pull request nasa#333 from thnkslprpt/fix-109-variable-declarations Fix nasa#109, Move variables declared mid-function to the top commit 8fb8d9c Author: Avi <[email protected]> Date: Thu Feb 23 12:45:59 2023 +1000 Fix nasa#105, Remove 'dummy' from variable names commit 3444ff4 Author: Avi <[email protected]> Date: Thu Feb 16 10:39:06 2023 +1000 Fix nasa#365, Remove extraneous assignments to CFE_SUCCESS commit dec4440 Author: Avi Weiss <[email protected]> Date: Mon Dec 26 16:23:48 2022 +1100 Fix nasa#109, Move variables declared mid-function to the top commit 4e1bb97 Author: Avi Weiss <[email protected]> Date: Mon Dec 26 16:14:26 2022 +1100 Typo from merge from main commit 57ab176 Merge: e151abd 8368adc Author: Avi <[email protected]> Date: Mon Dec 26 15:16:21 2022 +1100 Merge branch 'main' into fix-109-variable-declarations commit e151abd Author: Avi <[email protected]> Date: Thu Oct 13 18:34:51 2022 +1000 Fix nasa#109, Move variables declared mid-function to the top
Checklist
Describe the contribution
Fixes #109
All variables (that I could find) that were declared mid-function were moved to the top of their respective functions.
Testing performed
Just the CI GitHub actions so far.
Expected behavior changes
Aligns CF with the rest of cFS and the relevant coding guidelines.
Makes it easier and quicker to identify all variables in a function.
Contributor Info
@thnkslprpt