MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / arraySizeRequiredCheck

Method arraySizeRequiredCheck

glslang/MachineIndependent/ParseHelper.cpp:5607–5611  ·  view source on GitHub ↗

Require array to be completely sized

Source from the content-addressed store, hash-verified

5605// Require array to be completely sized
5606//
5607void TParseContext::arraySizeRequiredCheck(const TSourceLoc& loc, const TArraySizes& arraySizes)
5608{
5609 if (!parsingBuiltins && arraySizes.hasUnsized())
5610 error(loc, "array size required", "", "");
5611}
5612
5613void TParseContext::structArrayCheck(const TSourceLoc& /*loc*/, const TType& type)
5614{

Callers 1

yyparseFunction · 0.45

Calls 2

errorFunction · 0.85
hasUnsizedMethod · 0.80

Tested by

no test coverage detected