Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Omit full namespace name when generating a method

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
Alexey.Malov Posted - Jun 09 2017 : 5:27:48 PM
Assume, we have two files:

FooBar.h

#pragma once

namespace external
{
namespace internal
{

struct Foo
{
    int data;
};

struct Bar
{
    Foo GetFoo();
}

}
}


and FooBar.cpp:

#include "FooBar.h"

namespace external
{
namespace internal
{



}
}



When generating implementation for Bar::GetFoo(), Visual Assist generates the following code in FooBar.cpp:


#include "FooBar.h"

namespace external
{
namespace internal
{

external::internal::Foo Bar::GetFoo()
{
    throw std::logic_error("Method is not implemented");
}

}
}


There is no need to specify full qualified name external::internal::Foo withing namespace external::internal. Is it possible to generate just the following code


#include "FooBar.h"

namespace external
{
namespace internal
{

Foo Bar::GetFoo()
{
    throw std::logic_error("Method is not implemented");
}

}
}


Of course if type Foo was located in a different namespace, it would make sence to specify fully qualified name as return type.

Am I missed something?
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 10 2017 : 08:22:00 AM
Thank you for the clear description. Currently this is a known limitation / bug with Create Implementation. It is one we are aware of, but unfortunately I don't yet have an estimate for when we are hoping to fix this:

case=6130

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