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

nodiscard not working #157

Open
thradams opened this issue Mar 9, 2024 · 0 comments
Open

nodiscard not working #157

thradams opened this issue Mar 9, 2024 · 0 comments

Comments

@thradams
Copy link
Owner

thradams commented Mar 9, 2024

struct parser_ctx{int x;};
enum token_type type {A};

[[nodiscard]]
int parser_match_tk(struct parser_ctx* ctx, enum token_type type)
{
}

void call(void) 
{
  struct parser_ctx ctx;
  parser_match_tk(&ctx, A);
}
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

No branches or pull requests

1 participant