Jerin Philip 2e7913342e
[clang] Improve _Alignas on a struct declaration diagnostic (#65638)
Fixes https://github.com/llvm/llvm-project/issues/58637. 

Adds `isAlignas()` method on `AttributeCommonInfo` which accounts for
C++ `alignas` as well as C11 `_Alignas`.

The method is used to improve diagnostic in C when `_Alignas` is used in
C at the wrong location.  This corrects the previously suggested move
of `_Alignas` past the declaration specifier, now warns attribute
`_Alignas` is ignored.

Based on https://reviews.llvm.org/D141177.
2023-11-07 08:27:41 -05:00
..
2022-08-06 11:53:40 -04:00
2023-08-11 08:42:01 -04:00
2023-08-11 08:42:01 -04:00
2023-08-11 08:42:01 -04:00
2022-11-29 14:44:37 -05:00
2022-06-30 15:46:47 -04:00
2022-12-08 13:19:29 -05:00
2022-07-12 15:18:03 -04:00
2022-10-24 15:11:04 -04:00
2023-08-10 13:57:40 -04:00