-
Notifications
You must be signed in to change notification settings - Fork 232
Fix #2341, Rename TimeA/TimeB parameter to improve consistency #2342
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
base: main
Are you sure you want to change the base?
Fix #2341, Rename TimeA/TimeB parameter to improve consistency #2342
Conversation
|
|
||
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeA); | ||
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeB); | ||
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, Time1); |
Check warning
Code scanning / CodeQL
Uses of recursion
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeA); | ||
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, TimeB); | ||
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, Time1); | ||
| UT_GenStub_AddParam(CFE_TIME_Compare, CFE_TIME_SysTime_t, Time2); |
Check warning
Code scanning / CodeQL
Uses of recursion
| ** Compute the amount of time "since" the tone... | ||
| */ | ||
| if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_A_LT_B) | ||
| if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_1_LT_2) |
Check warning
Code scanning / CodeQL
Uses of recursion
| ** Compute the amount of time "since" the tone... | ||
| */ | ||
| if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_A_LT_B) | ||
| if (CFE_TIME_Compare(Reference->CurrentLatch, Reference->AtToneLatch) == CFE_TIME_1_LT_2) |
Check warning
Code scanning / CodeQL
Side effect in a Boolean expression
| * ---------------------------------------------------- | ||
| */ | ||
| CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t TimeA, CFE_TIME_SysTime_t TimeB) | ||
| CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t Time1, CFE_TIME_SysTime_t Time2) |
Check notice
Code scanning / CodeQL
Long function without assertion
| * | ||
| *-----------------------------------------------------------------*/ | ||
| CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t TimeA, CFE_TIME_SysTime_t TimeB) | ||
| CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t Time1, CFE_TIME_SysTime_t Time2) |
Check notice
Code scanning / CodeQL
Long function without assertion
e7e04bf to
232e463
Compare
Checklist
Describe the contribution
TimeA/TimeBparameter names toTime1/Time2- making all consistent across cFE (the other option is to reverse this and convert the others to TimeA/TimeB)CFE_TIME_A_GT_BandCFE_TIME_A_LT_BtoCFE_TIME_1_GT_2andCFE_TIME_1_LT_2to remain consistentNote: If this PR is merged it will require a minor update to SC which utilises the
CFE_TIME_A_GT_Benumerated type here and in a couple of tests.Testing performed
GitHub CI actions all passing successfully (incl. Build + Run, Coverage/Functional Tests etc.).
Expected behavior changes
Contributor Info
Avi Weiss @thnkslprpt