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
 'Create Implementation' generate false code
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

azur
Ketchup Master

Germany
52 Posts

Posted - Jul 19 2017 :  10:11:58 AM  Show Profile  Reply with Quote
H-File:

void f // F(x) should have a comment
  (int x);


Quick Actions and Refactorings (VA) --> Create Implementation

CPP-File:

void f(x) should have a comment * / (int x)
{

}


expected result something like this:

void f(x) /* should have a comment */ (int x)
{

}


feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 19 2017 :  11:32:43 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=109825

Do you have a lot of code that is formatted like this? I have never seen the comment placed there before.

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

azur
Ketchup Master

Germany
52 Posts

Posted - Jul 19 2017 :  12:19:45 PM  Show Profile  Reply with Quote
I often declare like this ('Create Implementation' works fine):
int doSomething // this function do something
( int param1    // first parameter
, int param2    // second parameter 
);

Today I had to code like this:
int doSomething // this function do something
();
int doSomething // this function do something (one parameter)
(int param1);
int doSomething // this function do something (two parameter)
(int param1
,int param2);


So I catch the issue. But it's no problem.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 20 2017 :  03:18:30 AM  Show Profile  Reply with Quote
Thank you for the update, and I have added this second example to the case, to make sure it is also handled properly when this is fixed.

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