[PATCH] D75844: [clang] Set begin loc on GNU attribute parsed attrs
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 14 11:15:59 PDT 2020
aaron.ballman added a reviewer: rsmith.
aaron.ballman added a subscriber: rsmith.
aaron.ballman added a comment.
I think this is a reasonable approach (including moving `ParsedAttributesWithRange` into `Sema`), but we should have test coverage for the places where we're now using a range where we weren't previously (to ensure we're okay with the positional changes we're introducing).
Adding @rsmith to ensure I've not misunderstood layering concerns.
================
Comment at: clang/test/SemaCXX/switch-implicit-fallthrough.cpp:110-114
+ case 26:
+ return 0;
+ __attribute__((fallthrough)); // expected-warning{{fallthrough annotation in unreachable code}}
+ case 27:
+ break;
----------------
This test seems unrelated to the patch, or am I misunderstanding something?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75844/new/
https://reviews.llvm.org/D75844
More information about the cfe-commits
mailing list