From 0312be363f88018b0f0d88d7a2ba7ab6a54e422c Mon Sep 17 00:00:00 2001 From: Lucas Alber Date: Fri, 13 Sep 2024 15:12:28 +0200 Subject: [PATCH] merian: shaderc compiler: clang tidy --- src/merian/vk/shader/shader_compiler_shaderc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/merian/vk/shader/shader_compiler_shaderc.cpp b/src/merian/vk/shader/shader_compiler_shaderc.cpp index 9508b8c..cc2ee60 100644 --- a/src/merian/vk/shader/shader_compiler_shaderc.cpp +++ b/src/merian/vk/shader/shader_compiler_shaderc.cpp @@ -107,12 +107,12 @@ shaderc_shader_kind_for_stage_flag_bit(const vk::ShaderStageFlagBits shader_kind ShadercCompiler::ShadercCompiler(const std::vector& include_paths, const std::map& macro_definitions) { - for (auto& [key, value] : macro_definitions) { + for (const auto& [key, value] : macro_definitions) { compile_options.AddMacroDefinition(key, value); } auto includer = std::make_unique(); - for (auto& include_path : include_paths) { + for (const auto& include_path : include_paths) { includer->get_file_loader().add_search_path(include_path); } compile_options.SetIncluder(std::move(includer));