mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed valueless alias, warn on unused attribute
This commit is contained in:
parent
83ed41e81a
commit
5a3701fa90
4 changed files with 17 additions and 13 deletions
|
@ -10544,6 +10544,12 @@ BfCustomAttributes* BfModule::GetCustomAttributes(BfAttributeDirective* attribut
|
|||
return customAttributes;
|
||||
}
|
||||
|
||||
void BfModule::FinishAttributeState(BfAttributeState* attributeState)
|
||||
{
|
||||
if ((!attributeState->mUsed) && (attributeState->mSrc != NULL))
|
||||
Warn(0, "Unused attributes", attributeState->mSrc);
|
||||
}
|
||||
|
||||
void BfModule::ProcessTypeInstCustomAttributes(bool& isPacked, bool& isUnion, bool& isCRepr, bool& isOrdered)
|
||||
{
|
||||
if (mCurTypeInstance->mCustomAttributes != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue