[all-commits] [llvm/llvm-project] 7fe387: [C] Don't diagnose null pointer macros in -Wimplic...
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed May 21 03:36:42 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7fe387ac35b0b37d2862beaf9c17062b62a221ed
https://github.com/llvm/llvm-project/commit/7fe387ac35b0b37d2862beaf9c17062b62a221ed
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-05-21 (Wed, 21 May 2025)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
M clang/test/Sema/implicit-void-ptr-cast.c
Log Message:
-----------
[C] Don't diagnose null pointer macros in -Wimplicit-void-ptr-cast (#140724)
This silences the diagnostic when the right-hand side is a null pointer
constant that comes from a macro expansion, such as NULL. However, we do
not limit to just NULL because other custom macros may expand to an
implicit void * cast in C while expanding to something else in C++.
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