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
 Feature Requests
 Omit full namespace name when generating a method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alexey.Malov
New Member

Russia
4 Posts

Posted - Jun 09 2017 :  5:27:48 PM  Show Profile  Reply with Quote
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?

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Jun 10 2017 :  08:22:00 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
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