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
 using from c++11
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jan 21 2014 :  02:51:46 AM  Show Profile  Reply with Quote
Hello

typename vector< int > tvec; <-- on tvec use 'Find Reference' - is OK

c++11
using tvec = vector< int >; <-- on tvec use 'Find Reference' - 'Find Reerence is not available because the symbol is unrecognized'

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 21 2014 :  3:42:33 PM  Show Profile  Reply with Quote
Which version of Visual Studio and Visual Assist are you using?
The following works with VA 2023 for me:



I used Visual Assist's highlights and Find references also works on "tvec" for me.
Am I doing the right test?
Go to Top of Page

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jan 22 2014 :  03:37:00 AM  Show Profile  Reply with Quote
VS1023 VA 2023
For small test project it is works ok, but for 'real big'... when i start first time VS it works for a moment, after ~5 times it stop and error return.
I try restart VS, rebuild VA symbol databases, even restart windows, problem still exists.

See this ( small project where it working ):

1. typedef vector< int > tVecInt;
2. using uVecInt = vector< int >;
3. class CTest
4. {
5. typedef vector< int > tVecInt;
6. using uVecInt = vector< int >;
7. };

use 'Find Reference' on:
in: 1. on tVecInt out: 1.
in: 5. on tVecInt out: 5.
in: 2. on uVecInt out: 2. and 6. ( not only 2. )
in: 6. on uVecInt out: 2. and 6. ( not only 6. )
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 22 2014 :  3:17:05 PM  Show Profile  Reply with Quote
I am seeing the same effect with find references on your test code:

case=79779

Regarding the unrecognised typedef: do you have any macros in that file, before the typedef? Complex / recursive macros may confuse VA's parser.
Go to Top of Page

__Daniel__
Senior Member

Poland
36 Posts

Posted - Jan 23 2014 :  01:19:54 AM  Show Profile  Reply with Quote
I'm the winner :)

using uTest1 = int;
class CTest
{
using uTest2 = int;
};
namespace Test
{
using uTest3 = int;
}

It works only on uTest1. Class/namespace/etc are the problem :(

EDIT:
the same problem with:
class CTest2
{
public:
CTest2( string&& rText ) : m_sText{ move( rText ) }
{}

private:
string m_sText;
};

try on 'rText' in constructor ( of course rename also not working )

Edited by - __Daniel__ on Jan 23 2014 05:43:01 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 23 2014 :  5:33:17 PM  Show Profile  Reply with Quote
I have added your first example to case=79779

The support of rvalue references is

case=20625

which is already marked as fixed. It will go through internal testing, and may show up in the next build.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 26 2014 :  10:39:16 AM  Show Profile  Reply with Quote
case=20625 is fixed in build 2029
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 20 2015 :  4:05:00 PM  Show Profile  Reply with Quote
case=87178 is fixed in build 2083
(case=79779 morphed into case=87178)

Edited by - sean on Nov 20 2015 4:06:27 PM
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