patch for it.
Index: src/plugins/codecompletion/parser/parserthread.cpp
// check for "C"
- m_Str = m_Tokenizer.GetToken();
+ m_Str = m_Tokenizer.PeekToken();
if (m_Str==ParserConsts::kw_C)
{
m_Tokenizer.GetToken(); // "eat" {
Be careful: In that case not the "
{" is "eaten" in the case of
extern C {...} statements, but the "
C". So your patch will work for the extern cout thing, but will break
extern C {...}.
This maybe corrected by issuing "
m_Tokenizer.GetToken();" twice in the
if clause, the fiorst time for "
C", the second time for the "
{".