Skip to content

Consider a generic way to support pass through attributes in cxx-qt-gen #1132

Open
@ahayzen-kdab

Description

@ahayzen-kdab

We need to be able to pass through attributes such as

  • cfg
  • doc
  • allow
  • deny
  • etc

On many different elements in the original bridge macro. We should consider if there is a more generic way of doing this in the parser and generator phases with a generic type / mapping. Also see what attributes CXX is supporting https://github.com/dtolnay/cxx/blob/547a0edcf79cca2dad3f835ba736cfb85e93b1e5/syntax/attrs.rs#L286 https://github.com/dtolnay/cxx/blob/547a0edcf79cca2dad3f835ba736cfb85e93b1e5/macro/src/derive.rs#L17

Metadata

Metadata

Assignees

No one assigned

    Labels

    🥳🎉 1.0This issue is part of stabilization for 1.0 release

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions