Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Raw pointers as trailing return type break VAX

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
frk Posted - Oct 02 2015 : 6:02:55 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Oct 03 2015 : 07:10:48 AM
I was able to reproduce the problems and I have put in a bug report for them:

case=92526

Really sorry for the inconvenience.

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