rework domain api - #3367
Draft
mwestphal wants to merge 1 commit into
Draft
Conversation
|
You are modifying libf3d public API! |
mwestphal
force-pushed
the
rework_domain_api
branch
from
July 31, 2026 06:42
5b98b5c to
3bc5e81
Compare
|
Style Checks CI failed: diff --git a/library/private/options_generated.h.in b/library/private/options_generated.h.in
index 49ab07c..70ff756 100644
--- a/library/private/options_generated.h.in
+++ b/library/private/options_generated.h.in
@@ -165,7 +165,8 @@ f3d::options::DomainRange<f3d::option_variant_t> getRangeDomain(
/**
* Generated method, see `options::getEnumDomain`
*/
-f3d::options::DomainEnum<f3d::option_variant_t> getEnumDomain(const f3d::options& opt, std::string_view name)
+f3d::options::DomainEnum<f3d::option_variant_t> getEnumDomain(
+ const f3d::options& opt, std::string_view name)
{
// clang-format off
${_options_get_enum_domain};
diff --git a/library/private/options_tools.h b/library/private/options_tools.h
index 8139c06..a2d2cc0 100644
--- a/library/private/options_tools.h
+++ b/library/private/options_tools.h
@@ -923,7 +923,8 @@ f3d::options::DomainRange<f3d::option_variant_t> getRangeDomain(
* Get provided domain_enum as a DomainEnum<option_variant_t>.
* Only string is supported for now
*/
-f3d::options::DomainEnum<f3d::option_variant_t> getEnumDomain(const f3d::options::DomainEnum<std::string>& domain)
+f3d::options::DomainEnum<f3d::option_variant_t> getEnumDomain(
+ const f3d::options::DomainEnum<std::string>& domain)
{
f3d::options::DomainEnum<f3d::option_variant_t> ret;
std::ranges::copy(domain.enumeration, ret.enumeration.begin());
diff --git a/library/src/interactor_impl.cxx b/library/src/interactor_impl.cxx
index e78f95f..0660d83 100644
--- a/library/src/interactor_impl.cxx
+++ b/library/src/interactor_impl.cxx
@@ -849,11 +849,11 @@ interactor& interactor_impl::initCommands()
{
// recover the enumeration
// TODO
- //std::vector<std::string> enumeration = this->Internals->Options.getEnumDomain(args[0]);
+ // std::vector<std::string> enumeration = this->Internals->Options.getEnumDomain(args[0]);
// Transform potential values into found option
-// std::ranges::transform(enumeration, std::back_inserter(candidates),
-// [&](const auto& value) { return args[0] + " " + value; });
+ // std::ranges::transform(enumeration, std::back_inserter(candidates),
+ // [&](const auto& value) { return args[0] + " " + value; });
}
else
{
@@ -874,11 +874,12 @@ interactor& interactor_impl::initCommands()
this->Internals->Options.getDomainStyle(args[0]) == f3d::options::domain_style::ENUM)
{
// recover the enumeration
-// std::vector<std::string> enumeration = this->Internals->Options.getEnumDomain(args[0]);
+ // std::vector<std::string> enumeration =
+ // this->Internals->Options.getEnumDomain(args[0]);
// Complete the option value if possible
// TODO
-// return complNames(args, enumeration, 1);
+ // return complNames(args, enumeration, 1);
}
}
You can copy the patch above and apply it locally with:
|
mwestphal
force-pushed
the
rework_domain_api
branch
from
July 31, 2026 06:54
3bc5e81 to
d43a91d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Issue ticket number and link if any
Fix #3365
Checklist for finalizing the PR
.github/workflows/versions.json, I have updateddocker_timestampAI Disclosure
Continuous integration
Please write a comment to run CI, eg:
\ci fast.See here for more info.