[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 302591] New: completion of C++ cast operators should be more context aware
From: Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date: 2012-06-26 19:11:21
Message-ID: bug-302591-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=302591
Bug ID: 302591
Severity: wishlist
Version: 4.3.1
Priority: NOR
Assignee: kdevelop-bugs@kdevelop.org
Summary: completion of C++ cast operators should be more
context aware
Classification: Unclassified
OS: Linux
Reporter: kde@opensource.sf-tec.de
Hardware: openSUSE RPMs
Status: NEW
Component: code completion
Product: kdevelop
First: if I select e.g. static_cast from the code completion list it completes
as "static_cast". It really should complete to "static_cast<>()" with the
cursor between the angle brackets.
But the real point: take this code:
QAbstractTableModel *tmodel = static_cast<…>
This should autocomplete to "static_cast<QAbstractTableModel *>()" as it's more
or less clear where the cast goes to (at least if the cast is a rvalue). Of
course it may happen that the the real value to be assigned would be
static_cast<strange*>(foo)->model(), so not autocompleting the type may be a
good choice. But in that case the type of the lvalue should be the first match
in the autocomplete list.
Reproducible: Always
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic