Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Missing second parameter suggestion

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
jesko Posted - Apr 10 2007 : 09:32:50 AM
Missing second parameter suggestion in VA 1549

Hello,

I have created a test project to show the error. In the bar class you can select the member function "c" and it will suggest you the first parameter "char abc" but not the second "int def".

Greets
JSC

foo.cpp ============================================================

#include <foo.h>

bar::bar()
{
}

bar::~bar()
{
}

void
bar::a()
{
}

void
bar::b( int abc )
{
}

void
bar::c( char abc, int def )
{
}


foo.h ==============================================================

class bar
{
  public:
    bar();
    ~bar();

    void
      a(),
      b( int abc ),
      c( char abc, int def );
};


main.cpp ===========================================================

int
main()
{
  bar
    Test;

  Test.a();
  Test.b( 1 );
  Test.c( 1, 2 ); //< no 2nd parameter suggestion here
  return 0;
}
5   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 12 2007 : 07:59:38 AM
*ah* that place. I think we will leave that for a while, we can have enough fun with normal, clear code
jesko Posted - Apr 10 2007 : 12:48:11 PM
Yes, I know this type of syntax is a little bit unusual, but I like to group variables by their types and functions by their return type.
It is totally correct to do so - but as I said - unusual.

I would advise you to test VisualAssist against constructs from here:
http://www.arkko.com/ioccc.html

If this works, you can be sure it works nearly always ;-)
feline Posted - Apr 10 2007 : 12:36:04 PM
I guessed you would know the solution, but it is a bad idea to assume things like that

I went away and tested compiling this, just to see if it would work, since I don't recognise this syntax. It makes sense thinking of variables, but I tend to think of variables and functions as different things, to be treated differently.
jesko Posted - Apr 10 2007 : 10:31:06 AM
I know this already. Thanks for your reply !
feline Posted - Apr 10 2007 : 10:22:06 AM
I am seeing the same effect here. Thank you for the clear description.

case=5914

For now the solution is to change the code, so that each of the member functions is declared on a line of its own, rather than having this shared return type.

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