-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Add wrapped_facade_headers library for resolving IWYU violations; Add header wrappers for sys/types.h; Resolve off_t
IWYU violations.
#52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request introduces a new subdirectory, Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (8)
🧰 Additional context used📓 Path-based instructions (1)`**/*.{cpp,hpp,java,js,jsx,tpp,ts,tsx}`: - Prefer `false == ` rather than `!`.
🔇 Additional comments (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
off_t
includes.
off_t
includes.off_t
IWYU violations.
Description
This PR closes #50 by introducing a new
ystdlib
module:wrapped_facade_headers
.Summary
The goal of this module is to provide platform-agnostic include wrappers for system headers that behave differently across operating systems—particularly between Linux and macOS.
We introduce a wrapped header following the Linux-style path for each platform-sensitive include, e.g.
These headers resolve to the correct platform-specific includes internally, ensuring cross-platform consistency with simple include statements and without triggering clang-tidy warnings.
Testing
For each specific case we counter that requires a wrapped header, we add a trivial test file (e.g.
test/test_off_t.cpp
) that:clang-tidy
(withmisc-include-cleaner
) passesMisc
Fixes the existing
off_t
problems inio_interface
.Checklist
breaking change.
Validation performed
off_t
has a well-defined source header.Summary by CodeRabbit
New Features
Refactor
Tests
Chores