fix(imports): use clangd-friendly cpp imports #225
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
arduinohatesme/leetcode.nvim!225
Loading…
Reference in a new issue
No description provided.
Delete branch "ChEnylnti/fix/cpp-imports-clangd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
bits/stdc++.himport with standard library headersIWYU pragma: keepto avoid clangd unused include diagnosticsMotivation
This follows up on #216.
bits/stdc++.his a GCC-specific header. On macOS, Apple clangd reports it as missing, which also breaks common completions and diagnostics for symbols likevector.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.