From 85fbac6d38f0d3985f78ce27050032dd96e57ba8 Mon Sep 17 00:00:00 2001 From: zebullon Date: Sun, 8 Dec 2024 12:27:42 +0900 Subject: [PATCH] Fix has_identifier --- clang/lib/AST/ExprConstantMeta.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/clang/lib/AST/ExprConstantMeta.cpp b/clang/lib/AST/ExprConstantMeta.cpp index 77a2998e8decab..859d7968333d15 100644 --- a/clang/lib/AST/ExprConstantMeta.cpp +++ b/clang/lib/AST/ExprConstantMeta.cpp @@ -2079,12 +2079,16 @@ bool has_identifier(APValue &Result, ASTContext &C, MetaActions &Meta, HasIdentifier = TDMS->Name && !TDMS->Name->empty(); break; } + case ReflectionKind::Attribute: { + // FIXME deal with ^^ [[ ]] + HasIdentifier = true; + break; + } case ReflectionKind::Null: case ReflectionKind::BaseSpecifier: case ReflectionKind::Object: case ReflectionKind::Value: case ReflectionKind::Annotation: - case ReflectionKind::Attribute: break; }