Skip to content
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

Patch 1 #263

Merged
merged 20 commits into from
Sep 26, 2022
Merged

Patch 1 #263

merged 20 commits into from
Sep 26, 2022

Conversation

thirtytwobits
Copy link
Member

@thirtytwobits thirtytwobits commented Aug 18, 2022

As promised, completed work to support the built-in variable_length_array built-in.

I still owe this project:

  1. long-form guide on all these options we're enabling for C and C++
  2. tests covering user-supplied overrides of the built-in VLA type.

asmfreak and others added 5 commits July 4, 2022 14:34
Merge suggestion by @pavel-kirienko

Co-authored-by: Pavel Kirienko <pavel.kirienko@gmail.com>
This change fixes the support for a built-in, default variable length array implementation for C++ types that can be overridden by the user. To accomplish this the concept of “support resource type” was added to allow different behavior for serialization support resource than for datatype support resources.
@thirtytwobits thirtytwobits marked this pull request as draft August 18, 2022 21:04
@thirtytwobits thirtytwobits marked this pull request as ready for review August 30, 2022 00:27
Copy link
Member Author

@thirtytwobits thirtytwobits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding comments to guide the reviewer.

conftest.py Show resolved Hide resolved
setup.cfg Show resolved Hide resolved
src/nunavut/_utilities.py Show resolved Hide resolved
src/nunavut/jinja/__init__.py Show resolved Hide resolved
src/nunavut/lang/__init__.py Show resolved Hide resolved
tox.ini Show resolved Hide resolved
verification/CMakeLists.txt Show resolved Hide resolved
src/nunavut/lang/cpp/support/variable_length_array.hpp Outdated Show resolved Hide resolved
Copy link

@SchoberMJ SchoberMJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, not a C++ guru so I'm not sure I can provide appropriate feedback to the internal_compare function of the VLA.

Python code gen sections look clean. I'm not familiar with the documentation format of the doc strings, in particular lines 134-154 of src/nunavut/lang/cpp/init.py just looks like left over code to me.

src/nunavut/jinja/__init__.py Outdated Show resolved Hide resolved
@pavel-kirienko
Copy link
Member

@sonarcloud
Copy link

sonarcloud bot commented Sep 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

89.7% 89.7% Coverage
0.0% 0.0% Duplication

@thirtytwobits thirtytwobits merged commit 25bc50b into OpenCyphal:main Sep 26, 2022
@thirtytwobits thirtytwobits deleted the patch-1 branch September 26, 2022 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants