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
 Code Insepection bad typedef Quick Fix Apply
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mintonla
New Member

USA
6 Posts

Posted - Jan 21 2022 :  10:35:56 AM  Show Profile  Reply with Quote
Have code looking like:

class Value;
class ReferenceTarget;
class Interval;

typedef Value* (Value::*value_vf)(Value**, int);
typedef Value* (*value_cf)(Value**, int);
typedef Value* (Value::*getter_vf)(Value**, int);
typedef Value* (Value::*setter_vf)(Value**, int);
typedef Value* (*max_getter_cf)(ReferenceTarget*, Value*, TimeValue, Interval&);
typedef void (*max_setter_cf)(ReferenceTarget*, Value*, TimeValue, Value*);

Getting 6 'Typedef can be converted to 'using' declaration'. If I do a Apply All, resulting code is:

class Value;
class ReferenceTarget;
class Interval;

using value_vf = Value* (Value::*)(Value**, int);
type;
using value_cf = Value *(*)(Value **, int);
type;
using getter_vf = Value *(Value::*)(Value **, int);
typed;
using setter_vf = Value *(Value::*)(Value **, int);
typed;
using max_getter_cf = Value *(*)(ReferenceTarget *, Value *, TimeValue, Interval &);
typedef v;
using max_setter_cf = void (*)(ReferenceTarget *, Value *, TimeValue, Value *);

Running 10.92440.0, VS2019.
Thanx, Larry

feline
Whole Tomato Software

United Kingdom
19054 Posts

Posted - Jan 24 2022 :  10:43:17 AM  Show Profile  Reply with Quote
That's really odd, but I am seeing the same result here, thank you for the very clear bug report:

case=147734

In case you haven't realised it, if you use Code Inspection on each typedef, one by one, you get the right result, without the extra bits, which is rather reassuring.

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