Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Bad parsing in member functions of local classes

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Alfus Posted - Jan 10 2006 : 1:01:01 PM
In when using VAssistX in c++ this is parsed badly:


class A
{
    class B
    {
    protected:
        A *m_data;
    public:
        virtual void Run() {}
    };

    class C: public class B
    {
    public:
        virtual void Run();
    };

    unsigned char *m_data;

public:
    void Test() {}
};

void A::C::Run()
{
    m_data->Test();
}


The last m_data is parsed as A::m_data which is an unsigned char instead of B::m_data which is a pointer to an object of type A. This causes Test() to be underlined with red and no intellisense on m_data. Strangely the tool tip for the item knows it is A::B::m_data and is of type A*
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 11 2006 : 2:47:50 PM
you may want to try turning on the option:

VA Options -> text editor -> listboxes -> get content from default intellisense

hopefully this will help in your case.
Alfus Posted - Jan 10 2006 : 6:45:05 PM
It does seem that the IDE is parsing this correctly. When I disable VAssist the intellisense works perfectly
feline Posted - Jan 10 2006 : 5:36:51 PM
i am seeing the same underlining and alt-g problem. thank you for a nice clear example

case=958

oddly though, for me the tooltip over m_data->Test() shows "unsigned char *A::m_data"
disabling VA i get no tooltip at all. as far as i can see the tooltip i am getting is from VA. it is possible you are getting a tooltip from the IDE, which would explain the difference.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000