[clang] [clang] Add clang::debug_info_type attribute for bitfields (PR #69104)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 18 12:25:15 PDT 2023
================
@@ -5910,6 +5910,30 @@ static void handleBuiltinAliasAttr(Sema &S, Decl *D,
D->addAttr(::new (S.Context) BuiltinAliasAttr(S.Context, AL, Ident));
}
+static void handleDebugInfoTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
+ if (!AL.hasParsedType()) {
+ S.Diag(AL.getLoc(), diag::err_attribute_wrong_number_arguments) << AL << 1;
+ return;
+ }
----------------
AaronBallman wrote:
I don't think you need this because the common attribute handler should hopefully take care of counting arguments for you.
https://github.com/llvm/llvm-project/pull/69104
More information about the cfe-commits
mailing list