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

Method makeAttributes

glslang/MachineIndependent/attribute.cpp:135–142  ·  view source on GitHub ↗

Make an initial leaf for the grammar from a no-argument attribute

Source from the content-addressed store, hash-verified

133
134// Make an initial leaf for the grammar from a no-argument attribute
135TAttributes* TParseContext::makeAttributes(const TString& identifier) const
136{
137 TAttributes *attributes = nullptr;
138 attributes = NewPoolObject(attributes);
139 TAttributeArgs args = { attributeFromName(identifier), nullptr };
140 attributes->push_back(args);
141 return attributes;
142}
143
144// Make an initial leaf for the grammar from a one-argument attribute
145TAttributes* TParseContext::makeAttributes(const TString& identifier, TIntermNode* node) const

Callers 1

yyparseFunction · 0.80

Calls 3

NewPoolObjectFunction · 0.85
makeAggregateMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected