================
@@ -4907,6 +4907,20 @@ void Sema::AddModeAttr(Decl *D, const
AttributeCommonInfo &CI,
D->addAttr(::new (Context) ModeAttr(Context, CI, Name));
}
+static void handleNonStringAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
+ // This only applies to fields and variable declarations which have an array
+ // type.
+ QualType QT = cast<ValueDecl>(D)->getType();
+ if (!QT->isArrayType() ||
+ !QT->getBaseElementTypeUnsafe()->isAnyCharacterType()) {
----------------
AaronBallman wrote:
VLAs can't have an initializer anyway, so it's ill-formed through other means
https://github.com/llvm/llvm-project/pull/137829
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits