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

New code completion remarks/issues

<< < (25/54) > >>

blueshake:
Still can not figure out why this happened.
See the pitcture snap5,the wwwwwwwww value tip is wrong when I use tkTypedef(snap 6).
If I use tkClass,(the pic snap 7) the wwwwwwwww value tip is snap 8.

[attachment deleted by admin]

ollydbg:

--- Quote from: blueshake on October 06, 2009, 03:54:58 am ---
See the pitcture,the wwwwwwwww value tip is wrong when I use tkTypedef.

--- End quote ---
confirmed. that's still something related to the source we mentioned in this thread.

http://forums.codeblocks.org/index.php/topic,11187.msg76830.html#msg76830

I believe comment them will let the suggestion list work ok. :D

blueshake:
It is strange.I just test the same codes in svn 5731,it worked.



Edit:

I guess maybe the BreakUpComponents function break down something.


[attachment deleted by admin]

ollydbg:

--- Quote from: blueshake on October 06, 2009, 04:17:04 am ---It is strange.I just test the same codes in svn 5731,it worked.



Edit:

I guess maybe the BreakUpComponents function break down something.


--- End quote ---
rev 5731 is before the cc_branch is merged. I'm just viewing the log Message of "nativeparser.cpp", and have a comparison with rev5682 of nativeparser.cpp.

Edit:

Both of the rev5844 and rev 5731 give the same token, like your screen shot. so, the main bug was located in the "nativeparser.cpp" :D

ollydbg:
what I have found is that these code:


--- Code: ---  if (local_result.size() == 1)
    {
        int id = *local_result.begin();
        Token* token = tree->at(id);

        if (token->m_TokenKind == tkTypedef)
        {
            std::queue<ParserComponent> type_components;
            BreakUpComponents(parser, token->m_ActualType, type_components);

            while(!components.empty())
            {
                ParserComponent comp = components.front();
                components.pop();
                type_components.push(comp);
            }

#if DEBUG_CC_AI
            if (s_DebugSmartSense)
            #if wxCHECK_VERSION(2, 9, 0)
                Manager::Get()->GetLogManager()->DebugLog(F(_T("FindAIMatches() : Replacing %s to %s"), token->m_Name.wx_str(), token->m_ActualType.wx_str()));
            #else
                Manager::Get()->GetLogManager()->DebugLog(F(_T("FindAIMatches() : Replacing %s to %s"), token->m_Name.c_str(), token->m_ActualType.c_str()));
            #endif
#endif
            return FindAIMatches(parser, type_components, result, parentTokenIdx, noPartialMatch, caseSensitive, use_inheritance, kindMask, search_scope);
        }

    }


--- End code ---

Is added from rev 5682 to rev5840 of nativeparser.cpp.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version