[PATCH] D64838: [Attr] Support _attribute__ ((fallthrough))

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 25 05:49:00 PDT 2019


aaron.ballman added a comment.

In D64838#1597771 <https://reviews.llvm.org/D64838#1597771>, @xbolva00 wrote:

> >>   they parse the attributes first then attempt to parse a declaration; if that fails, they fall back to parsing a statement
>
> Well, I don’t think this reparsing is ideal in terms of compile time either.
>
> If we really care about attributes on implicit ints: I don’t think that parsing according to attribute name is so bad solution - if only “possible” issue is same attr. name for stmt and decl for some future attribute - let’s talk with GCC devs and make a deal about it.


Richard and I spoke about that offline last week and both agree that changing parsing behavior according to the attribute name is not acceptable behavior for the parser.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D64838





More information about the cfe-commits mailing list