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 Inspection issue with array typedef -> using
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yehezkelshb
New Member

3 Posts

Posted - Mar 26 2017 :  12:48:46 PM  Show Profile  Reply with Quote
Just started using Code Inspection. It looks useful already and with a great potential to become better and better. Thanks!

I have noticed that the "typedef to using" fix doesn't work correctly when it's a typedef to an array.

In my case, I have the following typedef:
typedef UINT32 ID[4];

Code Inspection marks it and suggests replacing with a using declaration, but when I try to apply it, the result is just:
typedef UINT32[4];


Trying it after removal of the
[4]
part, I get the expected result:
using ID = UINT32;

yehezkelshb
New Member

3 Posts

Posted - Mar 26 2017 :  12:53:58 PM  Show Profile  Reply with Quote
Forgot to mention the technical details:
Microsoft Visual Studio Enterprise 2017 Version 15.0.26228.9
VA_X.dll file version 10.9.2212.0 built 2017.03.23

I also noticed that with regular 'int' or 'unsigned int' (instead of the Windows typedef) it works correctly even with an array.
It also works if I replace UINT32 with MyInt which I typedef'ed to 'unsigned int' for the testing.
Not sure what is special about UINT32.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Mar 26 2017 :  3:59:39 PM  Show Profile  Reply with Quote
What version of Visual Assist are you using?
I tried your example with VA build 2212 and I wasn't able to reproduce the problem.

In case you're using build 2210 can you please try downloading our recent build 2212 which has Code Inspection fixes?
http://www.wholetomato.com/downloads/default.asp

In case you're still experiencing the issues with 2212 (or you're already using it) can you please try creating a clean new win32 project, paste your code snippet on the last line of Win32Project1.cpp (or something similar) to see if you're able to reproduce the problem there?
Go to Top of Page

yehezkelshb
New Member

3 Posts

Posted - Mar 26 2017 :  4:12:43 PM  Show Profile  Reply with Quote
As mentioned in the second message, I already use 2212 version.
I'll try later with a clean project.
Thanks!
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