[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevplatform/language/duchain
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2009-12-06 2:54:53
Message-ID: 1260068093.700115.27687.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1059199 by zwabel:
Also assign the 'Class' code-model item type if the declaration is based on \
ClassDeclaration, even if it does not have a type assigned. This makes \
class-quickopen work when the duchain processing is done only partially.
M +2 -1 declaration.cpp
--- trunk/extragear/sdk/kdevplatform/language/duchain/declaration.cpp \
#1059198:1059199 @@ -47,6 +47,7 @@
#include "specializationstore.h"
#include "types/typeutils.h"
#include "types/typealiastype.h"
+#include "classdeclaration.h"
using namespace KTextEditor;
@@ -616,7 +617,7 @@
kind = CodeModelItem::Function;
}
- if(decl->kind() == Declaration::Type && decl->type<StructureType>())
+ if(decl->kind() == Declaration::Type && (decl->type<StructureType>() || \
dynamic_cast<ClassDeclaration*>(decl))) kind = CodeModelItem::Class;
if(kind == CodeModelItem::Unknown && decl->kind() == Declaration::Instance)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic