[qfcc] Handle aliases and provisional in spirv grammar

They're currently ignored, but it seems the recent spec update added
these fields.
This commit is contained in:
Bill Currie 2025-02-11 15:10:50 +09:00
parent ad51881a60
commit c18d1b5629

View file

@ -270,6 +270,8 @@ static plfield_t spirv_enumerant_fields[] = {
{"parameters", 0, QFArray, parse_array, &parse_parameter_data},
{"version", offsetof (spirv_enumerant_t, version), QFString, parse_string, &parse_string_array},
{"lastVersion", offsetof (spirv_enumerant_t, lastVersion), QFString, parse_string, &parse_string_array},
{"aliases", 0, QFArray, parse_ignore, nullptr},
{"provisional", 0, QFBool, parse_ignore, nullptr},
{ }
};
@ -336,6 +338,8 @@ static plfield_t spirv_instruction_fields[] = {
{"version", offsetof (spirv_instruction_t, version), QFString, parse_string, &parse_string_array},
{"lastVersion", offsetof (spirv_instruction_t, lastVersion), QFString, parse_string, &parse_string_array},
{"class", 0, QFString, parse_ignore, nullptr},
{"aliases", 0, QFArray, parse_ignore, nullptr},
{"provisional", 0, QFBool, parse_ignore, nullptr},
{ }
};