https://bugs.kde.org/show_bug.cgi?id=245774 Summary: Patch enabling code completion through global namespace aliases Product: kdevelop Version: SVN Platform: Gentoo Packages OS/Version: Linux Status: UNCONFIRMED Severity: wishlist Priority: NOR Component: code completion AssignedTo: kdevelop-bugs@kdevelop.org ReportedBy: cheepeero@gmx.net Created an attachment (id=49485) --> (http://bugs.kde.org/attachment.cgi?id=49485) Patch enabling completion Version: SVN (using KDE 4.4.4) OS: Linux For this snippet of code, kdevelop4 does not provide me the list of names in the boost::filesystem namespace: #include namespace fs = boost::filesystem; fs::path my_path; // hit ctrl+space after fs:: and nothing happens The attached patch fixes it. Also solved is the following valid C++ case (in the context of the above C++ scenario): using namespace fs; // imports names from boost::filesystem Reproducible: Always When the completion list is formed, the algorithm only checks for declarations of type Declaration::Namespace and adds their content to the list. My patch adds a preprocessing on the declaration list by traversing Declaration::NamespaceAlias declarations and resolving them towards the imported namespaces. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs