Add implementation - namespace inconsistency

General questions regarding the usage of CodeLite
netrick
CodeLite Enthusiast
Posts: 19
Joined: Fri Dec 07, 2012 8:20 pm
Genuine User: Yes
IDE Question: C++
Contact:

Add implementation - namespace inconsistency

Post by netrick »

Okay, it's not strictly a bug but inconsistency with class wizard.
I create a class in namespace and I get:

test.hpp

Code: Select all

namespace abc
{
class test
{
    test();
    foo();
};
}
test.cpp

Code: Select all

#include "test.hpp"
namespace abc
{
    test::test()
    {
    }
}
When I click "add implementation" for foo(), it wants to create function "abc::test::foo()" and place it outside namespace.
Of course it's easy to remove the namespace while editing function body and ctrl-x ctrl-v it into namespace, but I think that code generation and class generation should be consistent. (both should place function inside the namespace in .cpp file, like constructor and destructor are placed by wizard).

Just a suggestion to make codelite even better and more polished.