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
 Raw pointers as trailing return type break VAX
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

frk
Starting Member

1 Posts

Posted - Oct 02 2015 :  6:02:55 PM  Show Profile  Reply with Quote
VA_X.dll file version 10.9.2076.0  built 2015.09.15
DevEnv.exe version 14.0.23107.0 Community
msenv.dll version 14.0.23107.0
Comctl32.dll version 6.10.10240.16384
Windows 10 10.0 Build 10240 

Visual Studio 2015 Community Edition, German


Description of the problem:

Defining functions using auto and the trailing return type break VAX when returning a raw pointer. Break as in after those lines documentation of other functions does not work anymore and they get recognized wrong.

This does NOT happen if the function returning the raw pointer is qualified as 'const'.

Screenshot:



Code example:

class BaseClass
{
private:
    uint32_t m_int;
    uint32_t* m_pInt;

public:
    auto Func1( void ) -> bool
    {
        return true;
    }

    auto Func2( void ) -> uint32_t&
    {
        return m_int;
    }

    auto Func3( void ) const -> uint32_t*
    {
        return m_pInt;
    }

    auto Func4( void ) -> uint32_t*
    {
        return m_pInt;
    }

    auto Func5( void ) -> void
    {
        return;
    }

};


Try generating documentation for Func5!

Greetings

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 03 2015 :  07:10:48 AM  Show Profile  Reply with Quote
I was able to reproduce the problems and I have put in a bug report for them:

case=92526

Really sorry for the inconvenience.
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