Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Uniform initialization and parameter info

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
bta Posted - Jan 12 2018 : 07:35:49 AM
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

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 13 2018 : 08:32:44 AM
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.

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