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

Method TStringAtomMap

glslang/MachineIndependent/preprocessor/PpAtom.cpp:159–179  ·  view source on GitHub ↗

Initialize the atom table.

Source from the content-addressed store, hash-verified

157// Initialize the atom table.
158//
159TStringAtomMap::TStringAtomMap()
160{
161 badToken.assign("<bad token>");
162
163 // Add single character tokens to the atom table:
164 const char* s = "~!%^&*()-+=|,.<>/?;:[]{}#\\";
165 char t[2];
166
167 t[1] = '\0';
168 while (*s) {
169 t[0] = *s;
170 addAtomFixed(t, s[0]);
171 s++;
172 }
173
174 // Add multiple character scanner tokens :
175 for (size_t ii = 0; ii < sizeof(tokens)/sizeof(tokens[0]); ii++)
176 addAtomFixed(tokens[ii].str, tokens[ii].val);
177
178 nextAtom = PpAtomLast;
179}
180
181} // end namespace glslang

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected