Skip to content

Jitify2 options handling overhaul#129

Merged
benbarsdell merged 2 commits into
jitify2from
jitify2-options-handling-overhaul-new
May 22, 2024
Merged

Jitify2 options handling overhaul#129
benbarsdell merged 2 commits into
jitify2from
jitify2-options-handling-overhaul-new

Conversation

@benbarsdell

Copy link
Copy Markdown
Contributor
  • Refactors all options handling to use a single parser implementation and new Options and OptionsVec classes.
  • This makes the code significantly cleaner and more robust.
  • Maintains backwards compatibility with string vectors at API boundaries via implicit conversions.

Comment thread jitify2.hpp Outdated
#endif

#include <algorithm>
#include <cassert>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why the repeated includes in the different JITIF_SERIALIZATION_ONLY paths? Can these not just be factored out and moved above line 46?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@maddyscientist maddyscientist left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM (beyond a trivial comment().

- Refactors all options handling to use a single parser implementation
  and new Options and OptionsVec classes.
- This makes the code significantly cleaner and more robust.
- Maintains backwards compatibility with string vectors at API
  boundaries via implicit conversions.
@benbarsdell benbarsdell force-pushed the jitify2-options-handling-overhaul-new branch from 942fb9c to 7bc924e Compare May 22, 2024 09:17
@benbarsdell benbarsdell merged commit d6b37a7 into jitify2 May 22, 2024
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.

2 participants