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
 Uniform initialization and parameter info
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bta
Ketchup Master

Belgium
57 Posts

Posted - Jan 12 2018 :  07:35:49 AM  Show Profile  Reply with Quote
Hi,

When using the uniform initialization syntax, no parameter info is shown.
When using regular (), the info is shown.
See examples in code snippet below.

I expect the tooltip to appear when typing the opening {
And also later on when positioning my self somewhere in the arguments, when pressing Ctrl+Shift+Space


class MyClass
   {
   public:
      MyClass(int arg1, int arg2)
         : m_1(arg1)
         , m_2(arg2)
         {}
      void foo(double arg) {}
   private:
      int m_1;
      int m_2;
   };

int main()
   {
   auto m1 = MyClass{1,2};  // no parameter info tooltip is shown when using the { } syntax
   auto m2= MyClass(1, 2);  // parameter info tooltip is shown when using the old () syntax

   return 0;
   }



some references:
http://en.cppreference.com/w/cpp/language/list_initialization
https://msdn.microsoft.com/en-us/library/dn387583.aspx

Environment info:
VA_X.dll file version 10.9.2248.0 built 2017.12.16
DevEnv.exe version 14.0.25420.1 Professional
msenv.dll version 14.0.25431.1
Comctl32.dll version 6.10.7601.18837
Windows Server 2008 R2 6.1 Build 7601 Service Pack 1 (remote)
36 processors (x86-64, WOW64)
Language info: 1252, 0x409


Edited by - bta on Jan 12 2018 07:37:14 AM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jan 13 2018 :  08:32:44 AM  Show Profile  Reply with Quote
I am seeing the same effect, thank you for the clear code sample. This is something we are aware of, and planning to look at, but unfortunately I don't currently have an estimate for when this will be done:

case=75129

For now, what do you have:

VA Options -> Enhanced Listboxes -> Source of C/C++ content: Visual Assist OR Default Intellisense

set to? If you set this to Default Intellisese and then press Ctrl-Shift-Space inside the { } on the m1 line, you should get a parameter info tooltip, showing you the parameters. This is working for me in VS2015 with VA 2248.

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