This is an archive of the discontinued LLVM Phabricator instance.

[libc++][format] Renames __null_sentinel.
ClosedPublic

Authored by Mordante on Dec 15 2022, 10:06 AM.

Details

Reviewers
emaste
philnik
Group Reviewers
Restricted Project
Commits
rGe31d27e46048: [libc++][format] Renames __null_sentinel.
Summary

While the FreeBSD CI was enabled in D128084 it was discovered libc++
uses the name of a system macro on FreeBSD. This renames the macro to
fix the issue.

Diff Detail

Event Timeline

Mordante created this revision.Dec 15 2022, 10:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 10:06 AM
Mordante requested review of this revision.Dec 15 2022, 10:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 10:06 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik added inline comments.
libcxx/test/libcxx/nasty_macros.compile.pass.cpp
63
Mordante updated this revision to Diff 483228.Dec 15 2022, 10:13 AM

Fixes copy-paste error spotted by philnik.

Mordante marked an inline comment as done.Dec 15 2022, 10:13 AM
Mordante added inline comments.
libcxx/test/libcxx/nasty_macros.compile.pass.cpp
63

Thanks!

emaste accepted this revision.Dec 15 2022, 2:29 PM

This fixes the majority of the failures I observed while trying to bring up FreeBSD CI

philnik accepted this revision.Dec 15 2022, 2:43 PM
This revision is now accepted and ready to land.Dec 15 2022, 2:43 PM
This revision was landed with ongoing or failed builds.Dec 17 2022, 4:44 AM
This revision was automatically updated to reflect the committed changes.
Mordante marked an inline comment as done.
ldionne added inline comments.
libcxx/include/__format/formatter_output.h
376

I think this was a typo? If so, can you please fix in a NFC?

Mordante added inline comments.Dec 21 2022, 8:54 AM
libcxx/include/__format/formatter_output.h
376

nul instead of null was intentionally. It looks for the NUL character, so actually the older name was "wrong".