Skip to content

Automatically Detect Template Types #275

Open
@TheTripleV

Description

@TheTripleV

When headers are scanned, the types used in a template should be cached. This can be used automatically fill in the template_params in create-gen.

For example (ctre pro),
CoreTalonFX.hpp has a function StatusSignalValue<units::angle::turn_t> &GetPosition();
From this, we know that StatusSignalValue needs a units::angle::turn_t template param.
Then, SignalStatusValue.hpp has a function SignalMeasurement<T> GetDataCopy() const {...}
From this, we can propogate all of SignalStatusValue's template_params including units::angle::turn_t to SignalMeasurement.

This would require all headers to be scanned before yaml files are written.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions