Skip to content

fix(imports): use clangd-friendly cpp imports#225

Open
ChEnylnti wants to merge 1 commit into
kawre:masterfrom
ChEnylnti:fix/cpp-imports-clangd
Open

fix(imports): use clangd-friendly cpp imports#225
ChEnylnti wants to merge 1 commit into
kawre:masterfrom
ChEnylnti:fix/cpp-imports-clangd

Conversation

@ChEnylnti

Copy link
Copy Markdown

Summary

  • replace the default C++ bits/stdc++.h import with standard library headers
  • add IWYU pragma: keep to avoid clangd unused include diagnostics
  • update the injector example in README

Motivation

This follows up on #216.

bits/stdc++.h is a GCC-specific header. On macOS, Apple clangd reports it as missing, which also breaks common completions and diagnostics for symbols like vector.

Since injected imports are editor-only and not submitted, using standard headers makes the default C++ editing experience more portable.

Tested locally with clangd: diagnostics are clean.

@ChEnylnti ChEnylnti force-pushed the fix/cpp-imports-clangd branch from b7017c4 to 708f85a Compare June 18, 2026 05:23
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.

1 participant