mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-14 10:36:43 +00:00
Report error in the buffer formatter if a recursive struct is declared
This commit is contained in:
@@ -1219,6 +1219,13 @@ ParsedFormat BufferFormatter::ParseFormatString(const QString &formatString, uin
|
||||
break;
|
||||
}
|
||||
|
||||
if(!isPointer && structContext.structDef.type.name == cur->structDef.type.name)
|
||||
{
|
||||
reportError(tr("Invalid nested struct declaration, only allowed for pointers."));
|
||||
success = false;
|
||||
break;
|
||||
}
|
||||
|
||||
QString varName = structMatch.captured(3).trimmed();
|
||||
|
||||
if(varName.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user