[all-commits] [llvm/llvm-project] 77ea91: [clang][diagnostics] Refactor "warn_doc_container_...

Ayokunle Amodu via All-commits all-commits at lists.llvm.org
Tue Jul 8 06:16:02 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77ea912a796e00f86a6a114de45c01017a9d51d3
      https://github.com/llvm/llvm-project/commit/77ea912a796e00f86a6a114de45c01017a9d51d3
  Author: Ayokunle Amodu <ayokunle321 at gmail.com>
  Date:   2025-07-08 (Tue, 08 Jul 2025)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticCommentKinds.td
    M clang/lib/AST/CommentSema.cpp

  Log Message:
  -----------
  [clang][diagnostics] Refactor "warn_doc_container_decl_mismatch" to use enum_select (#147120)

Related: https://github.com/llvm/llvm-project/issues/123121

This patch refactors the `warn_doc_container_decl_mismatch` diagnostic
to use `enum_select` instead of `select`. This gets rid of magic numbers
and improves readability in the caller site.

@cor3ntin @erichkeane



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