Skip to content

Conversation

@cnaples79
Copy link

@cnaples79 cnaples79 commented Sep 25, 2025

Summary

  • generate stable fallback identifiers for unnamed function parameters when building CUDA shims
  • reuse the sanitized names across dynamic/static bindings so call sites emit valid C++
  • cover the regression with unit tests that exercise shim generation

Rationale

Changes

  • add a shared sanitizer for C++ parameter names and apply it across function/struct binding code
  • ensure shim generators dereference the sanitized identifiers instead of the raw (possibly empty) names
  • new tests validating that unnamed and duplicate parameters render distinct argument names

Fixes #168

@copy-pr-bot
Copy link

copy-pr-bot bot commented Sep 25, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when using functions with unnamed arguments

1 participant