LLNL / shroud

Shroud: generate Fortran and Python wrappers for C and C++ libraries
BSD 3-Clause "New" or "Revised" License
90 stars 7 forks source link

Add metaattributes to function pointer arguments #347

Closed ltaylor16 closed 6 months ago

ltaylor16 commented 6 months ago

Add metaattribute fptr for a function pointer argument which contains a FunctionNode that uses the _bind field for its arguments.

Add Declarator.arg_name to set default name for abstract declarators. _bind is indexed by the argument name so it needs something.

Set meta["value"] instead of attr["value"]. This changes some comments in wrappers.

Do not default intent meta attribute for function pointer arguments. This preserves the existing wrappers. But may want to reconsider this later.