Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Bad parsing in member functions of local classes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alfus
New Member

3 Posts

Posted - Jan 10 2006 :  1:01:01 PM  Show Profile  Reply with Quote
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*

Edited by - Alfus on Jan 10 2006 1:17:56 PM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jan 10 2006 :  5:36:51 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Alfus
New Member

3 Posts

Posted - Jan 10 2006 :  6:45:05 PM  Show Profile  Reply with Quote
It does seem that the IDE is parsing this correctly. When I disable VAssist the intellisense works perfectly
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jan 11 2006 :  2:47:50 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000