Skip to content

Commit

Permalink
Fix has_identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
zebullon committed Dec 8, 2024
1 parent d7d903f commit 85fbac6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clang/lib/AST/ExprConstantMeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 85fbac6

Please sign in to comment.