Skip to content
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

#include <fstream> deleted automatically #10

Open
tigerjack opened this issue Jul 24, 2024 · 1 comment
Open

#include <fstream> deleted automatically #10

tigerjack opened this issue Jul 24, 2024 · 1 comment

Comments

@tigerjack
Copy link

As per syl20bnr/spacemacs#16501 (comment)

Consider this small example.

#include <fstream>

int main() {
  std::ifstream file("a.txt");
}

When I try to refactor, the include is automatically deleted.

@afrantisak
Copy link

Is there a workaround, i.e. // IWYU pragma: keep (link) or something? This is really annoying, forcing me to turn off the feature entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants