Bug 265686

Summary: Nested namespaces don't get stripped in helpers
Product: [Applications] kdevelop Reporter: Milian Wolff <mail>
Component: Language Support: CPP (old)Assignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Milian Wolff 2011-02-07 11:45:17 UTC
Version:           unspecified
OS:                Linux

Most (all?) code generators like missing declaration, create implementation, update signature, ... that need to print types fail on nested namespaces. This is a huge inconvenience to me as I always have to fix that by hand afterwards.

Reproducible: Didn't try

Steps to Reproduce:
test.h:
~~~~~~~~
namespace A {
namespace B {
class C {};
C* foo(C*);
}
}

test.cpp:
~~~~~~~~~~
#include "test.h"

// alternatively try with namespace A { namespace B { ...
using namespace A::B;

// create implementation for C* foo(C*);


Actual Results:  
A::B::C* foo(A::B::C*)
{

}

Expected Results:  
C* foo(C*)
{

}
Comment 1 Justin Zobel 2021-03-09 22:48:01 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.