llvm-capstone/clang/test/C/drs
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
..
abc_123.h Update the status of some more C DRs 2022-08-06 11:53:40 -04:00
dr0xx.c [C23] Rename C2x->C23 in diagnostics 2023-08-11 08:42:01 -04:00
dr1xx.c Reapply [clang] [test] Narrow down MSVC specific behaviours from "any windows" to only MSVC/clang-cl 2023-05-16 10:41:30 +03:00
dr2xx.c [C23] Rename C2x->C23 in diagnostics 2023-08-11 08:42:01 -04:00
dr3xx.c [C23] Rename C2x->C23 in diagnostics 2023-08-11 08:42:01 -04:00
dr4xx.c [clang] Improve _Alignas on a struct declaration diagnostic (#65638) 2023-11-07 08:27:41 -05:00
dr5xx.c Add test coverage for more C DRs 2022-11-29 14:44:37 -05:00
dr011.c
dr060.c Test more C DR conformance (part two of many) 2022-05-22 13:37:30 -04:00
dr094.c Test C DR conformance (part three of many) 2022-05-25 08:18:16 -04:00
dr157.c Update statuses and add tests for C89 DRs 2022-06-28 10:29:20 -04:00
dr158.c Update statuses and add tests for C89 DRs 2022-06-28 10:29:20 -04:00
dr206.c Test and document some C99 DRs 2022-06-30 15:46:47 -04:00
dr208.c [clang][NFC][tests] dr208.c optional signext handling 2022-07-01 00:03:58 -04:00
dr209.c Fix test expectation positioning relative to FIXME comment 2022-06-30 14:08:25 -07:00
dr253.c [AST] Only dump desugared type when visibly different (#65214) 2023-10-26 19:28:28 +01:00
dr259.c Update the status of a few more C DRs 2022-12-08 13:19:29 -05:00
dr268.c Speculatively fix this C DR test 2022-07-12 15:18:03 -04:00
dr324.c [test] Fix dr324.c again for non-writeable source directories 2022-12-12 10:11:19 -08:00
dr335.c Fix a failing C DR test case found by post-commit CI 2022-10-24 16:25:10 -04:00
dr338.c Update the status of more C99 DRs 2022-10-24 15:11:04 -04:00
dr411.c [C2x] Support -std=c23 and -std=gnu23 2023-08-10 13:57:40 -04:00
dr464.c Add more tests for C DRs and update the status page 2022-11-18 14:15:41 -05:00
dr466.c Add more tests for C DRs and update the status page 2022-11-18 14:15:41 -05:00
dr483.c Add more tests for C DRs and update the status page 2022-11-18 14:15:41 -05:00
dr491.c Add more tests for C DRs and update the status page 2022-11-18 14:15:41 -05:00
dr494.c Add more tests for C DRs and update the status page 2022-11-18 14:15:41 -05:00