Skip to content

fix: define MRDOCS_NO_UNIQUE_ADDRESS and MRDOCS_DOM_NO_UNIQUE_ADDRESS correctly - #1255

Open
gennaroprota wants to merge 1 commit into
cppalliance:developfrom
gennaroprota:fix/define_mrdocs_no_unique_address_and_mrdocs_dom_no_unique_address_correctly
Open

fix: define MRDOCS_NO_UNIQUE_ADDRESS and MRDOCS_DOM_NO_UNIQUE_ADDRESS correctly#1255
gennaroprota wants to merge 1 commit into
cppalliance:developfrom
gennaroprota:fix/define_mrdocs_no_unique_address_and_mrdocs_dom_no_unique_address_correctly

Conversation

@gennaroprota

@gennaroprota gennaroprota commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

The macro definitions were guarded by __cpp_lib_no_unique_address, which does not exist, so they expanded to nothing on all compilers. Also, MSVC has its own version of the attribute (msvc::no_unique_address) and does not support the standard one.

Changes

  • Source: For both macros, __has_cpp_attribute is used to select the correct definition.

Testing

We don't usually test macro definitions like those.

Documentation

The macros are implementation details, so no documentation update is needed.

… correctly

The macro definitions were guarded by `__cpp_lib_no_unique_address`,
which does not exist, so they expanded to nothing on all compilers.
Also, MSVC has its own version of the attribute
(`msvc::no_unique_address`) and does not support the standard one.
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

⚠️ Warnings

Warning

Source changed but no tests or fixtures were updated.

🧾 Changes by Scope

Scope Lines Δ% Lines Δ Lines + Lines - Files Δ Files + Files ~ Files ↔ Files -
🛠️ Source 100% 10 8 2 2 - 2 - -
Total 100% 10 8 2 2 - 2 - -

Legend: Files + (added), Files ~ (modified), Files ↔ (renamed), Files - (removed)

🔝 Top Files

  • include/mrdocs/Platform.hpp (Source): 5 lines Δ (+4 / -1)
  • libs/dom/include/mrdocs/Dom/Platform.hpp (Source): 5 lines Δ (+4 / -1)

Generated by 🚫 dangerJS against 6808147

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.12%. Comparing base (faea11b) to head (6808147).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1255   +/-   ##
========================================
  Coverage    83.12%   83.12%           
========================================
  Files           35       35           
  Lines         3662     3662           
  Branches       844      844           
========================================
  Hits          3044     3044           
  Misses         410      410           
  Partials       208      208           
Flag Coverage Δ
bootstrap 83.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cppalliance-bot

cppalliance-bot commented Aug 11, 2026

Copy link
Copy Markdown

An automated preview of the documentation is available at https://1255.mrdocs.prtest2.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-08-17 20:04:11 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants