Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCWSTR is not marked with [GeneratedCode] #1216

Open
colejohnson66 opened this issue Jun 21, 2024 · 0 comments
Open

PCWSTR is not marked with [GeneratedCode] #1216

colejohnson66 opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@colejohnson66
Copy link

Actual behavior

The generated type, Windows.Win32.Foundation.PCWSTR is not marked with [GeneratedCode] like the other generated ones are (such as BOOL, CHAR, etc.). This causes it to be flagged as "uncovered" in test coverage reports.

Expected behavior

PCWSTR to be marked with [GeneratedCode] like the other generated types.

Repro steps

  1. NativeMethods.txt content:
CreateFile
  1. Observe generation of various Windows.Win32.X.g.cs files by CsWin32.
  2. Observe that all types but that in Windows.Win32.PCWSTR.g.cs are marked with [GeneratedCode]

Context

  • CsWin32 version: 0.3.106
  • Win32Metadata version (if explicitly set by project): N/A
  • Target Framework: net8.0
  • LangVersion: latest
@colejohnson66 colejohnson66 added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant