[all-commits] [llvm/llvm-project] 02744c: [clang][diagnostics] Update note_constexpr_invalid...

Ayokunle Amodu via All-commits all-commits at lists.llvm.org
Wed Mar 19 12:36:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02744c5010c8a37b4f20e377a5673cf624a3a159
      https://github.com/llvm/llvm-project/commit/02744c5010c8a37b4f20e377a5673cf624a3a159
  Author: Ayokunle Amodu <ayokunle321 at gmail.com>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/ByteCode/Interp.h
    M clang/lib/AST/ExprConstant.cpp

  Log Message:
  -----------
  [clang][diagnostics] Update note_constexpr_invalid_cast to use enum_select and adjust its uses (#130868)

Handles #123121

This patch updates `note_constexpr_invalid_cast` diagnostic to use
`enum_select` instead of `select,` improving readability and reducing
reliance on magic numbers in caller sites.



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