Bug 373722 - "Implement function" doesn't consider "using namespace"
Summary: "Implement function" doesn't consider "using namespace"
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-16 13:11 UTC by Daniel Vrátil
Modified: 2017-04-14 16:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vrátil 2016-12-16 13:11:58 UTC
When using the "Implement function" feature in code completion in KDevelop, the generated implementation always includes namespace in the type names, even if the namespace is already specified with "using namespace" somewhere above.

It would be nice, if the tool would check for "using namespace" in the current scope and omit the namespace from the generated code.

I think this used to work in the pre-clang version, so would be nice to have it back :)
Comment 1 Ian H 2016-12-16 17:51:24 UTC
to tack on to this, if you add the namespace already to the name before the prompt comes up, it will rewrite the namespace again anyway, leaving you with foo::foo::bar instead of foo::bar.