Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Eliminate forward declaration / use another symbol

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
xMRi Posted - Jul 14 2023 : 02:04:54 AM
Suppose you have

class Foo;

class Foo1
{
...
private 
  Foo *pUseFoo;
};

class Foo2
{
...
private 
  Foo *pUseFoo;
};

...

class Foo
{
...
};


I see the forward declaration of the class in the method list!
Why? It isn't so useful. When I want to get to class Foo I need to select the second entry of the method list. Mostly I missed it.

This is the same for function declarations...

Solutions:
- Use another different symbol
- Use an option to filter it
- Set a semicolon behind the forward declaration and periods for the definition. (or similar)

Just my 2 cents.
6   L A T E S T    R E P L I E S    (Newest First)
xMRi Posted - Jul 20 2023 : 08:18:31 AM
Perfect. Thanks for your feedback.
feline Posted - Jul 19 2023 : 10:02:36 AM
Found the "problem", which is fairly obvious when you know what is going on. Forward declares are NOT shown in the Alt-M list if you are testing in a cpp file, but they ARE shown if you are testing in a header file. It never occurred to me that the file extension would matter, but I ran into this when running some more tests on this.

It turns out this has come up once before, so I have added this vote and information to the case:

case=87550
xMRi Posted - Jul 19 2023 : 04:19:28 AM
I am using VS2022. I try to create a "minimum repro test case".
feline Posted - Jul 14 2023 : 09:33:40 AM
Which IDE and version of VA are you using?

It could be the test case I was using was to simple. Or we could be running into something else here.
xMRi Posted - Jul 14 2023 : 06:53:01 AM
The first entry brings me to the forward declaration CDlgJobEditorSheet.
The second to the class.



feline Posted - Jul 14 2023 : 06:12:24 AM
I have edited the code slightly, to make sure it compiles, so I have a valid test here. I am not seeing this, the forward declaration is not being shown for me. I have attached screen shots of what I am seeing, along with my Alt-M list options for clarity, using VS2022 and VA 2491.0






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