| Automatic "Organize #includes"? [message #110678] |
Wed, 14 July 2004 11:58  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.24560 seconds