[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2009-11-15 23:43:49
Message-ID: 1258328629.154843.18415.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1049838 by zwabel:
Add a command-line utility called 'duchainify'.
This utility allows specifying a directory, and the duchain will be built for the \
complete recursive content of that directory using the specific language supports. \
Thread-count, duchain-features, verbosity and more can be specified through the \
command-line.
This utility can be used to profile and debug duchain building, and as basis for \
possible other applications that might want to use the duchain through command-line.
M +2 -0 language/duchain/duchain.cpp
M +2 -0 util/CMakeLists.txt
A util/duchainify (directory)
--- trunk/KDE/kdevplatform/language/duchain/duchain.cpp #1049837:1049838
@@ -1617,8 +1617,10 @@
}
void DUChain::updateContextForUrl(const IndexedString& document, \
TopDUContext::Features minFeatures, QObject* notifyReady) const { + \
DUChainReadLocker lock( DUChain::lock() ); TopDUContext* standardContext = \
DUChainUtils::standardContextForUrl(document.toUrl()); if(standardContext && \
standardContext->parsingEnvironmentFile() && \
!standardContext->parsingEnvironmentFile()->needsUpdate() && \
standardContext->parsingEnvironmentFile()->featuresSatisfied(minFeatures)) { + \
lock.unlock(); if(notifyReady)
QMetaObject::invokeMethod(notifyReady, "updateReady", Qt::DirectConnection, \
Q_ARG(KDevelop::IndexedString, document), Q_ARG(KDevelop::ReferencedTopDUContext, \
ReferencedTopDUContext(standardContext))); }else{
--- trunk/KDE/kdevplatform/util/CMakeLists.txt #1049837:1049838
@@ -17,6 +17,8 @@
runoptions.ui
)
+add_subdirectory(duchainify)
+
add_subdirectory(tests)
kde4_add_ui_files(kdevplatformutil_LIB_SRCS ${kdevplatformutil_LIB_US})
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic