bytedeco/javacpp

Generalize automatic addition of adapter annotations

Open

#670 opened on Apr 8, 2023

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Java (620 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It would be nice to generalize this logic for, eg, containers or arrays. Currently, if we must map a std::vector<std::shared_ptr<M>>, we need to add an info new Info("std::shared_ptr<M>").pointerTypes("M"). While this is not needed if std::shared_ptr<M> is the type of a function argument or a return type. But adding such manual info also cancel the automatic additions of @Cast and possibly others performed by the parser.

Could this logic be moved from declarator() to type() ?

Contributor guide