Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

vector<int> is OK, but string or wstring no-work.

<< < (16/23) > >>

MortenMacFly:

--- Quote from: jens on January 14, 2010, 02:27:28 pm ---This does normally (never ?) happen inside the same event, so we have to remember whether a reparse is needed, either with a member-variable or a static local variable.

--- End quote ---
Dammed. Now I got the point. Ok... I'll take care...
Me should not work when being sick. :?

Jenna:

--- Quote from: MortenMacFly on January 14, 2010, 04:31:47 pm ---Me should not work when being sick. :?

--- End quote ---

Nobody should.

I hope you feel better soon.

ollydbg:
This is what Visual c++'s code completion do in the feature:
http://blogs.msdn.com/vcblog/archive/2009/08/12/tag-parsing-c.aspx

ollydbg:
I think a variable in Tokenizer class can be removed, because it is never used any more.


--- Code: ---bool             m_IsOperator;
--- End code ---

BTW: comparing with the "operator" keyword is done in the ParserThread class instead of Tokenizer class.

Edit
Also, this function is never used in Tokenizer, we use another function.

--- Code: ---    inline const wxString& ThisOrReplacement(const wxString& str) const
    {
        ConfigManagerContainer::StringToStringMap::const_iterator it = s_Replacements.find(str);
        if (it != s_Replacements.end())
            return it->second;
        return str;
    };
--- End code ---
So, it can be cleaned up.

blueshake:

--- Quote ---I think a variable in Tokenizer class can be removed, because it is never used any more.

Code:

bool             m_IsOperator;


BTW: comparing with the "operator" keyword is done in the ParserThread class instead of Tokenizer class.
--- End quote ---

@ollydbg

it was used here in nativeparser.cpp


--- Code: ---if (!token)
        {
            if (s_DebugSmartSense)
                Manager::Get()->GetLogManager()->DebugLog(_T("FindAIMatches() Token is NULL?!"));
            continue;
        }

        // ignore operators
        if (token->m_IsOperator)
            continue;

        // enums children (enumerators), are added by default
        if (token->m_TokenKind == tkEnum)
        {
            // insert enum type
            result.insert(id);

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version