Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT DELETES #include with ctrl-shift-O
CDT DELETES #include with ctrl-shift-O [message #1850017] Fri, 11 February 2022 07:18
Giuliano Lotta is currently offline Giuliano LottaFriend
Messages: 9
Registered: June 2016
Junior Member
If I insert a piece o code like

int fd = open("pizza",  O_RDONLY);

and insert the needed #include <fcntl.h>,
pressing ctrl+shit+O, will DELETE the already present #include <fcntl.h>

Once deleted (!!), pressing again ctrl+shit+O, will NOT insert it ....
NOR will insert the #include <sys/stat.h> , #include <sys/types.h>....

Is it a bug?
Shouldn't the shortcut check and insert the needed #include comparing the functions used in the program ?

BR
Giuliano


Eclipse 21-09 (Ubuntu) + CDT 10,4
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
Previous Topic:Cross Compile Alsa for Windows
Next Topic:Debugger terminates when array is expanded in Variables window?
Goto Forum:
  


Current Time: Mon Sep 23 05:57:09 GMT 2024

Powered by FUDForum. Page generated in 0.02913 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top