Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Completion: std namespace almost empty
Completion: std namespace almost empty [message #195479] Fri, 06 July 2007 06:53
Szczepan Holyszewski is currently offline Szczepan Holyszewski
Messages: 9
Registered: July 2009
Junior Member
#include <iostream>

std:://no iostream typedef among completion proposals!

The problem is caused by indexer's inability to parse the macro call that
the standard headers coming with gcc 4.2.1 use to open the std namespace:

_GLIBCXX_BEGIN_NAMESPACE(std)

Here's how bits/c++config.h defines that macro:

#define _GLIBCXX_VISIBILITY(V)\
__attribute__ ((__visibility__ (#V)))

# define _GLIBCXX_BEGIN_NAMESPACE(X)\
namespace X _GLIBCXX_VISIBILITY(default) {

It seems that the scanner cannot properly recognize the expansion:

namespace std __attribute__ ((__visibility__ ("default"))) {

I could work around the problem by employing a nasty kludge involving a
modified copy of bits/c++config.h and exploiting a deficiency of the
configuration scanner that makes it possible to specify additional include
search paths for the build that won't be seen by the indexer.

SZczepan Holyszewski
Previous Topic:Strange memory problems
Next Topic:Eclipse3.3, CDT4.0, Managed Make invisible
Goto Forum:
  


Current Time: Tue Sep 02 05:14:42 EDT 2014

Powered by FUDForum. Page generated in 0.01846 seconds