[all-commits] [llvm/llvm-project] acc40e: [Clang][NFC] Use const auto & to avoid copy (#138069)

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Thu May 1 09:52:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: acc40ed0a747ad8f5dbb93788da7ce104c36c0a3
      https://github.com/llvm/llvm-project/commit/acc40ed0a747ad8f5dbb93788da7ce104c36c0a3
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-05-01 (Thu, 01 May 2025)

  Changed paths:
    M clang/lib/Lex/ModuleMap.cpp

  Log Message:
  -----------
  [Clang][NFC] Use const auto & to avoid copy (#138069)

Static analysis flagged this code as causing a copy when we never modify
ModName and therefore we can use const auto & and avoid copying.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list