[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/sdk/kdevplatform/language/duchain
From: Niko Sams <niko.sams () gmail ! com>
Date: 2010-02-17 0:45:32
Message-ID: 1266367532.408073.21193.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1091551 by nsams:
Store an additional flag for class members
M +2 -1 codemodel.h
M +3 -0 declaration.cpp
--- trunk/extragear/sdk/kdevplatform/language/duchain/codemodel.h #1091550:1091551
@@ -40,7 +40,8 @@
Variable = 2,
Class = 4,
ForwardDeclaration = 8,
- Namespace = 16
+ Namespace = 16,
+ ClassMember = 32
};
IndexedQualifiedIdentifier id;
uint referenceCount;
--- trunk/extragear/sdk/kdevplatform/language/duchain/declaration.cpp #1091550:1091551
@@ -634,6 +634,9 @@
if(decl->isForwardDeclaration())
kind = (CodeModelItem::Kind)(kind | CodeModelItem::ForwardDeclaration);
+ if ( decl->context() && decl->context()->type() == DUContext::Class )
+ kind = (CodeModelItem::Kind)(kind | CodeModelItem::ClassMember);
+
return kind;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic