diff options
| author | CiD- <jkercher43@gmail.com> | 2022-04-08 13:50:06 -0400 |
|---|---|---|
| committer | CiD- <jkercher43@gmail.com> | 2022-04-08 13:50:06 -0400 |
| commit | 56737c14314f541762f9adba78a33ac28036ec8c (patch) | |
| tree | e4df7b8bb3199aa04cb568f6007f54e5bc97cb3c /src/entity.cpp | |
| parent | 9ae566adcc5e7e55039349eed2b4768739391ae8 (diff) | |
| parent | f2f1330238d46bb6e80eac33da99604ac2f99a52 (diff) | |
merge upstream/master
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index f5720293f..1f87f7af6 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -45,9 +45,9 @@ enum EntityFlag : u64 { EntityFlag_NoAlias = 1ull<<9, EntityFlag_TypeField = 1ull<<10, EntityFlag_Value = 1ull<<11, - EntityFlag_Sret = 1ull<<12, - EntityFlag_ByVal = 1ull<<13, - EntityFlag_BitFieldValue = 1ull<<14, + + + EntityFlag_PolyConst = 1ull<<15, EntityFlag_NotExported = 1ull<<16, EntityFlag_ConstInput = 1ull<<17, @@ -115,6 +115,16 @@ struct ParameterValue { }; }; +bool has_parameter_value(ParameterValue const ¶m_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, }; |