cake icon indicating copy to clipboard operation
cake copied to clipboard

nodiscard not working

Open thradams opened this issue 11 months ago • 0 comments


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);
}

thradams avatar Mar 09 '24 12:03 thradams