-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 support of multi-dim C-style array member of struct. #4262
Conversation
* Support up to 4 dimensional array.
dd0625f
to
68c0097
Compare
Using docker image tuxmake/clang-nightly:20240109, ci_test_clang will pass. Can we update the CI config to use images from tuxmake/clang-nightly? @nlohmann |
Can you update to the latest develop branch - this should fix the CI - especially Clang-Tidy. |
Now the only remaining CI errors are:
I'm not sure how to proceed. The purpose of this change is to support C-style arrays, which contradicts the clang-tidy rules of avoiding them. What is your suggestion? @nlohmann |
You can add NOLINT comments for them. |
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.
Looks good to me.
Thanks! |
Support up to 4 dimensional array.
Modify pretty-print logic to print multi-dim array's inner most dimension in the same line for better readability.
Refer to discussion #4248 .