-
Notifications
You must be signed in to change notification settings - Fork 159
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
Pickup latest release from cJSON #1047
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1047 +/- ##
=======================================
Coverage 82.23% 82.23%
=======================================
Files 52 52
Lines 5641 5641
=======================================
Hits 4639 4639
Misses 1002 1002
☔ View full report in Codecov by Sentry. |
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.
Fix & Ship. I think we should just disable lint on these files and keep it similar to external cJson as much as possible.
include/aws/common/external/cJSON.h
Outdated
/* helper for the cJSON_SetNumberValue macro */ | ||
CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number); | ||
#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number)) //NOLINT | ||
#define cJSON_SetNumberValue(object, number) (((object) != NULL) ? cJSON_SetNumberHelper((object), (double)(number)) : (number)) |
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.
Brackets arount object seems redundant 🤔 Ignore if there is a reason for those
#define cJSON_SetNumberValue(object, number) (((object) != NULL) ? cJSON_SetNumberHelper((object), (double)(number)) : (number)) | |
#define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)(number)) : (number)) |
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.
Saw the lint errors, we should probably just disable lint on these files.
@@ -28,10 +28,10 @@ THE SOFTWARE. | |||
* (3) Remove cJSON_GetErrorPtr and global_error as they are not thread-safe. | |||
*/ | |||
|
|||
/* clang-format off */ | |||
/* NOLINTBEGIN */ | |||
|
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.
why are we reenabling clang format? if we disabling tidy, we should disable format as well
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.
there is a .clang-format config that disabled the format already.
Issue #, if available:
Pick up change from https://github.com/DaveGamble/cJSON/releases/tag/v1.7.16
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.