support argument as lvalue

This commit is contained in:
2024-08-23 04:10:35 +00:00
parent 52785c5435
commit 1f9e7acade
6 changed files with 200 additions and 33 deletions

View File

@ -326,6 +326,9 @@ class GlobalScope : public ScopeBase {
auto &tmp = classes[name]->llvm_class_info;
tmp.class_name_raw = name;
tmp.ArrangeSpace();
if (classes[name]->member_functions.find(name) != classes[name]->member_functions.end()) {
tmp.has_user_specified_constructor = true;
}
return tmp;
}