[PATCH] D125919: Drop qualifiers from return types in C (DR423)

Dan Liew via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 3 10:54:41 PDT 2022


delcypher added a comment.

@rjmccall

>> Sorry if these are silly questions and if I've misunderstood something, I saw n1863 say "functions return unqualified types" and I was very surprised.
>
> Just to be clear, you understand that this is only about top-level qualifiers on the return type, right?  `const void *foo();` is still meaningful, it's just that `const void * const foo();` isn't.

Oh that wasn't obvious to me at all. I had assumed "unqualified types" means remove qualifiers from everywhere in the type, not just the top level. Presumably something was meant to imply that?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125919/new/

https://reviews.llvm.org/D125919



More information about the cfe-commits mailing list