mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-04 22:20:12 +00:00
16981f87fe
Previously we have several grammar tables defined as global static variables and these grammar table entries contains non-POD struct fields (CapabilitySet/ExtensionSet). The initialization of these non-POD struct fields may require calling operator new. If used as a library and the caller defines its own operator new, things can screw up. This pull request changes all global static variables into function static variables, which is lazy evaluated in a thread safe way as guaranteed by C++11. |
||
---|---|---|
.. | ||
check_copyright.py | ||
generate_grammar_tables.py | ||
generate_registry_tables.py | ||
generate_vim_syntax.py | ||
update_build_version.py |