MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / GetNumericIds

Method GetNumericIds

source/text_handler.cpp:437–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437std::set<uint32_t> AssemblyContext::GetNumericIds() const {
438 std::set<uint32_t> ids;
439 for (const auto& kv : named_ids_) {
440 uint32_t id;
441 if (spvtools::utils::ParseNumber(kv.first.c_str(), &id)) ids.insert(id);
442 }
443 return ids;
444}
445
446} // namespace spvtools

Callers 1

GetNumericIdsFunction · 0.80

Calls 3

ParseNumberFunction · 0.85
c_strMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected