[all-commits] [llvm/llvm-project] 92ceba: [IPO] Teach AbstractAttribute::getName to return S...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Fri May 23 23:59:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92cebab21042766d59493f8f4c2541248be5de57
      https://github.com/llvm/llvm-project/commit/92cebab21042766d59493f8f4c2541248be5de57
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-23 (Fri, 23 May 2025)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp

  Log Message:
  -----------
  [IPO] Teach AbstractAttribute::getName to return StringRef (NFC) (#141313)

This patch addresses clang-tidy's readability-const-return-type by
dropping const from the return type while switching to StringRef at
the same time because these functions just return string constants.



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