Add support of multi-dim C-style array member of struct.#4262
Add support of multi-dim C-style array member of struct.#4262nlohmann merged 3 commits intonlohmann:developfrom
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. |
|
Thanks! |
* Add support of multi-dim C-style array. * Support up to 4 dimensional array. * Suppress clang-tidy checks for C-style arrays
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 .