aboutsummaryrefslogtreecommitdiff
path: root/src/check_decl.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-08 17:04:55 +0000
committergingerBill <bill@gingerbill.org>2022-02-08 17:04:55 +0000
commit0cc40db565a9c4b99e6fa0844b9ac512558626e4 (patch)
tree0273b88ab9e4b98fa6be130d808c9ed63dd8a35c /src/check_decl.cpp
parent30bb2382aa0c7a9d6407c0b28258cd9fd00c560d (diff)
Begin work on support objc intrinsics
Diffstat (limited to 'src/check_decl.cpp')
-rw-r--r--src/check_decl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp
index f6dade812..243dbbbc6 100644
--- a/src/check_decl.cpp
+++ b/src/check_decl.cpp
@@ -338,6 +338,9 @@ void check_type_decl(CheckerContext *ctx, Entity *e, Ast *init_expr, Type *def)
if (decl != nullptr) {
AttributeContext ac = {};
check_decl_attributes(ctx, decl->attributes, type_decl_attribute, &ac);
+ if (e->kind == Entity_TypeName && ac.objc_class != "") {
+ e->TypeName.objc_class_name = ac.objc_class;
+ }
}