Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Automatic "Organize #includes"?
Automatic "Organize #includes"? [message #110678] Wed, 14 July 2004 11:58 Go to next message
Eclipse UserFriend
Originally posted by: schmidt.2002.gmx.de

Java has the nice feature "Organize imports" which automatically detects
which import statements are needed, and inserts them into the code, e.g.
"import java.util.Hashtable"

Now, the same for C++ would be great: "Organize #includes", at least for
STL components. So, whenever you use a vector, but forgot to include it,
CDT could insert an #include <vector>".

For C++, such a functionality is much more important than for Java,
because it's notorious that stuff even compiles on some STL platforms if
you forget to #include<string> or other stuff.

Andi
Re: Automatic "Organize #includes"? [message #110736 is a reply to message #110678] Wed, 14 July 2004 14:34 Go to previous message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45203

"Andreas Schmidt" <schmidt.2002@gmx.de> wrote in message
news:opsa4xbku3hj6ai6@news.eclipse.org...
> Java has the nice feature "Organize imports" which automatically detects
> which import statements are needed, and inserts them into the code, e.g.
> "import java.util.Hashtable"
>
> Now, the same for C++ would be great: "Organize #includes", at least for
> STL components. So, whenever you use a vector, but forgot to include it,
> CDT could insert an #include <vector>".
>
> For C++, such a functionality is much more important than for Java,
> because it's notorious that stuff even compiles on some STL platforms if
> you forget to #include<string> or other stuff.
>
> Andi
Previous Topic:Debugging with CDT problem, newbie question
Next Topic:GNU Compilant src-tree?(autogen.sh...)
Goto Forum:
  


Current Time: Mon Nov 10 02:35:45 EST 2025

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

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

Back to the top