[all-commits] [llvm/llvm-project] b1aa3e: [clang][diagnostics] Refactor "warn_doc_api_contai...

Ayokunle Amodu via All-commits all-commits at lists.llvm.org
Wed Jul 9 08:37:09 PDT 2025


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

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

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

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

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



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