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

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 12:51:07 PDT 2022


aaron.ballman added reviewers: rjmccall, dexonsmith.
aaron.ballman marked an inline comment as done.
aaron.ballman added a comment.

Adding some Apple reviewers because this touches ObjC behavior (I would be very surprised if ObjC wanted different rules here than C though).



================
Comment at: clang/test/Sema/warn-missing-prototypes.c:61
 
+// FIXME: because qualifiers are ignored in the return type when forming the
+// type from the declarator, we get the position incorrect for the fix-it hint.
----------------
erichkeane wrote:
> Hrmph, this is unfortunate... 
It is, but it didn't seem like a sufficiently common situation to warrant trying to fix it.


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