Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 62df643698ea0e6a23866901e87ac3c201d44b72
      
https://github.com/WebKit/WebKit/commit/62df643698ea0e6a23866901e87ac3c201d44b72
  Author: Brandon Stewart <[email protected]>
  Date:   2025-12-18 (Thu, 18 Dec 2025)

  Changed paths:
    M Source/WTF/wtf/RefCounted.h
    M Source/WTF/wtf/ThreadSafeRefCounted.h
    M Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h

  Log Message:
  -----------
  Use NO_UNIQUE_ADDRESS macro instead of [[no_unique_address]] attribute
https://bugs.webkit.org/show_bug.cgi?id=304415
rdar://problem/166795977

Reviewed by Ross Kirsling and Darin Adler.

Windows builds with clang-cl fail to recognize [[no_unique_address]]
even when compiling with C++23. WebKit already has a NO_UNIQUE_ADDRESS
macro in Compiler.h that properly detects compiler support for this
attribute and falls back to empty definition when unavailable.

Replace direct use of [[no_unique_address]] with the NO_UNIQUE_ADDRESS
macro in RefCounted base classes to fix Windows builds while maintaining
the attribute on platforms that support it.

* Source/WTF/wtf/RefCounted.h:
* Source/WTF/wtf/ThreadSafeRefCounted.h:
* Source/WTF/wtf/ThreadSafeRefCountedWithSuppressingSaferCPPChecking.h:

Canonical link: https://commits.webkit.org/304697@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to