Details
- Reviewers
ldionne vitaut - Group Reviewers
Restricted Project - Commits
- rGdfb20d4d19ec: [libc++][format] Improve ABI stability.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Fix the CI. I had validated that -Wswitch wasn't used on Linux, but it seems
other CI jobs do, leading to an expected error.
libcxx/include/__format/format_arg.h | ||
---|---|---|
42–43 | Consider replacing this comment with a test in libcxx/test/libcxx/ that does assert(__format::__arg_t::__ptr == 14); and is not skipped when _LIBCPP_HAS_NO_INT128. | |
104–113 | Murphy's Law says that somebody will ignore this comment and add a case somethingelse: on line 106, at which point the comment will be wrong because these cases will fallthrough to that. |
Consider replacing this comment with a test in libcxx/test/libcxx/ that does assert(__format::__arg_t::__ptr == 14); and is not skipped when _LIBCPP_HAS_NO_INT128.
Mantra: "If you liked it then you should have put a test on it!" If we're trying to ensure the ABI doesn't break here, let's put a test on that ABI.