Error: CPPCHECK_WARNING (CWE-562): [#def1] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:3189: error[danglingTempReference]: Using reference to dangling temporary. # 3187| # 3188| auto &sampler = set<SPIRType>(type_id, OpTypeSampler); # 3189|-> sampler.basetype = SPIRType::Sampler; # 3190| # 3191| auto &ptr_sampler = set<SPIRType>(ptr_type_id, OpTypePointer); Error: CPPCHECK_WARNING (CWE-562): [#def2] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:3192: error[danglingTempReference]: Using reference to dangling temporary. # 3190| # 3191| auto &ptr_sampler = set<SPIRType>(ptr_type_id, OpTypePointer); # 3192|-> ptr_sampler = sampler; # 3193| ptr_sampler.self = type_id; # 3194| ptr_sampler.storage = StorageClassUniformConstant; Error: CPPCHECK_WARNING (CWE-562): [#def3] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:3193: error[danglingTempReference]: Using reference to dangling temporary. # 3191| auto &ptr_sampler = set<SPIRType>(ptr_type_id, OpTypePointer); # 3192| ptr_sampler = sampler; # 3193|-> ptr_sampler.self = type_id; # 3194| ptr_sampler.storage = StorageClassUniformConstant; # 3195| ptr_sampler.pointer = true; Error: CPPCHECK_WARNING (CWE-562): [#def4] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:3194: error[danglingTempReference]: Using reference to dangling temporary. # 3192| ptr_sampler = sampler; # 3193| ptr_sampler.self = type_id; # 3194|-> ptr_sampler.storage = StorageClassUniformConstant; # 3195| ptr_sampler.pointer = true; # 3196| ptr_sampler.parent_type = type_id; Error: CPPCHECK_WARNING (CWE-562): [#def5] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:3195: error[danglingTempReference]: Using reference to dangling temporary. # 3193| ptr_sampler.self = type_id; # 3194| ptr_sampler.storage = StorageClassUniformConstant; # 3195|-> ptr_sampler.pointer = true; # 3196| ptr_sampler.parent_type = type_id; # 3197| Error: CPPCHECK_WARNING (CWE-562): [#def6] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:3196: error[danglingTempReference]: Using reference to dangling temporary. # 3194| ptr_sampler.storage = StorageClassUniformConstant; # 3195| ptr_sampler.pointer = true; # 3196|-> ptr_sampler.parent_type = type_id; # 3197| # 3198| set<SPIRVariable>(var_id, ptr_type_id, StorageClassUniformConstant, 0); Error: CPPCHECK_WARNING (CWE-562): [#def7] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:4905: error[danglingTempReference]: Using reference to dangling temporary. # 4903| { # 4904| auto &constant = set<SPIRConstant>(id, type); # 4905|-> constant.make_null(constant_type); # 4906| } # 4907| else if (!constant_type.array.empty()) Error: CPPCHECK_WARNING (CWE-562): [#def8] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_cross.cpp:4935: error[danglingTempReference]: Using reference to dangling temporary. # 4933| { # 4934| auto &constant = set<SPIRConstant>(id, type); # 4935|-> constant.make_null(constant_type); # 4936| } # 4937| } Error: CPPCHECK_WARNING (CWE-562): [#def9] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:4001: error[danglingTempReference]: Using reference to dangling temporary. # 3999| uint32_t ids = ir.increase_bound_by(3); # 4000| auto &uint_type = set<SPIRType>(ids, OpTypeInt); # 4001|-> uint_type.basetype = SPIRType::UInt; # 4002| uint_type.width = 32; # 4003| set<SPIRExpression>(ids + 1, builtin_to_glsl(BuiltInInvocationId, StorageClassInput), ids, true); Error: CPPCHECK_WARNING (CWE-562): [#def10] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:4002: error[danglingTempReference]: Using reference to dangling temporary. # 4000| auto &uint_type = set<SPIRType>(ids, OpTypeInt); # 4001| uint_type.basetype = SPIRType::UInt; # 4002|-> uint_type.width = 32; # 4003| set<SPIRExpression>(ids + 1, builtin_to_glsl(BuiltInInvocationId, StorageClassInput), ids, true); # 4004| set<SPIRConstant>(ids + 2, ids, i, false); Error: CPPCHECK_WARNING (CWE-562): [#def11] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:6647: error[returnTempReference]: Reference to temporary returned. # 6645| forced_temporaries.insert(id); # 6646| emit_uninitialized_temporary(type, id); # 6647|-> return set<SPIRExpression>(id, to_name(id), type, true); # 6648| } # 6649| Error: CPPCHECK_WARNING (CWE-562): [#def12] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:6750: error[returnTempReference]: Reference to temporary returned. # 6748| suppressed_usage_tracking.insert(result_id); # 6749| # 6750|-> return set<SPIRExpression>(result_id, rhs, result_type, true); # 6751| } # 6752| else Error: CPPCHECK_WARNING (CWE-562): [#def13] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:6756: error[returnTempReference]: Reference to temporary returned. # 6754| // If expression isn't immutable, bind it to a temporary and make the new temporary immutable (they always are). # 6755| statement(declare_temporary(result_type, result_id), rhs, ";"); # 6756|-> return set<SPIRExpression>(result_id, to_name(result_id), result_type, true); # 6757| } # 6758| } Error: CPPCHECK_WARNING (CWE-562): [#def14] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12335: error[danglingTempReference]: Using reference to dangling temporary. #12333| #12334| auto *backing_variable = maybe_get_backing_variable(ops[2]); #12335|-> expr.loaded_from = backing_variable ? backing_variable->self : ID(ops[2]); #12336| expr.need_transpose = meta.need_transpose; #12337| expr.access_chain = true; Error: CPPCHECK_WARNING (CWE-562): [#def15] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12336: error[danglingTempReference]: Using reference to dangling temporary. #12334| auto *backing_variable = maybe_get_backing_variable(ops[2]); #12335| expr.loaded_from = backing_variable ? backing_variable->self : ID(ops[2]); #12336|-> expr.need_transpose = meta.need_transpose; #12337| expr.access_chain = true; #12338| expr.access_meshlet_position_y = meta.access_meshlet_position_y; Error: CPPCHECK_WARNING (CWE-562): [#def16] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12337: error[danglingTempReference]: Using reference to dangling temporary. #12335| expr.loaded_from = backing_variable ? backing_variable->self : ID(ops[2]); #12336| expr.need_transpose = meta.need_transpose; #12337|-> expr.access_chain = true; #12338| expr.access_meshlet_position_y = meta.access_meshlet_position_y; #12339| Error: CPPCHECK_WARNING (CWE-562): [#def17] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12338: error[danglingTempReference]: Using reference to dangling temporary. #12336| expr.need_transpose = meta.need_transpose; #12337| expr.access_chain = true; #12338|-> expr.access_meshlet_position_y = meta.access_meshlet_position_y; #12339| #12340| // Mark the result as being packed. Some platforms handled packed vectors differently than non-packed. Error: CPPCHECK_WARNING (CWE-562): [#def18] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12364: error[danglingTempReference]: Using reference to dangling temporary. #12362| { #12363| inherit_expression_dependencies(ops[1], ops[i]); #12364|-> add_implied_read_expression(expr, ops[i]); #12365| } #12366| Error: CPPCHECK_WARNING (CWE-562): [#def19] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12369: error[danglingTempReference]: Using reference to dangling temporary. #12367| // If we have no dependencies after all, i.e., all indices in the access chain are immutable temporaries, #12368| // we're not forwarded after all. #12369|-> if (expr.expression_dependencies.empty()) #12370| forwarded_temporaries.erase(ops[1]); #12371| Error: CPPCHECK_WARNING (CWE-562): [#def20] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12879: error[danglingTempReference]: Using reference to dangling temporary. #12877| // Cannot lower to a SPIRExpression, just copy the object. #12878| auto &e = set<SPIRAccessChain>(id, *chain); #12879|-> e.self = id; #12880| } #12881| else if (imgsamp) Error: CPPCHECK_WARNING (CWE-562): [#def21] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12888: error[danglingTempReference]: Using reference to dangling temporary. #12886| // and in case GLSL or other subclasses require it in the future. #12887| auto &e = set<SPIRCombinedImageSampler>(id, *imgsamp); #12888|-> e.self = id; #12889| } #12890| else if (expression_is_lvalue(rhs) && !pointer) Error: CPPCHECK_WARNING (CWE-562): [#def22] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:14358: error[danglingTempReference]: Using reference to dangling temporary. #14356| // When using the pointer, we need to know which variable it is actually loaded from. #14357| auto *var = maybe_get_backing_variable(ops[2]); #14358|-> e.loaded_from = var ? var->self : ID(0); #14359| inherit_expression_dependencies(id, ops[3]); #14360| break; Error: CPPCHECK_WARNING (CWE-562): [#def23] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:18603: error[danglingTempReference]: Using reference to dangling temporary. #18601| { #18602| auto &lhs_expr = set<SPIRExpression>(lhs_id, std::move(lhs), lhs_type_id, true); #18603|-> lhs_expr.need_transpose = lhs_meta.need_transpose; #18604| #18605| if (lhs_meta.storage_is_packed) Error: CPPCHECK_WARNING (CWE-562): [#def24] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:18616: error[danglingTempReference]: Using reference to dangling temporary. #18614| { #18615| auto &rhs_expr = set<SPIRExpression>(rhs_id, std::move(rhs), rhs_type_id, true); #18616|-> rhs_expr.need_transpose = rhs_meta.need_transpose; #18617| #18618| if (rhs_meta.storage_is_packed) Error: CPPCHECK_WARNING (CWE-562): [#def25] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2472: error[danglingTempReference]: Using reference to dangling temporary. # 2470| # 2471| auto &type = set<SPIRType>(op_type, OpTypeStruct); # 2472|-> type.basetype = SPIRType::Struct; # 2473| set_name(op_type, block_name); # 2474| set_decoration(op_type, DecorationBlock); Error: CPPCHECK_WARNING (CWE-562): [#def26] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2478: error[danglingTempReference]: Using reference to dangling temporary. # 2476| set_decoration(op_type, DecorationPerPrimitiveEXT); # 2477| # 2478|-> auto &arr = set<SPIRType>(op_arr, type); # 2479| arr.parent_type = type.self; # 2480| arr.array.push_back(per_primitive ? execution.output_primitives : execution.output_vertices); Error: CPPCHECK_WARNING (CWE-562): [#def27] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2479: error[danglingTempReference]: Using reference to dangling temporary. # 2477| # 2478| auto &arr = set<SPIRType>(op_arr, type); # 2479|-> arr.parent_type = type.self; # 2480| arr.array.push_back(per_primitive ? execution.output_primitives : execution.output_vertices); # 2481| arr.array_size_literal.push_back(true); Error: CPPCHECK_WARNING (CWE-562): [#def28] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2480: error[danglingTempReference]: Using reference to dangling temporary. # 2478| auto &arr = set<SPIRType>(op_arr, type); # 2479| arr.parent_type = type.self; # 2480|-> arr.array.push_back(per_primitive ? execution.output_primitives : execution.output_vertices); # 2481| arr.array_size_literal.push_back(true); # 2482| Error: CPPCHECK_WARNING (CWE-562): [#def29] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2481: error[danglingTempReference]: Using reference to dangling temporary. # 2479| arr.parent_type = type.self; # 2480| arr.array.push_back(per_primitive ? execution.output_primitives : execution.output_vertices); # 2481|-> arr.array_size_literal.push_back(true); # 2482| # 2483| auto &ptr = set<SPIRType>(op_ptr, arr); Error: CPPCHECK_WARNING (CWE-562): [#def30] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2483: error[danglingTempReference]: Using reference to dangling temporary. # 2481| arr.array_size_literal.push_back(true); # 2482| # 2483|-> auto &ptr = set<SPIRType>(op_ptr, arr); # 2484| ptr.parent_type = arr.self; # 2485| ptr.pointer = true; Error: CPPCHECK_WARNING (CWE-562): [#def31] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2484: error[danglingTempReference]: Using reference to dangling temporary. # 2482| # 2483| auto &ptr = set<SPIRType>(op_ptr, arr); # 2484|-> ptr.parent_type = arr.self; # 2485| ptr.pointer = true; # 2486| ptr.pointer_depth++; Error: CPPCHECK_WARNING (CWE-562): [#def32] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2485: error[danglingTempReference]: Using reference to dangling temporary. # 2483| auto &ptr = set<SPIRType>(op_ptr, arr); # 2484| ptr.parent_type = arr.self; # 2485|-> ptr.pointer = true; # 2486| ptr.pointer_depth++; # 2487| ptr.storage = StorageClassOutput; Error: CPPCHECK_WARNING (CWE-562): [#def33] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2486: error[danglingTempReference]: Using reference to dangling temporary. # 2484| ptr.parent_type = arr.self; # 2485| ptr.pointer = true; # 2486|-> ptr.pointer_depth++; # 2487| ptr.storage = StorageClassOutput; # 2488| set_decoration(op_ptr, DecorationBlock); Error: CPPCHECK_WARNING (CWE-562): [#def34] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2487: error[danglingTempReference]: Using reference to dangling temporary. # 2485| ptr.pointer = true; # 2486| ptr.pointer_depth++; # 2487|-> ptr.storage = StorageClassOutput; # 2488| set_decoration(op_ptr, DecorationBlock); # 2489| set_name(op_ptr, block_name); Error: CPPCHECK_WARNING (CWE-562): [#def35] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:2495: error[danglingTempReference]: Using reference to dangling temporary. # 2493| set_decoration(op_var, DecorationPerPrimitiveEXT); # 2494| set_name(op_var, instance_name); # 2495|-> execution.interface_variables.push_back(var.self); # 2496| # 2497| return op_var; Error: CPPCHECK_WARNING (CWE-562): [#def36] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5221: error[danglingTempReference]: Using reference to dangling temporary. # 5219| # 5220| auto &e = set<SPIRAccessChain>(ops[1], ops[0], type.storage, base, offsets.first, offsets.second); # 5221|-> e.row_major_matrix = row_major_matrix; # 5222| e.matrix_stride = matrix_stride; # 5223| e.array_stride = array_stride; Error: CPPCHECK_WARNING (CWE-562): [#def37] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5222: error[danglingTempReference]: Using reference to dangling temporary. # 5220| auto &e = set<SPIRAccessChain>(ops[1], ops[0], type.storage, base, offsets.first, offsets.second); # 5221| e.row_major_matrix = row_major_matrix; # 5222|-> e.matrix_stride = matrix_stride; # 5223| e.array_stride = array_stride; # 5224| e.immutable = should_forward(ops[2]); Error: CPPCHECK_WARNING (CWE-562): [#def38] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5223: error[danglingTempReference]: Using reference to dangling temporary. # 5221| e.row_major_matrix = row_major_matrix; # 5222| e.matrix_stride = matrix_stride; # 5223|-> e.array_stride = array_stride; # 5224| e.immutable = should_forward(ops[2]); # 5225| e.loaded_from = backing_variable ? backing_variable->self : ID(0); Error: CPPCHECK_WARNING (CWE-562): [#def39] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5224: error[danglingTempReference]: Using reference to dangling temporary. # 5222| e.matrix_stride = matrix_stride; # 5223| e.array_stride = array_stride; # 5224|-> e.immutable = should_forward(ops[2]); # 5225| e.loaded_from = backing_variable ? backing_variable->self : ID(0); # 5226| Error: CPPCHECK_WARNING (CWE-562): [#def40] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5225: error[danglingTempReference]: Using reference to dangling temporary. # 5223| e.array_stride = array_stride; # 5224| e.immutable = should_forward(ops[2]); # 5225|-> e.loaded_from = backing_variable ? backing_variable->self : ID(0); # 5226| # 5227| if (chain) Error: CPPCHECK_WARNING (CWE-562): [#def41] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5229: error[danglingTempReference]: Using reference to dangling temporary. # 5227| if (chain) # 5228| { # 5229|-> e.dynamic_index += chain->dynamic_index; # 5230| e.static_index += chain->static_index; # 5231| } Error: CPPCHECK_WARNING (CWE-562): [#def42] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5230: error[danglingTempReference]: Using reference to dangling temporary. # 5228| { # 5229| e.dynamic_index += chain->dynamic_index; # 5230|-> e.static_index += chain->static_index; # 5231| } # 5232| Error: CPPCHECK_WARNING (CWE-562): [#def43] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:5236: error[danglingTempReference]: Using reference to dangling temporary. # 5234| { # 5235| inherit_expression_dependencies(ops[1], ops[i]); # 5236|-> add_implied_read_expression(e, ops[i]); # 5237| } # 5238| } Error: CPPCHECK_WARNING (CWE-562): [#def44] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:6243: error[danglingTempReference]: Using reference to dangling temporary. # 6241| // When using the pointer, we need to know which variable it is actually loaded from. # 6242| auto *var = maybe_get_backing_variable(ops[2]); # 6243|-> e.loaded_from = var ? var->self : ID(0); # 6244| inherit_expression_dependencies(id, ops[3]); # 6245| break; Error: CPPCHECK_WARNING (CWE-562): [#def45] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_hlsl.cpp:6718: error[danglingTempReference]: Using reference to dangling temporary. # 6716| # 6717| // Preserve self. # 6718|-> ptr_type.self = block_type_id; # 6719| # 6720| set<SPIRVariable>(variable_id, block_pointer_type_id, StorageClassUniform); Error: CPPCHECK_WARNING (CWE-562): [#def46] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:525: error[danglingTempReference]: Using reference to dangling temporary. # 523| vec4_type_ptr.storage = StorageClassInput; # 524| auto &ptr_type = set<SPIRType>(type_ptr_id, vec4_type_ptr); # 525|-> ptr_type.self = type_id; # 526| # 527| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); Error: CPPCHECK_WARNING (CWE-562): [#def47] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:547: error[danglingTempReference]: Using reference to dangling temporary. # 545| uint_type_ptr.storage = StorageClassInput; # 546| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 547|-> ptr_type.self = get_uint_type_id(); # 548| # 549| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); Error: CPPCHECK_WARNING (CWE-562): [#def48] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:569: error[danglingTempReference]: Using reference to dangling temporary. # 567| uint_type_ptr.storage = StorageClassInput; # 568| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 569|-> ptr_type.self = get_uint_type_id(); # 570| # 571| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); Error: CPPCHECK_WARNING (CWE-562): [#def49] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:592: error[danglingTempReference]: Using reference to dangling temporary. # 590| uint_type_ptr.storage = StorageClassInput; # 591| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 592|-> ptr_type.self = get_uint_type_id(); # 593| # 594| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); Error: CPPCHECK_WARNING (CWE-562): [#def50] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:612: error[danglingTempReference]: Using reference to dangling temporary. # 610| uint_type_ptr.storage = StorageClassInput; # 611| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 612|-> ptr_type.self = get_uint_type_id(); # 613| # 614| if (need_vertex_params && !has_vertex_idx) Error: CPPCHECK_WARNING (CWE-562): [#def51] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:672: error[danglingTempReference]: Using reference to dangling temporary. # 670| uint_type_ptr_out.storage = StorageClassOutput; # 671| auto &ptr_out_type = set<SPIRType>(type_ptr_out_id, uint_type_ptr_out); # 672|-> ptr_out_type.self = get_uint_type_id(); # 673| uint32_t var_id = type_ptr_out_id + 1; # 674| set<SPIRVariable>(var_id, type_ptr_out_id, StorageClassOutput); Error: CPPCHECK_WARNING (CWE-562): [#def52] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:704: error[danglingTempReference]: Using reference to dangling temporary. # 702| uint_type_ptr.storage = StorageClassInput; # 703| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 704|-> ptr_type.self = get_uint_type_id(); # 705| # 706| if ((need_tesc_params && msl_options.multi_patch_workgroup) || need_grid_params) Error: CPPCHECK_WARNING (CWE-562): [#def53] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:764: error[danglingTempReference]: Using reference to dangling temporary. # 762| uint_type_ptr.storage = StorageClassInput; # 763| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 764|-> ptr_type.self = get_uint_type_id(); # 765| # 766| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); Error: CPPCHECK_WARNING (CWE-562): [#def54] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:786: error[danglingTempReference]: Using reference to dangling temporary. # 784| uint_type_ptr.storage = StorageClassInput; # 785| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 786|-> ptr_type.self = get_uint_type_id(); # 787| # 788| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); Error: CPPCHECK_WARNING (CWE-562): [#def55] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:846: error[danglingTempReference]: Using reference to dangling temporary. # 844| # 845| auto &ptr_out_type = set<SPIRType>(offset, uint_type_ptr_out); # 846|-> ptr_out_type.self = get_uint_type_id(); # 847| set<SPIRVariable>(var_id, offset, StorageClassOutput); # 848| set_decoration(var_id, DecorationBuiltIn, BuiltInSampleMask); Error: CPPCHECK_WARNING (CWE-562): [#def56] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:875: error[danglingTempReference]: Using reference to dangling temporary. # 873| # 874| auto &ptr_in_type = set<SPIRType>(type_ptr_id, bool_type_ptr_in); # 875|-> ptr_in_type.self = type_id; # 876| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); # 877| set_decoration(var_id, DecorationBuiltIn, BuiltInHelperInvocation); Error: CPPCHECK_WARNING (CWE-562): [#def57] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:897: error[danglingTempReference]: Using reference to dangling temporary. # 895| # 896| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 897|-> ptr_type.self = get_uint_type_id(); # 898| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); # 899| set_decoration(var_id, DecorationBuiltIn, BuiltInLocalInvocationIndex); Error: CPPCHECK_WARNING (CWE-562): [#def58] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:920: error[danglingTempReference]: Using reference to dangling temporary. # 918| # 919| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 920|-> ptr_type.self = type_id; # 921| set<SPIRVariable>(var_id, type_ptr_id, StorageClassInput); # 922| set_decoration(var_id, DecorationBuiltIn, BuiltInWorkgroupSize); Error: CPPCHECK_WARNING (CWE-562): [#def59] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:949: error[danglingTempReference]: Using reference to dangling temporary. # 947| # 948| auto &ptr_in_type = set<SPIRType>(type_ptr_id, float_type_ptr_in); # 949|-> ptr_in_type.self = type_id; # 950| set<SPIRVariable>(var_id, type_ptr_id, StorageClassOutput); # 951| set_decoration(var_id, DecorationBuiltIn, BuiltInFragDepth); Error: CPPCHECK_WARNING (CWE-562): [#def60] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:1064: error[danglingTempReference]: Using reference to dangling temporary. # 1062| vec4_type_ptr.storage = StorageClassOutput; # 1063| auto &ptr_type = set<SPIRType>(type_ptr_id, vec4_type_ptr); # 1064|-> ptr_type.self = type_id; # 1065| # 1066| set<SPIRVariable>(var_id, type_ptr_id, StorageClassOutput); Error: CPPCHECK_WARNING (CWE-562): [#def61] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:1087: error[danglingTempReference]: Using reference to dangling temporary. # 1085| # 1086| auto &ptr_type = set<SPIRType>(type_ptr_id, uint_type_ptr); # 1087|-> ptr_type.self = type_id; # 1088| set<SPIRVariable>(var_id, type_ptr_id, StorageClassWorkgroup); # 1089| set_name(var_id, "spvMeshSizes"); Error: CPPCHECK_WARNING (CWE-562): [#def62] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:1112: error[danglingTempReference]: Using reference to dangling temporary. # 1110| # 1111| auto &ptr_in_type = set<SPIRType>(type_ptr_id, mesh_grid_type_ptr); # 1112|-> ptr_in_type.self = type_id; # 1113| set<SPIRVariable>(var_id, type_ptr_id, StorageClassOutput); # 1114| set_name(var_id, "spvMgp"); Error: CPPCHECK_WARNING (CWE-562): [#def63] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:2523: error[danglingTemporaryLifetime]: Using pointer that is a temporary. # 2521| # 2522| auto *type = &set<SPIRType>(new_type_id, *p_old_type); # 2523|-> assert(is_scalar(*type) || is_vector(*type)); # 2524| type->op = OpTypeVector; # 2525| type->vecsize = components; Error: CPPCHECK_WARNING (CWE-562): [#def64] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:2566: error[danglingTempReference]: Using reference to dangling temporary. # 2564| uint32_t new_type_id = ir.increase_bound_by(1); # 2565| SPIRType &type = set<SPIRType>(new_type_id, get<SPIRType>(type_id)); # 2566|-> type.basetype = SPIRType::Interpolant; # 2567| type.parent_type = type_id; # 2568| // In Metal, the pull-model interpolant type encodes perspective-vs-no-perspective in the type itself. Error: CPPCHECK_WARNING (CWE-562): [#def65] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:2567: error[danglingTempReference]: Using reference to dangling temporary. # 2565| SPIRType &type = set<SPIRType>(new_type_id, get<SPIRType>(type_id)); # 2566| type.basetype = SPIRType::Interpolant; # 2567|-> type.parent_type = type_id; # 2568| // In Metal, the pull-model interpolant type encodes perspective-vs-no-perspective in the type itself. # 2569| // Add this decoration so we know which argument to pass to the template. Error: CPPCHECK_WARNING (CWE-562): [#def66] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:3548: error[danglingTempReference]: Using reference to dangling temporary. # 3546| uint32_t ptr_type_id = ir.increase_bound_by(1); # 3547| auto &new_var_type = set<SPIRType>(ptr_type_id, get<SPIRType>(type_id)); # 3548|-> new_var_type.pointer = true; # 3549| new_var_type.pointer_depth++; # 3550| new_var_type.storage = StorageClassInput; Error: CPPCHECK_WARNING (CWE-562): [#def67] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:3549: error[danglingTempReference]: Using reference to dangling temporary. # 3547| auto &new_var_type = set<SPIRType>(ptr_type_id, get<SPIRType>(type_id)); # 3548| new_var_type.pointer = true; # 3549|-> new_var_type.pointer_depth++; # 3550| new_var_type.storage = StorageClassInput; # 3551| new_var_type.parent_type = type_id; Error: CPPCHECK_WARNING (CWE-562): [#def68] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:3550: error[danglingTempReference]: Using reference to dangling temporary. # 3548| new_var_type.pointer = true; # 3549| new_var_type.pointer_depth++; # 3550|-> new_var_type.storage = StorageClassInput; # 3551| new_var_type.parent_type = type_id; # 3552| Error: CPPCHECK_WARNING (CWE-562): [#def69] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:3551: error[danglingTempReference]: Using reference to dangling temporary. # 3549| new_var_type.pointer_depth++; # 3550| new_var_type.storage = StorageClassInput; # 3551|-> new_var_type.parent_type = type_id; # 3552| # 3553| ib_type.member_types.push_back(type_id); Error: CPPCHECK_WARNING (CWE-562): [#def70] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:3559: error[danglingTempReference]: Using reference to dangling temporary. # 3557| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationBuiltIn, builtin); # 3558| # 3559|-> mark_locations(new_var_type); # 3560| } # 3561| Error: CPPCHECK_WARNING (CWE-562): [#def71] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4142: error[danglingTempReference]: Using reference to dangling temporary. # 4140| uint32_t ib_type_id = next_id++; # 4141| auto &ib_type = set<SPIRType>(ib_type_id, OpTypeStruct); # 4142|-> ib_type.basetype = SPIRType::Struct; # 4143| ib_type.storage = storage; # 4144| set_decoration(ib_type_id, DecorationBlock); Error: CPPCHECK_WARNING (CWE-562): [#def72] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4143: error[danglingTempReference]: Using reference to dangling temporary. # 4141| auto &ib_type = set<SPIRType>(ib_type_id, OpTypeStruct); # 4142| ib_type.basetype = SPIRType::Struct; # 4143|-> ib_type.storage = storage; # 4144| set_decoration(ib_type_id, DecorationBlock); # 4145| Error: CPPCHECK_WARNING (CWE-562): [#def73] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4148: error[danglingTempReference]: Using reference to dangling temporary. # 4146| uint32_t ib_var_id = next_id++; # 4147| auto &var = set<SPIRVariable>(ib_var_id, ib_type_id, storage, 0); # 4148|-> var.initializer = next_id++; # 4149| # 4150| string ib_var_ref; Error: CPPCHECK_WARNING (CWE-562): [#def74] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4342: error[danglingTempReference]: Using reference to dangling temporary. # 4340| meta.strip_array = strip_array; # 4341| meta.allow_local_declaration = !strip_array && !(is_tesc_shader() && storage == StorageClassOutput); # 4342|-> add_variable_to_interface_block(storage, ib_var_ref, ib_type, *p_var, meta); # 4343| } # 4344| Error: CPPCHECK_WARNING (CWE-562): [#def75] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4407: error[danglingTempReference]: Using reference to dangling temporary. # 4405| type.storage = storage; # 4406| auto &ptr_type = set<SPIRType>(ptr_type_id, type); # 4407|-> ptr_type.self = array_type_id; # 4408| # 4409| auto &fake_var = set<SPIRVariable>(var_id, ptr_type_id, storage); Error: CPPCHECK_WARNING (CWE-562): [#def76] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4416: error[danglingTempReference]: Using reference to dangling temporary. # 4414| meta.strip_array = true; # 4415| meta.allow_local_declaration = false; # 4416|-> add_variable_to_interface_block(storage, ib_var_ref, ib_type, fake_var, meta); # 4417| } # 4418| } Error: CPPCHECK_WARNING (CWE-562): [#def77] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4477: error[danglingTempReference]: Using reference to dangling temporary. # 4475| type.storage = storage; # 4476| auto &ptr_type = set<SPIRType>(ptr_type_id, type); # 4477|-> ptr_type.self = type.parent_type; # 4478| # 4479| auto &fake_var = set<SPIRVariable>(var_id, ptr_type_id, storage); Error: CPPCHECK_WARNING (CWE-562): [#def78] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4486: error[danglingTempReference]: Using reference to dangling temporary. # 4484| meta.strip_array = true; # 4485| meta.allow_local_declaration = false; # 4486|-> add_variable_to_interface_block(storage, ib_var_ref, ib_type, fake_var, meta); # 4487| } # 4488| } Error: CPPCHECK_WARNING (CWE-562): [#def79] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4497: error[danglingTempReference]: Using reference to dangling temporary. # 4495| auto &location_meta = loc.second; # 4496| # 4497|-> uint32_t ib_mbr_idx = uint32_t(ib_type.member_types.size()); # 4498| uint32_t type_id = build_extended_vector_type(location_meta.base_type_id, location_meta.num_components); # 4499| ib_type.member_types.push_back(type_id); Error: CPPCHECK_WARNING (CWE-562): [#def80] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4499: error[danglingTempReference]: Using reference to dangling temporary. # 4497| uint32_t ib_mbr_idx = uint32_t(ib_type.member_types.size()); # 4498| uint32_t type_id = build_extended_vector_type(location_meta.base_type_id, location_meta.num_components); # 4499|-> ib_type.member_types.push_back(type_id); # 4500| # 4501| set_member_name(ib_type.self, ib_mbr_idx, join("m_location_", location)); Error: CPPCHECK_WARNING (CWE-562): [#def81] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4501: error[danglingTempReference]: Using reference to dangling temporary. # 4499| ib_type.member_types.push_back(type_id); # 4500| # 4501|-> set_member_name(ib_type.self, ib_mbr_idx, join("m_location_", location)); # 4502| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationLocation, location); # 4503| mark_location_as_used_by_shader(location, get<SPIRType>(type_id), storage); Error: CPPCHECK_WARNING (CWE-562): [#def82] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4502: error[danglingTempReference]: Using reference to dangling temporary. # 4500| # 4501| set_member_name(ib_type.self, ib_mbr_idx, join("m_location_", location)); # 4502|-> set_member_decoration(ib_type.self, ib_mbr_idx, DecorationLocation, location); # 4503| mark_location_as_used_by_shader(location, get<SPIRType>(type_id), storage); # 4504| Error: CPPCHECK_WARNING (CWE-562): [#def83] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4506: error[danglingTempReference]: Using reference to dangling temporary. # 4504| # 4505| if (location_meta.flat) # 4506|-> set_member_decoration(ib_type.self, ib_mbr_idx, DecorationFlat); # 4507| if (location_meta.noperspective) # 4508| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationNoPerspective); Error: CPPCHECK_WARNING (CWE-562): [#def84] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4508: error[danglingTempReference]: Using reference to dangling temporary. # 4506| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationFlat); # 4507| if (location_meta.noperspective) # 4508|-> set_member_decoration(ib_type.self, ib_mbr_idx, DecorationNoPerspective); # 4509| if (location_meta.centroid) # 4510| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationCentroid); Error: CPPCHECK_WARNING (CWE-562): [#def85] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4510: error[danglingTempReference]: Using reference to dangling temporary. # 4508| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationNoPerspective); # 4509| if (location_meta.centroid) # 4510|-> set_member_decoration(ib_type.self, ib_mbr_idx, DecorationCentroid); # 4511| if (location_meta.sample) # 4512| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationSample); Error: CPPCHECK_WARNING (CWE-562): [#def86] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4512: error[danglingTempReference]: Using reference to dangling temporary. # 4510| set_member_decoration(ib_type.self, ib_mbr_idx, DecorationCentroid); # 4511| if (location_meta.sample) # 4512|-> set_member_decoration(ib_type.self, ib_mbr_idx, DecorationSample); # 4513| } # 4514| Error: CPPCHECK_WARNING (CWE-562): [#def87] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4516: error[danglingTempReference]: Using reference to dangling temporary. # 4514| # 4515| // Sort the members of the structure by their locations. # 4516|-> MemberSorter member_sorter(ib_type, ir.meta[ib_type_id], MemberSorter::LocationThenBuiltInType); # 4517| member_sorter.sort(); # 4518| Error: CPPCHECK_WARNING (CWE-562): [#def88] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4528: error[danglingTempReference]: Using reference to dangling temporary. # 4526| { # 4527| uint32_t pcp_type_id = ir.increase_bound_by(1); # 4528|-> auto &pcp_type = set<SPIRType>(pcp_type_id, ib_type); # 4529| pcp_type.basetype = SPIRType::ControlPointArray; # 4530| pcp_type.parent_type = pcp_type.type_alias = get_stage_in_struct_type().self; Error: CPPCHECK_WARNING (CWE-562): [#def89] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4529: error[danglingTempReference]: Using reference to dangling temporary. # 4527| uint32_t pcp_type_id = ir.increase_bound_by(1); # 4528| auto &pcp_type = set<SPIRType>(pcp_type_id, ib_type); # 4529|-> pcp_type.basetype = SPIRType::ControlPointArray; # 4530| pcp_type.parent_type = pcp_type.type_alias = get_stage_in_struct_type().self; # 4531| pcp_type.storage = storage; Error: CPPCHECK_WARNING (CWE-562): [#def90] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4530: error[danglingTempReference]: Using reference to dangling temporary. # 4528| auto &pcp_type = set<SPIRType>(pcp_type_id, ib_type); # 4529| pcp_type.basetype = SPIRType::ControlPointArray; # 4530|-> pcp_type.parent_type = pcp_type.type_alias = get_stage_in_struct_type().self; # 4531| pcp_type.storage = storage; # 4532| ir.meta[pcp_type_id] = ir.meta[ib_type.self]; Error: CPPCHECK_WARNING (CWE-562): [#def91] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4531: error[danglingTempReference]: Using reference to dangling temporary. # 4529| pcp_type.basetype = SPIRType::ControlPointArray; # 4530| pcp_type.parent_type = pcp_type.type_alias = get_stage_in_struct_type().self; # 4531|-> pcp_type.storage = storage; # 4532| ir.meta[pcp_type_id] = ir.meta[ib_type.self]; # 4533| uint32_t mbr_idx = uint32_t(ib_type.member_types.size()); Error: CPPCHECK_WARNING (CWE-562): [#def92] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4532: error[danglingTempReference]: Using reference to dangling temporary. # 4530| pcp_type.parent_type = pcp_type.type_alias = get_stage_in_struct_type().self; # 4531| pcp_type.storage = storage; # 4532|-> ir.meta[pcp_type_id] = ir.meta[ib_type.self]; # 4533| uint32_t mbr_idx = uint32_t(ib_type.member_types.size()); # 4534| ib_type.member_types.push_back(pcp_type_id); Error: CPPCHECK_WARNING (CWE-562): [#def93] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4533: error[danglingTempReference]: Using reference to dangling temporary. # 4531| pcp_type.storage = storage; # 4532| ir.meta[pcp_type_id] = ir.meta[ib_type.self]; # 4533|-> uint32_t mbr_idx = uint32_t(ib_type.member_types.size()); # 4534| ib_type.member_types.push_back(pcp_type_id); # 4535| set_member_name(ib_type.self, mbr_idx, "gl_in"); Error: CPPCHECK_WARNING (CWE-562): [#def94] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4534: error[danglingTempReference]: Using reference to dangling temporary. # 4532| ir.meta[pcp_type_id] = ir.meta[ib_type.self]; # 4533| uint32_t mbr_idx = uint32_t(ib_type.member_types.size()); # 4534|-> ib_type.member_types.push_back(pcp_type_id); # 4535| set_member_name(ib_type.self, mbr_idx, "gl_in"); # 4536| } Error: CPPCHECK_WARNING (CWE-562): [#def95] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4535: error[danglingTempReference]: Using reference to dangling temporary. # 4533| uint32_t mbr_idx = uint32_t(ib_type.member_types.size()); # 4534| ib_type.member_types.push_back(pcp_type_id); # 4535|-> set_member_name(ib_type.self, mbr_idx, "gl_in"); # 4536| } # 4537| Error: CPPCHECK_WARNING (CWE-562): [#def96] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4558: error[danglingTempReference]: Using reference to dangling temporary. # 4556| uint32_t ib_ptr_type_id = next_id++; # 4557| auto &ib_ptr_type = set<SPIRType>(ib_ptr_type_id, ib_type); # 4558|-> ib_ptr_type.op = OpTypePointer; # 4559| ib_ptr_type.parent_type = ib_ptr_type.type_alias = ib_type.self; # 4560| ib_ptr_type.pointer = true; Error: CPPCHECK_WARNING (CWE-562): [#def97] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4559: error[danglingTempReference]: Using reference to dangling temporary. # 4557| auto &ib_ptr_type = set<SPIRType>(ib_ptr_type_id, ib_type); # 4558| ib_ptr_type.op = OpTypePointer; # 4559|-> ib_ptr_type.parent_type = ib_ptr_type.type_alias = ib_type.self; # 4560| ib_ptr_type.pointer = true; # 4561| ib_ptr_type.pointer_depth++; Error: CPPCHECK_WARNING (CWE-562): [#def98] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4560: error[danglingTempReference]: Using reference to dangling temporary. # 4558| ib_ptr_type.op = OpTypePointer; # 4559| ib_ptr_type.parent_type = ib_ptr_type.type_alias = ib_type.self; # 4560|-> ib_ptr_type.pointer = true; # 4561| ib_ptr_type.pointer_depth++; # 4562| ib_ptr_type.storage = storage == StorageClassInput ? Error: CPPCHECK_WARNING (CWE-562): [#def99] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4561: error[danglingTempReference]: Using reference to dangling temporary. # 4559| ib_ptr_type.parent_type = ib_ptr_type.type_alias = ib_type.self; # 4560| ib_ptr_type.pointer = true; # 4561|-> ib_ptr_type.pointer_depth++; # 4562| ib_ptr_type.storage = storage == StorageClassInput ? # 4563| ((is_tesc_shader() && msl_options.multi_patch_workgroup) || Error: CPPCHECK_WARNING (CWE-562): [#def100] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4562: error[danglingTempReference]: Using reference to dangling temporary. # 4560| ib_ptr_type.pointer = true; # 4561| ib_ptr_type.pointer_depth++; # 4562|-> ib_ptr_type.storage = storage == StorageClassInput ? # 4563| ((is_tesc_shader() && msl_options.multi_patch_workgroup) || # 4564| (is_tese_shader() && msl_options.raw_buffer_tese_input) ? Error: CPPCHECK_WARNING (CWE-562): [#def101] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4572: error[danglingTempReference]: Using reference to dangling temporary. # 4570| // which we need, use another pointer. # 4571| uint32_t ib_ptr_ptr_type_id = next_id++; # 4572|-> auto &ib_ptr_ptr_type = set<SPIRType>(ib_ptr_ptr_type_id, ib_ptr_type); # 4573| ib_ptr_ptr_type.parent_type = ib_ptr_type_id; # 4574| ib_ptr_ptr_type.type_alias = ib_type.self; Error: CPPCHECK_WARNING (CWE-562): [#def102] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4573: error[danglingTempReference]: Using reference to dangling temporary. # 4571| uint32_t ib_ptr_ptr_type_id = next_id++; # 4572| auto &ib_ptr_ptr_type = set<SPIRType>(ib_ptr_ptr_type_id, ib_ptr_type); # 4573|-> ib_ptr_ptr_type.parent_type = ib_ptr_type_id; # 4574| ib_ptr_ptr_type.type_alias = ib_type.self; # 4575| ib_ptr_ptr_type.storage = StorageClassFunction; Error: CPPCHECK_WARNING (CWE-562): [#def103] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4574: error[danglingTempReference]: Using reference to dangling temporary. # 4572| auto &ib_ptr_ptr_type = set<SPIRType>(ib_ptr_ptr_type_id, ib_ptr_type); # 4573| ib_ptr_ptr_type.parent_type = ib_ptr_type_id; # 4574|-> ib_ptr_ptr_type.type_alias = ib_type.self; # 4575| ib_ptr_ptr_type.storage = StorageClassFunction; # 4576| ir.meta[ib_ptr_ptr_type_id] = ir.meta[ib_type.self]; Error: CPPCHECK_WARNING (CWE-562): [#def104] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4575: error[danglingTempReference]: Using reference to dangling temporary. # 4573| ib_ptr_ptr_type.parent_type = ib_ptr_type_id; # 4574| ib_ptr_ptr_type.type_alias = ib_type.self; # 4575|-> ib_ptr_ptr_type.storage = StorageClassFunction; # 4576| ir.meta[ib_ptr_ptr_type_id] = ir.meta[ib_type.self]; # 4577| Error: CPPCHECK_WARNING (CWE-562): [#def105] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4594: error[danglingTempReference]: Using reference to dangling temporary. # 4592| uint32_t pcp_type_id = next_id++; # 4593| auto &pcp_type = set<SPIRType>(pcp_type_id, ib_type); # 4594|-> pcp_type.basetype = SPIRType::ControlPointArray; # 4595| pcp_type.parent_type = pcp_type.type_alias = ib_type.self; # 4596| pcp_type.storage = storage; Error: CPPCHECK_WARNING (CWE-562): [#def106] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4595: error[danglingTempReference]: Using reference to dangling temporary. # 4593| auto &pcp_type = set<SPIRType>(pcp_type_id, ib_type); # 4594| pcp_type.basetype = SPIRType::ControlPointArray; # 4595|-> pcp_type.parent_type = pcp_type.type_alias = ib_type.self; # 4596| pcp_type.storage = storage; # 4597| ir.meta[pcp_type_id] = ir.meta[ib_type.self]; Error: CPPCHECK_WARNING (CWE-562): [#def107] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4596: error[danglingTempReference]: Using reference to dangling temporary. # 4594| pcp_type.basetype = SPIRType::ControlPointArray; # 4595| pcp_type.parent_type = pcp_type.type_alias = ib_type.self; # 4596|-> pcp_type.storage = storage; # 4597| ir.meta[pcp_type_id] = ir.meta[ib_type.self]; # 4598| Error: CPPCHECK_WARNING (CWE-562): [#def108] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4625: error[danglingTempReference]: Using reference to dangling temporary. # 4623| uint32_t next_id = ir.increase_bound_by(1); # 4624| auto &type = set<SPIRType>(next_id, SPIRType(OpTypeStruct)); # 4625|-> type.basetype = SPIRType::Struct; # 4626| # 4627| InterfaceBlockMeta meta; Error: CPPCHECK_WARNING (CWE-562): [#def109] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4632: error[danglingTempReference]: Using reference to dangling temporary. # 4630| meta.strip_array = true; # 4631| meta.allow_local_declaration = false; # 4632|-> add_variable_to_interface_block(StorageClassOutput, "", type, *p_var, meta); # 4633| } # 4634| Error: CPPCHECK_WARNING (CWE-562): [#def110] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4636: error[danglingTempReference]: Using reference to dangling temporary. # 4634| # 4635| if (per_primitive) # 4636|-> set_name(type.self, "spvPerPrimitive"); # 4637| else # 4638| set_name(type.self, "spvPerVertex"); Error: CPPCHECK_WARNING (CWE-562): [#def111] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4638: error[danglingTempReference]: Using reference to dangling temporary. # 4636| set_name(type.self, "spvPerPrimitive"); # 4637| else # 4638|-> set_name(type.self, "spvPerVertex"); # 4639| # 4640| return next_id; Error: CPPCHECK_WARNING (CWE-562): [#def112] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4658: error[danglingTempReference]: Using reference to dangling temporary. # 4656| uint32_t base_type_id = next_id++; # 4657| auto &base_type = set<SPIRType>(base_type_id, OpTypeInt); # 4658|-> base_type.basetype = SPIRType::UInt; # 4659| base_type.width = 32; # 4660| Error: CPPCHECK_WARNING (CWE-562): [#def113] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4659: error[danglingTempReference]: Using reference to dangling temporary. # 4657| auto &base_type = set<SPIRType>(base_type_id, OpTypeInt); # 4658| base_type.basetype = SPIRType::UInt; # 4659|-> base_type.width = 32; # 4660| # 4661| if (!is_pointer(type)) Error: CPPCHECK_WARNING (CWE-562): [#def114] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4665: error[danglingTempReference]: Using reference to dangling temporary. # 4663| # 4664| uint32_t ptr_type_id = next_id++; # 4665|-> auto &ptr_type = set<SPIRType>(ptr_type_id, base_type); # 4666| ptr_type.op = spv::OpTypePointer; # 4667| ptr_type.pointer = true; Error: CPPCHECK_WARNING (CWE-562): [#def115] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4666: error[danglingTempReference]: Using reference to dangling temporary. # 4664| uint32_t ptr_type_id = next_id++; # 4665| auto &ptr_type = set<SPIRType>(ptr_type_id, base_type); # 4666|-> ptr_type.op = spv::OpTypePointer; # 4667| ptr_type.pointer = true; # 4668| ptr_type.pointer_depth++; Error: CPPCHECK_WARNING (CWE-562): [#def116] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4667: error[danglingTempReference]: Using reference to dangling temporary. # 4665| auto &ptr_type = set<SPIRType>(ptr_type_id, base_type); # 4666| ptr_type.op = spv::OpTypePointer; # 4667|-> ptr_type.pointer = true; # 4668| ptr_type.pointer_depth++; # 4669| ptr_type.storage = type.storage; Error: CPPCHECK_WARNING (CWE-562): [#def117] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4668: error[danglingTempReference]: Using reference to dangling temporary. # 4666| ptr_type.op = spv::OpTypePointer; # 4667| ptr_type.pointer = true; # 4668|-> ptr_type.pointer_depth++; # 4669| ptr_type.storage = type.storage; # 4670| ptr_type.parent_type = base_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def118] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4669: error[danglingTempReference]: Using reference to dangling temporary. # 4667| ptr_type.pointer = true; # 4668| ptr_type.pointer_depth++; # 4669|-> ptr_type.storage = type.storage; # 4670| ptr_type.parent_type = base_type_id; # 4671| return ptr_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def119] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:4670: error[danglingTempReference]: Using reference to dangling temporary. # 4668| ptr_type.pointer_depth++; # 4669| ptr_type.storage = type.storage; # 4670|-> ptr_type.parent_type = base_type_id; # 4671| return ptr_type_id; # 4672| } Error: CPPCHECK_WARNING (CWE-562): [#def120] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:8723: error[danglingTempReference]: Using reference to dangling temporary. # 8721| # 8722| auto &expr = set<SPIRExpression>(ops[1], std::move(e), ops[0], should_forward(ops[2])); # 8723|-> expr.loaded_from = var->self; # 8724| expr.need_transpose = meta.need_transpose; # 8725| expr.access_chain = true; Error: CPPCHECK_WARNING (CWE-562): [#def121] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:8724: error[danglingTempReference]: Using reference to dangling temporary. # 8722| auto &expr = set<SPIRExpression>(ops[1], std::move(e), ops[0], should_forward(ops[2])); # 8723| expr.loaded_from = var->self; # 8724|-> expr.need_transpose = meta.need_transpose; # 8725| expr.access_chain = true; # 8726| Error: CPPCHECK_WARNING (CWE-562): [#def122] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:8725: error[danglingTempReference]: Using reference to dangling temporary. # 8723| expr.loaded_from = var->self; # 8724| expr.need_transpose = meta.need_transpose; # 8725|-> expr.access_chain = true; # 8726| # 8727| // Mark the result as being packed if necessary. Error: CPPCHECK_WARNING (CWE-562): [#def123] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:8747: error[danglingTempReference]: Using reference to dangling temporary. # 8745| { # 8746| inherit_expression_dependencies(ops[1], ops[i]); # 8747|-> add_implied_read_expression(expr, ops[i]); # 8748| } # 8749| Error: CPPCHECK_WARNING (CWE-562): [#def124] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:8752: error[danglingTempReference]: Using reference to dangling temporary. # 8750| // If we have no dependencies after all, i.e., all indices in the access chain are immutable temporaries, # 8751| // we're not forwarded after all. # 8752|-> if (expr.expression_dependencies.empty()) # 8753| forwarded_temporaries.erase(ops[1]); # 8754| Error: CPPCHECK_WARNING (CWE-562): [#def125] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:8772: error[danglingTempReference]: Using reference to dangling temporary. # 8770| return false; # 8771| auto &dest_var = set<SPIRVariable>(ops[1], *var); # 8772|-> dest_var.basetype = ops[0]; # 8773| ir.meta[ops[1]] = ir.meta[ops[2]]; # 8774| inherit_expression_dependencies(ops[1], ops[2]); Error: CPPCHECK_WARNING (CWE-562): [#def126] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:9309: error[danglingTempReference]: Using reference to dangling temporary. # 9307| # 9308| auto &e = set<SPIRExpression>(id, join(to_expression(ops[2]), "_atomic[", coord, "]"), result_type, true); # 9309|-> e.loaded_from = var ? var->self : ID(0); # 9310| inherit_expression_dependencies(id, ops[3]); # 9311| } Error: CPPCHECK_WARNING (CWE-562): [#def127] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:9326: error[danglingTempReference]: Using reference to dangling temporary. # 9324| # 9325| // When using the pointer, we need to know which variable it is actually loaded from. # 9326|-> e.loaded_from = var ? var->self : ID(0); # 9327| inherit_expression_dependencies(id, ops[3]); # 9328| } Error: CPPCHECK_WARNING (CWE-562): [#def128] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18715: error[danglingTempReference]: Using reference to dangling temporary. #18713| set_decoration(var_id, DecorationBinding, kSwizzleBufferBinding); #18714| resources_in_set[desc_set].push_back( #18715|-> { &var, to_name(var_id), SPIRType::UInt, get_metal_resource_index(var, SPIRType::UInt), 1, 0, 0 }); #18716| } #18717| Error: CPPCHECK_WARNING (CWE-562): [#def129] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18715: error[danglingTemporaryLifetime]: Using pointer that is a temporary. #18713| set_decoration(var_id, DecorationBinding, kSwizzleBufferBinding); #18714| resources_in_set[desc_set].push_back( #18715|-> { &var, to_name(var_id), SPIRType::UInt, get_metal_resource_index(var, SPIRType::UInt), 1, 0, 0 }); #18716| } #18717| Error: CPPCHECK_WARNING (CWE-562): [#def130] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18726: error[danglingTempReference]: Using reference to dangling temporary. #18724| set_decoration(var_id, DecorationBinding, kBufferSizeBufferBinding); #18725| resources_in_set[desc_set].push_back( #18726|-> { &var, to_name(var_id), SPIRType::UInt, get_metal_resource_index(var, SPIRType::UInt), 1, 0, 0 }); #18727| } #18728| } Error: CPPCHECK_WARNING (CWE-562): [#def131] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18726: error[danglingTemporaryLifetime]: Using pointer that is a temporary. #18724| set_decoration(var_id, DecorationBinding, kBufferSizeBufferBinding); #18725| resources_in_set[desc_set].push_back( #18726|-> { &var, to_name(var_id), SPIRType::UInt, get_metal_resource_index(var, SPIRType::UInt), 1, 0, 0 }); #18727| } #18728| } Error: CPPCHECK_WARNING (CWE-562): [#def132] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18756: error[danglingTempReference]: Using reference to dangling temporary. #18754| auto &buffer_type = set<SPIRType>(type_id, OpTypeStruct); #18755| #18756|-> buffer_type.basetype = SPIRType::Struct; #18757| #18758| if ((argument_buffer_device_storage_mask & (1u << desc_set)) != 0) Error: CPPCHECK_WARNING (CWE-562): [#def133] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18760: error[danglingTempReference]: Using reference to dangling temporary. #18758| if ((argument_buffer_device_storage_mask & (1u << desc_set)) != 0) #18759| { #18760|-> buffer_type.storage = StorageClassStorageBuffer; #18761| // Make sure the argument buffer gets marked as const device. #18762| set_decoration(next_id, DecorationNonWritable); Error: CPPCHECK_WARNING (CWE-562): [#def134] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18767: error[danglingTempReference]: Using reference to dangling temporary. #18765| } #18766| else #18767|-> buffer_type.storage = StorageClassUniform; #18768| #18769| auto buffer_type_name = join("spvDescriptorSetBuffer", desc_set); Error: CPPCHECK_WARNING (CWE-562): [#def135] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18773: error[danglingTempReference]: Using reference to dangling temporary. #18771| #18772| auto &ptr_type = set<SPIRType>(ptr_type_id, OpTypePointer); #18773|-> ptr_type = buffer_type; #18774| ptr_type.op = spv::OpTypePointer; #18775| ptr_type.pointer = true; Error: CPPCHECK_WARNING (CWE-562): [#def136] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18774: error[danglingTempReference]: Using reference to dangling temporary. #18772| auto &ptr_type = set<SPIRType>(ptr_type_id, OpTypePointer); #18773| ptr_type = buffer_type; #18774|-> ptr_type.op = spv::OpTypePointer; #18775| ptr_type.pointer = true; #18776| ptr_type.pointer_depth++; Error: CPPCHECK_WARNING (CWE-562): [#def137] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18775: error[danglingTempReference]: Using reference to dangling temporary. #18773| ptr_type = buffer_type; #18774| ptr_type.op = spv::OpTypePointer; #18775|-> ptr_type.pointer = true; #18776| ptr_type.pointer_depth++; #18777| ptr_type.parent_type = type_id; Error: CPPCHECK_WARNING (CWE-562): [#def138] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18776: error[danglingTempReference]: Using reference to dangling temporary. #18774| ptr_type.op = spv::OpTypePointer; #18775| ptr_type.pointer = true; #18776|-> ptr_type.pointer_depth++; #18777| ptr_type.parent_type = type_id; #18778| Error: CPPCHECK_WARNING (CWE-562): [#def139] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18777: error[danglingTempReference]: Using reference to dangling temporary. #18775| ptr_type.pointer = true; #18776| ptr_type.pointer_depth++; #18777|-> ptr_type.parent_type = type_id; #18778| #18779| uint32_t buffer_variable_id = next_id; Error: CPPCHECK_WARNING (CWE-562): [#def140] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18841: error[danglingTempReference]: Using reference to dangling temporary. #18839| case SPIRType::Float: #18840| case SPIRType::Double: #18841|-> add_argument_buffer_padding_buffer_type(buffer_type, member_index, next_arg_buff_index, rez_bind); #18842| break; #18843| case SPIRType::Image: Error: CPPCHECK_WARNING (CWE-562): [#def141] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18844: error[danglingTempReference]: Using reference to dangling temporary. #18842| break; #18843| case SPIRType::Image: #18844|-> add_argument_buffer_padding_image_type(buffer_type, member_index, next_arg_buff_index, rez_bind); #18845| break; #18846| case SPIRType::Sampler: Error: CPPCHECK_WARNING (CWE-562): [#def142] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18847: error[danglingTempReference]: Using reference to dangling temporary. #18845| break; #18846| case SPIRType::Sampler: #18847|-> add_argument_buffer_padding_sampler_type(buffer_type, member_index, next_arg_buff_index, rez_bind); #18848| break; #18849| case SPIRType::SampledImage: Error: CPPCHECK_WARNING (CWE-562): [#def143] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18851: error[danglingTempReference]: Using reference to dangling temporary. #18849| case SPIRType::SampledImage: #18850| if (next_arg_buff_index == rez_bind.msl_sampler) #18851|-> add_argument_buffer_padding_sampler_type(buffer_type, member_index, next_arg_buff_index, rez_bind); #18852| else #18853| add_argument_buffer_padding_image_type(buffer_type, member_index, next_arg_buff_index, rez_bind); Error: CPPCHECK_WARNING (CWE-562): [#def144] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18853: error[danglingTempReference]: Using reference to dangling temporary. #18851| add_argument_buffer_padding_sampler_type(buffer_type, member_index, next_arg_buff_index, rez_bind); #18852| else #18853|-> add_argument_buffer_padding_image_type(buffer_type, member_index, next_arg_buff_index, rez_bind); #18854| break; #18855| default: Error: CPPCHECK_WARNING (CWE-562): [#def145] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18879: error[danglingTempReference]: Using reference to dangling temporary. #18877| if (resource.plane > 0) #18878| mbr_name += join(plane_name_suffix, resource.plane); #18879|-> set_member_name(buffer_type.self, member_index, mbr_name); #18880| #18881| if (resource.basetype == SPIRType::Sampler && type.basetype != SPIRType::Sampler) Error: CPPCHECK_WARNING (CWE-562): [#def146] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18888: error[danglingTempReference]: Using reference to dangling temporary. #18886| uint32_t sampler_type_id = ir.increase_bound_by(type_is_array ? 2 : 1); #18887| auto &new_sampler_type = set<SPIRType>(sampler_type_id, OpTypeSampler); #18888|-> new_sampler_type.basetype = SPIRType::Sampler; #18889| new_sampler_type.storage = StorageClassUniformConstant; #18890| Error: CPPCHECK_WARNING (CWE-562): [#def147] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18889: error[danglingTempReference]: Using reference to dangling temporary. #18887| auto &new_sampler_type = set<SPIRType>(sampler_type_id, OpTypeSampler); #18888| new_sampler_type.basetype = SPIRType::Sampler; #18889|-> new_sampler_type.storage = StorageClassUniformConstant; #18890| #18891| if (type_is_array) Error: CPPCHECK_WARNING (CWE-562): [#def148] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18895: error[danglingTempReference]: Using reference to dangling temporary. #18893| uint32_t sampler_type_array_id = sampler_type_id + 1; #18894| auto &sampler_type_array = set<SPIRType>(sampler_type_array_id, OpTypeArray); #18895|-> sampler_type_array = new_sampler_type; #18896| sampler_type_array.array = type.array; #18897| sampler_type_array.array_size_literal = type.array_size_literal; Error: CPPCHECK_WARNING (CWE-562): [#def149] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18896: error[danglingTempReference]: Using reference to dangling temporary. #18894| auto &sampler_type_array = set<SPIRType>(sampler_type_array_id, OpTypeArray); #18895| sampler_type_array = new_sampler_type; #18896|-> sampler_type_array.array = type.array; #18897| sampler_type_array.array_size_literal = type.array_size_literal; #18898| sampler_type_array.parent_type = sampler_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def150] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18897: error[danglingTempReference]: Using reference to dangling temporary. #18895| sampler_type_array = new_sampler_type; #18896| sampler_type_array.array = type.array; #18897|-> sampler_type_array.array_size_literal = type.array_size_literal; #18898| sampler_type_array.parent_type = sampler_type_id; #18899| buffer_type.member_types.push_back(sampler_type_array_id); Error: CPPCHECK_WARNING (CWE-562): [#def151] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18898: error[danglingTempReference]: Using reference to dangling temporary. #18896| sampler_type_array.array = type.array; #18897| sampler_type_array.array_size_literal = type.array_size_literal; #18898|-> sampler_type_array.parent_type = sampler_type_id; #18899| buffer_type.member_types.push_back(sampler_type_array_id); #18900| } Error: CPPCHECK_WARNING (CWE-562): [#def152] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18899: error[danglingTempReference]: Using reference to dangling temporary. #18897| sampler_type_array.array_size_literal = type.array_size_literal; #18898| sampler_type_array.parent_type = sampler_type_id; #18899|-> buffer_type.member_types.push_back(sampler_type_array_id); #18900| } #18901| else Error: CPPCHECK_WARNING (CWE-562): [#def153] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18902: error[danglingTempReference]: Using reference to dangling temporary. #18900| } #18901| else #18902|-> buffer_type.member_types.push_back(sampler_type_id); #18903| } #18904| else Error: CPPCHECK_WARNING (CWE-562): [#def154] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18913: error[danglingTempReference]: Using reference to dangling temporary. #18911| { #18912| // Drop pointer information when we emit the resources into a struct. #18913|-> buffer_type.member_types.push_back(get_variable_data_type_id(var)); #18914| if (has_extended_decoration(var.self, SPIRVCrossDecorationOverlappingBinding)) #18915| { Error: CPPCHECK_WARNING (CWE-562): [#def155] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18932: error[danglingTempReference]: Using reference to dangling temporary. #18930| { #18931| // Don't set the qualified name here; we'll define a variable holding the corrected buffer address later. #18932|-> buffer_type.member_types.push_back(var.basetype); #18933| buffers_requiring_dynamic_offset[pair].second = var.self; #18934| } Error: CPPCHECK_WARNING (CWE-562): [#def156] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18938: error[danglingTempReference]: Using reference to dangling temporary. #18936| { #18937| // Put the buffer block itself into the argument buffer. #18938|-> buffer_type.member_types.push_back(get_variable_data_type_id(var)); #18939| set_qualified_name(var.self, join(to_name(buffer_variable_id), ".", mbr_name)); #18940| } Error: CPPCHECK_WARNING (CWE-562): [#def157] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18963: error[danglingTempReference]: Using reference to dangling temporary. #18961| atomic_type.storage = StorageClassStorageBuffer; #18962| auto &atomic_ptr_type = set<SPIRType>(type_ptr_id, atomic_type); #18963|-> atomic_ptr_type.self = atomic_type_id; #18964| #18965| buffer_type.member_types.push_back(type_ptr_id); Error: CPPCHECK_WARNING (CWE-562): [#def158] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18965: error[danglingTempReference]: Using reference to dangling temporary. #18963| atomic_ptr_type.self = atomic_type_id; #18964| #18965|-> buffer_type.member_types.push_back(type_ptr_id); #18966| } #18967| else Error: CPPCHECK_WARNING (CWE-562): [#def159] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18969: error[danglingTempReference]: Using reference to dangling temporary. #18967| else #18968| { #18969|-> buffer_type.member_types.push_back(var.basetype); #18970| if (has_extended_decoration(var.self, SPIRVCrossDecorationOverlappingBinding)) #18971| { Error: CPPCHECK_WARNING (CWE-562): [#def160] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18992: error[danglingTempReference]: Using reference to dangling temporary. #18990| } #18991| #18992|-> set_extended_member_decoration(buffer_type.self, member_index, SPIRVCrossDecorationResourceIndexPrimary, #18993| resource.index); #18994| set_extended_member_decoration(buffer_type.self, member_index, SPIRVCrossDecorationInterfaceOrigID, Error: CPPCHECK_WARNING (CWE-562): [#def161] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18994: error[danglingTempReference]: Using reference to dangling temporary. #18992| set_extended_member_decoration(buffer_type.self, member_index, SPIRVCrossDecorationResourceIndexPrimary, #18993| resource.index); #18994|-> set_extended_member_decoration(buffer_type.self, member_index, SPIRVCrossDecorationInterfaceOrigID, #18995| var.self); #18996| if (has_extended_decoration(var.self, SPIRVCrossDecorationOverlappingBinding)) Error: CPPCHECK_WARNING (CWE-562): [#def162] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:18997: error[danglingTempReference]: Using reference to dangling temporary. #18995| var.self); #18996| if (has_extended_decoration(var.self, SPIRVCrossDecorationOverlappingBinding)) #18997|-> set_extended_member_decoration(buffer_type.self, member_index, SPIRVCrossDecorationOverlappingBinding); #18998| member_index++; #18999| } Error: CPPCHECK_WARNING (CWE-562): [#def163] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19001: error[danglingTempReference]: Using reference to dangling temporary. #18999| } #19000| #19001|-> if (msl_options.replace_recursive_inputs && type_contains_recursion(buffer_type)) #19002| { #19003| recursive_inputs.insert(type_id); Error: CPPCHECK_WARNING (CWE-562): [#def164] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19005: error[danglingTempReference]: Using reference to dangling temporary. #19003| recursive_inputs.insert(type_id); #19004| auto &entry_func = this->get<SPIRFunction>(ir.default_entry_point); #19005|-> auto addr_space = get_argument_address_space(buffer_var); #19006| entry_func.fixup_hooks_in.push_back([this, addr_space, buffer_name, buffer_type_name]() { #19007| statement(addr_space, " auto& ", buffer_name, " = *(", addr_space, " ", buffer_type_name, "*)", buffer_name, "_vp;"); Error: CPPCHECK_WARNING (CWE-562): [#def165] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19042: error[danglingTempReference]: Using reference to dangling temporary. #19040| uint32_t buff_type_id = ir.increase_bound_by(2); #19041| auto &buff_type = set<SPIRType>(buff_type_id, OpNop); #19042|-> buff_type.basetype = rez_bind.basetype; #19043| buff_type.storage = StorageClassUniformConstant; #19044| Error: CPPCHECK_WARNING (CWE-562): [#def166] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19043: error[danglingTempReference]: Using reference to dangling temporary. #19041| auto &buff_type = set<SPIRType>(buff_type_id, OpNop); #19042| buff_type.basetype = rez_bind.basetype; #19043|-> buff_type.storage = StorageClassUniformConstant; #19044| #19045| uint32_t ptr_type_id = buff_type_id + 1; Error: CPPCHECK_WARNING (CWE-562): [#def167] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19047: error[danglingTempReference]: Using reference to dangling temporary. #19045| uint32_t ptr_type_id = buff_type_id + 1; #19046| auto &ptr_type = set<SPIRType>(ptr_type_id, OpTypePointer); #19047|-> ptr_type = buff_type; #19048| ptr_type.op = spv::OpTypePointer; #19049| ptr_type.pointer = true; Error: CPPCHECK_WARNING (CWE-562): [#def168] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19048: error[danglingTempReference]: Using reference to dangling temporary. #19046| auto &ptr_type = set<SPIRType>(ptr_type_id, OpTypePointer); #19047| ptr_type = buff_type; #19048|-> ptr_type.op = spv::OpTypePointer; #19049| ptr_type.pointer = true; #19050| ptr_type.pointer_depth++; Error: CPPCHECK_WARNING (CWE-562): [#def169] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19049: error[danglingTempReference]: Using reference to dangling temporary. #19047| ptr_type = buff_type; #19048| ptr_type.op = spv::OpTypePointer; #19049|-> ptr_type.pointer = true; #19050| ptr_type.pointer_depth++; #19051| ptr_type.parent_type = buff_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def170] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19050: error[danglingTempReference]: Using reference to dangling temporary. #19048| ptr_type.op = spv::OpTypePointer; #19049| ptr_type.pointer = true; #19050|-> ptr_type.pointer_depth++; #19051| ptr_type.parent_type = buff_type_id; #19052| Error: CPPCHECK_WARNING (CWE-562): [#def171] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19051: error[danglingTempReference]: Using reference to dangling temporary. #19049| ptr_type.pointer = true; #19050| ptr_type.pointer_depth++; #19051|-> ptr_type.parent_type = buff_type_id; #19052| #19053| argument_buffer_padding_buffer_type_id = ptr_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def172] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19067: error[danglingTempReference]: Using reference to dangling temporary. #19065| uint32_t base_type_id = ir.increase_bound_by(2); #19066| auto &base_type = set<SPIRType>(base_type_id, OpTypeFloat); #19067|-> base_type.basetype = SPIRType::Float; #19068| base_type.width = 32; #19069| Error: CPPCHECK_WARNING (CWE-562): [#def173] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19068: error[danglingTempReference]: Using reference to dangling temporary. #19066| auto &base_type = set<SPIRType>(base_type_id, OpTypeFloat); #19067| base_type.basetype = SPIRType::Float; #19068|-> base_type.width = 32; #19069| #19070| uint32_t img_type_id = base_type_id + 1; Error: CPPCHECK_WARNING (CWE-562): [#def174] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19072: error[danglingTempReference]: Using reference to dangling temporary. #19070| uint32_t img_type_id = base_type_id + 1; #19071| auto &img_type = set<SPIRType>(img_type_id, OpTypeImage); #19072|-> img_type.basetype = SPIRType::Image; #19073| img_type.storage = StorageClassUniformConstant; #19074| Error: CPPCHECK_WARNING (CWE-562): [#def175] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19073: error[danglingTempReference]: Using reference to dangling temporary. #19071| auto &img_type = set<SPIRType>(img_type_id, OpTypeImage); #19072| img_type.basetype = SPIRType::Image; #19073|-> img_type.storage = StorageClassUniformConstant; #19074| #19075| img_type.image.type = base_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def176] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19075: error[danglingTempReference]: Using reference to dangling temporary. #19073| img_type.storage = StorageClassUniformConstant; #19074| #19075|-> img_type.image.type = base_type_id; #19076| img_type.image.dim = Dim2D; #19077| img_type.image.depth = false; Error: CPPCHECK_WARNING (CWE-562): [#def177] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19076: error[danglingTempReference]: Using reference to dangling temporary. #19074| #19075| img_type.image.type = base_type_id; #19076|-> img_type.image.dim = Dim2D; #19077| img_type.image.depth = false; #19078| img_type.image.arrayed = false; Error: CPPCHECK_WARNING (CWE-562): [#def178] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19077: error[danglingTempReference]: Using reference to dangling temporary. #19075| img_type.image.type = base_type_id; #19076| img_type.image.dim = Dim2D; #19077|-> img_type.image.depth = false; #19078| img_type.image.arrayed = false; #19079| img_type.image.ms = false; Error: CPPCHECK_WARNING (CWE-562): [#def179] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19078: error[danglingTempReference]: Using reference to dangling temporary. #19076| img_type.image.dim = Dim2D; #19077| img_type.image.depth = false; #19078|-> img_type.image.arrayed = false; #19079| img_type.image.ms = false; #19080| img_type.image.sampled = 1; Error: CPPCHECK_WARNING (CWE-562): [#def180] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19079: error[danglingTempReference]: Using reference to dangling temporary. #19077| img_type.image.depth = false; #19078| img_type.image.arrayed = false; #19079|-> img_type.image.ms = false; #19080| img_type.image.sampled = 1; #19081| img_type.image.format = ImageFormatUnknown; Error: CPPCHECK_WARNING (CWE-562): [#def181] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19080: error[danglingTempReference]: Using reference to dangling temporary. #19078| img_type.image.arrayed = false; #19079| img_type.image.ms = false; #19080|-> img_type.image.sampled = 1; #19081| img_type.image.format = ImageFormatUnknown; #19082| img_type.image.access = AccessQualifierMax; Error: CPPCHECK_WARNING (CWE-562): [#def182] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19081: error[danglingTempReference]: Using reference to dangling temporary. #19079| img_type.image.ms = false; #19080| img_type.image.sampled = 1; #19081|-> img_type.image.format = ImageFormatUnknown; #19082| img_type.image.access = AccessQualifierMax; #19083| Error: CPPCHECK_WARNING (CWE-562): [#def183] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19082: error[danglingTempReference]: Using reference to dangling temporary. #19080| img_type.image.sampled = 1; #19081| img_type.image.format = ImageFormatUnknown; #19082|-> img_type.image.access = AccessQualifierMax; #19083| #19084| argument_buffer_padding_image_type_id = img_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def184] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19098: error[danglingTempReference]: Using reference to dangling temporary. #19096| uint32_t samp_type_id = ir.increase_bound_by(1); #19097| auto &samp_type = set<SPIRType>(samp_type_id, OpTypeSampler); #19098|-> samp_type.basetype = SPIRType::Sampler; #19099| samp_type.storage = StorageClassUniformConstant; #19100| Error: CPPCHECK_WARNING (CWE-562): [#def185] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19099: error[danglingTempReference]: Using reference to dangling temporary. #19097| auto &samp_type = set<SPIRType>(samp_type_id, OpTypeSampler); #19098| samp_type.basetype = SPIRType::Sampler; #19099|-> samp_type.storage = StorageClassUniformConstant; #19100| #19101| argument_buffer_padding_sampler_type_id = samp_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def186] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19117: error[danglingTempReference]: Using reference to dangling temporary. #19115| uint32_t ary_type_id = ir.increase_bound_by(1); #19116| auto &ary_type = set<SPIRType>(ary_type_id, get<SPIRType>(type_id)); #19117|-> ary_type.op = OpTypeArray; #19118| ary_type.array.push_back(count); #19119| ary_type.array_size_literal.push_back(true); Error: CPPCHECK_WARNING (CWE-562): [#def187] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19118: error[danglingTempReference]: Using reference to dangling temporary. #19116| auto &ary_type = set<SPIRType>(ary_type_id, get<SPIRType>(type_id)); #19117| ary_type.op = OpTypeArray; #19118|-> ary_type.array.push_back(count); #19119| ary_type.array_size_literal.push_back(true); #19120| ary_type.parent_type = type_id; Error: CPPCHECK_WARNING (CWE-562): [#def188] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19119: error[danglingTempReference]: Using reference to dangling temporary. #19117| ary_type.op = OpTypeArray; #19118| ary_type.array.push_back(count); #19119|-> ary_type.array_size_literal.push_back(true); #19120| ary_type.parent_type = type_id; #19121| type_id = ary_type_id; Error: CPPCHECK_WARNING (CWE-562): [#def189] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19120: error[danglingTempReference]: Using reference to dangling temporary. #19118| ary_type.array.push_back(count); #19119| ary_type.array_size_literal.push_back(true); #19120|-> ary_type.parent_type = type_id; #19121| type_id = ary_type_id; #19122| } Error: CPPCHECK_WARNING (CWE-562): [#def190] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19174: error[danglingTempReference]: Using reference to dangling temporary. #19172| auto &wrapped_main = set<SPIRFunction>(func_id, f.return_type, f.function_type); #19173| #19174|-> wrapped_main.blocks.push_back(block_id); #19175| wrapped_main.entry_block = block_id; #19176| Error: CPPCHECK_WARNING (CWE-562): [#def191] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19175: error[danglingTempReference]: Using reference to dangling temporary. #19173| #19174| wrapped_main.blocks.push_back(block_id); #19175|-> wrapped_main.entry_block = block_id; #19176| #19177| auto &wrapped_entry = set<SPIRBlock>(block_id); Error: CPPCHECK_WARNING (CWE-562): [#def192] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19178: error[danglingTempReference]: Using reference to dangling temporary. #19176| #19177| auto &wrapped_entry = set<SPIRBlock>(block_id); #19178|-> wrapped_entry.terminator = SPIRBlock::Return; #19179| #19180| // Push call to original 'main' Error: CPPCHECK_WARNING (CWE-562): [#def193] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_msl.cpp:19190: error[danglingTempReference]: Using reference to dangling temporary. #19188| ir.spirv.push_back(ep.self); #19189| #19190|-> wrapped_entry.ops.push_back(ix); #19191| #19192| // relace entry-point for new one Error: CPPCHECK_WARNING (CWE-562): [#def194] qtshadertools-everywhere-src-6.9.0/src/3rdparty/SPIRV-Cross/spirv_parser.cpp:829: error[danglingTempReference]: Using reference to dangling temporary. # 827| // Instead of a temporary, create a new function-wide temporary with this ID instead. # 828| auto &var = set<SPIRVariable>(id, result_type, spv::StorageClassFunction); # 829|-> var.phi_variable = true; # 830| # 831| current_function->add_local_variable(id);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-97.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | qt6-qtshadertools-6.9.0-1.fc43 |
store-results-to | /tmp/tmp816uw3d3/qt6-qtshadertools-6.9.0-1.fc43.tar.xz |
time-created | 2025-04-25 15:27:15 |
time-finished | 2025-04-25 15:30:06 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp816uw3d3/qt6-qtshadertools-6.9.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp816uw3d3/qt6-qtshadertools-6.9.0-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |