[all-commits] [llvm/llvm-project] 15321d: [C] Add (new) -Wimplicit-void-ptr-cast to -Wc++-co...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Apr 24 03:37:33 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15321d2c9e686b382262339fa17c5445b1b2609f
      https://github.com/llvm/llvm-project/commit/15321d2c9e686b382262339fa17c5445b1b2609f
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-04-24 (Thu, 24 Apr 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/SemaObjC.cpp
    M clang/lib/Sema/SemaObjCProperty.cpp
    M clang/lib/Sema/SemaOverload.cpp
    A clang/test/Sema/implicit-void-ptr-cast.c

  Log Message:
  -----------
  [C] Add (new) -Wimplicit-void-ptr-cast to -Wc++-compat (#136855)

This introduces a new diagnostic group (-Wimplicit-void-ptr-cast),
grouped under -Wc++-compat, which diagnoses implicit conversions from
void * to another pointer type in C. It's a common source of
incompatibility with C++ and is something GCC diagnoses (though GCC does
not have a specific warning group for this).

Fixes #17792



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