aboutsummaryrefslogtreecommitdiff
path: root/src/entity.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/entity.cpp
parentdf233f72a9d1bddb801bdaf150537477d4c23962 (diff)
Improve procedure group selection based on the minimum number of arguments
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index f5720293f..17fa884e1 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -115,6 +115,16 @@ struct ParameterValue {
};
};
+bool has_parameter_value(ParameterValue const &param_value) {
+ if (param_value.kind != ParameterValue_Invalid) {
+ return true;
+ }
+ if (param_value.original_ast_expr != nullptr) {
+ return true;
+ }
+ return false;
+}
+
enum EntityConstantFlags : u32 {
EntityConstantFlag_ImplicitEnumValue = 1<<0,
};