[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 110133] New: Autocompletion doesn't detect members of nested structs and unions that are unname
From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de
Date: 2005-08-03 21:34:46
Message-ID: 20050803233445.110133.trane () ecf ! utoronto ! ca
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=110133
Summary: Autocompletion doesn't detect members of nested structs
and unions that are unnamed
Product: kdevelop
Version: unspecified
Platform: Fedora RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kdevelop-bugs kdevelop org
ReportedBy: trane ecf utoronto ca
Version: KDevelop C/C++ 3.2.0 (using KDE KDE 3.4.0)
Installed from: Fedora RPMs
Compiler: g++ (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8) Distributed with Fedora \
Core 4 (2.6.11-1.1369_FC4)
OS: Linux
Here are several examples that illustrate this:
/* EXAMPLE #1 */
class MyClass {
public:
struct { // unnamed nested struct
int a; float b;
};
} example1;
void func1() {
example1. // Autocompletion doesn't list anything! Members 'a' and 'b' should be \
listed. example1.a = 10; // OK
example1.b = 3.14159; // OK
cout << example1.a << ", " << example1.b << endl; // OK, works fine.
}
/* EXAMPLE #2 */
class MyClass2 {
public:
union { // unnamed nested union
int a; float b;
};
} example2;
void func2() {
example2. // Same thing. Nothing appears.
example2.a = 3; // OK
}
This could possibly be CTAGS inability to handle and reference unnamed \
classes/structs/unions or how KDevelop handles it. Autocompletion works when the \
nested struct/union is named and an instance is declared in the class.
On another note:
I would personally like to thank the authors for putting forth so much effort in \
providing these high-quality development tools and environments.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic