aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-03-18 22:18:12 +0000
committergingerBill <bill@gingerbill.org>2022-03-18 22:18:12 +0000
commita68f0b2d72a3883879da124321868afcdac3b9d6 (patch)
tree5db38b45f168926af8b9086ce24dbfb480666481 /src/checker.cpp
parentdf233f72a9d1bddb801bdaf150537477d4c23962 (diff)
Improve procedure group selection based on the minimum number of arguments
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index ea300afd9..53bba654d 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2657,6 +2657,15 @@ Array<Entity *> proc_group_entities(CheckerContext *c, Operand o) {
return procs;
}
+Array<Entity *> proc_group_entities_cloned(CheckerContext *c, Operand o) {
+ auto entities = proc_group_entities(c, o);
+ if (entities.count == 0) {
+ return {};
+ }
+ return array_clone(permanent_allocator(), entities);
+}
+
+
void init_core_type_info(Checker *c) {