[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop
From: Stefan Martin Valouch <stefan () valouch ! de>
Date: 2009-08-20 20:22:02
Message-ID: 1250799722.083173.14441.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1013826 by valouch:
--warnings
Worked well for over a week, so shoul be safe.
M +2 -0 debuggers/gdb/gdb.cpp
M +1 -0 debuggers/gdb/memviewdlg.cpp
M +4 -2 debuggers/valgrind/valgrindmodel.cpp
M +1 -0 documentation/qthelp/qthelpplugin.cpp
M +0 -1 formatters/astyle_formatter.cpp
M +1 -0 formatters/astyle_preferences.cpp
M +2 -0 formatters/indent_plugin.cpp
M +2 -1 languages/cpp/codecompletion/item.cpp
M +5 -1 languages/cpp/codecompletion/missingincludemodel.cpp
M +1 -0 languages/cpp/codegen/codeassistant.cpp
M +6 -0 languages/cpp/cppduchain/builtinoperators.cpp
M +2 -0 languages/cpp/cppduchain/contextbuilder.cpp
M +2 -1 languages/cpp/cppduchain/dumpchain.cpp
M +6 -2 languages/cpp/cppduchain/expressionvisitor.cpp
M +1 -0 languages/cpp/cppduchain/sourcemanipulation.cpp
M +1 -1 languages/cpp/cppduchain/usebuilder.cpp
M +1 -0 languages/cpp/parser/codegenerator.cpp
M +1 -0 languages/cpp/parser/parser.h
M +1 -0 languages/cpp/veritas/uutconstructor.cpp
M +1 -0 projectmanagers/cmake/cmakecodecompletionmodel.cpp
M +1 -0 projectmanagers/cmake/cmakenavigationwidget.cpp
M +10 -0 projectmanagers/cmake/parser/cmakeast.cpp
M +2 -0 projectmanagers/cmake/settings/cmakecachedelegate.cpp
M +1 -0 projectmanagers/custommake/custommaketreesynchronizer.cpp
M +4 -1 tools/coverage/covoutputmodel.cpp
M +1 -1 tools/coverage/tests/pluginstub.h
M +7 -7 tools/coverage/tests/viewstub.h
M +2 -0 xtest/qtest/qtestmodelitems.cpp
--- trunk/KDE/kdevelop/debuggers/gdb/gdb.cpp #1013825:1013826
@@ -352,6 +352,8 @@
void GDB::processFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
+ Q_UNUSED(exitCode);
+ Q_UNUSED(exitStatus);
kDebug(9012) << "GDB FINISHED\n";
/* FIXME: return the status? */
emit gdbExited();
--- trunk/KDE/kdevelop/debuggers/gdb/memviewdlg.cpp #1013825:1013826
@@ -476,6 +476,7 @@
void ViewerWidget::slotStateChanged(DBGStateFlags oldState, DBGStateFlags \
newState) {
+ Q_UNUSED(oldState);
for(int i = 0; i < memoryViews_.size(); ++i)
{
memoryViews_[i]->debuggerStateChanged(newState);
--- trunk/KDE/kdevelop/debuggers/valgrind/valgrindmodel.cpp #1013825:1013826
@@ -291,11 +291,12 @@
case Source:
if (ValgrindFrame* f = dynamic_cast<ValgrindFrame*>(item))
- if (!f->file.isEmpty())
+ if (!f->file.isEmpty()) {
if (f->line >= 0)
return f->file + ':' + f->line;
else
return f->file;
+ }
break;
case Object:
@@ -322,11 +323,12 @@
case Qt::ToolTipRole:
switch (index.column()) {
case Source:
- if (ValgrindFrame* f = dynamic_cast<ValgrindFrame*>(item))
+ if (ValgrindFrame* f = dynamic_cast<ValgrindFrame*>(item)) {
if (f->line >= 0)
return f->url().toLocalFile() + ':' + f->line;
else
return f->url().toLocalFile();
+ }
break;
}
break;
--- trunk/KDE/kdevelop/documentation/qthelp/qthelpplugin.cpp #1013825:1013826
@@ -219,6 +219,7 @@
: KDevelop::IPlugin(QtHelpFactory::componentData(), parent)
, m_engine(KStandardDirs::locateLocal("appdata", "qthelpcollection", \
QtHelpFactory::componentData())) {
+ Q_UNUSED(args);
QStringList qmakes;
KStandardDirs::findAllExe(qmakes, "qmake");
QString dirName;
--- trunk/KDE/kdevelop/formatters/astyle_formatter.cpp #1013825:1013826
@@ -114,7 +114,6 @@
QString AStyleFormatter::formatSource(const QString &text, const QString& \
leftContext, const QString& rightContext) {
QString useText = leftContext + text + rightContext;
- int startLine = 0;
// kDebug() << "left context:" << leftContext;
// kDebug() << "right context:" << rightContext;
--- trunk/KDE/kdevelop/formatters/astyle_preferences.cpp #1013825:1013826
@@ -212,6 +212,7 @@
void AStylePreferences::updatePreviewText(bool emitChangedSignal)
{
+ Q_UNUSED(emitChangedSignal);
QString text;
int id = tabWidget->currentIndex();
if(id == 0)
--- trunk/KDE/kdevelop/formatters/indent_plugin.cpp #1013825:1013826
@@ -74,6 +74,7 @@
QString IndentPlugin::highlightModeForMime(const KMimeType::Ptr &mime)
{
+ Q_UNUSED(mime);
return "C++";
}
@@ -146,6 +147,7 @@
KDevelop::SettingsWidget* IndentPlugin::editStyleWidget(const KMimeType::Ptr &mime)
{
+ Q_UNUSED(mime);
// return new IndentPreferences();
return 0;
}
--- trunk/KDE/kdevelop/languages/cpp/codecompletion/item.cpp #1013825:1013826
@@ -160,8 +160,9 @@
if (type) {
if (type->modifiers() & AbstractType::ConstModifier)
p |= CodeCompletionModel::Const;
- if (type->modifiers() & AbstractType::VolatileModifier)
+ if (type->modifiers() & AbstractType::VolatileModifier) {
;//TODO
+ }
switch (dec->abstractType()->whichType()) {
case AbstractType::TypeIntegral:
--- trunk/KDE/kdevelop/languages/cpp/codecompletion/missingincludemodel.cpp \
#1013825:1013826 @@ -104,6 +104,10 @@
}
void MissingIncludeCompletionModel::completionInvokedInternal(KTextEditor::View* \
view, const KTextEditor::Range& range, \
KTextEditor::CodeCompletionModel::InvocationType invocationType, const KUrl& url) { + \
Q_UNUSED(view); + Q_UNUSED(range);
+ Q_UNUSED(invocationType);
+ Q_UNUSED(url);
QMutexLocker lock(&worker()->mutex);
// CodeCompletionModel::completionInvokedInternal(view, range, invocationType, \
url); @@ -159,7 +163,7 @@
}
void MissingIncludeCompletionWorker::doSpecialProcessing(unsigned int data) {
-
+ Q_UNUSED(data);
QMutexLocker localLock(&mutex);
kDebug() << context.data() << aborting() << localExpression << prefixExpression;
--- trunk/KDE/kdevelop/languages/cpp/codegen/codeassistant.cpp #1013825:1013826
@@ -90,6 +90,7 @@
}
void StaticCodeAssistant::startAssistant(KSharedPtr< KDevelop::IAssistant > \
assistant, bool manage) { + Q_UNUSED(manage);
if(m_activeAssistant)
m_activeAssistant->doHide();
--- trunk/KDE/kdevelop/languages/cpp/cppduchain/builtinoperators.cpp #1013825:1013826
@@ -135,10 +135,16 @@
template<>
void ConstantBinaryExpressionEvaluator<double>::evaluateSpecialTokens( int \
tokenKind, ConstantIntegralType* left, ConstantIntegralType* right ) { + \
Q_UNUSED(tokenKind); + Q_UNUSED(left);
+ Q_UNUSED(right);
}
template<>
void ConstantBinaryExpressionEvaluator<float>::evaluateSpecialTokens( int tokenKind, \
ConstantIntegralType* left, ConstantIntegralType* right ) { + Q_UNUSED(tokenKind);
+ Q_UNUSED(left);
+ Q_UNUSED(right);
}
--- trunk/KDE/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp #1013825:1013826
@@ -572,6 +572,8 @@
void ContextBuilder::classContextOpened(ClassSpecifierAST *node, DUContext* context)
{
+ Q_UNUSED(node);
+ Q_UNUSED(context);
}
void ContextBuilder::visitClassSpecifier (ClassSpecifierAST *node)
--- trunk/KDE/kdevelop/languages/cpp/cppduchain/dumpchain.cpp #1013825:1013826
@@ -65,7 +65,7 @@
for( int a = 0; a < indent; a++ )
indentation += "| ";
- if (node)
+ if (node) {
if (m_editor) {
QString nodeText;
for( std::size_t a = node->start_token; a != node->end_token; a++ ) {
@@ -83,6 +83,7 @@
} else
kDebug(9007) << indentation << "\\" << names[node->kind]
<< "[" << node->start_token << "," << node->end_token << "]" << endl;
+ }
++indent;
DefaultVisitor::visit(node);
--- trunk/KDE/kdevelop/languages/cpp/cppduchain/expressionvisitor.cpp \
#1013825:1013826 @@ -835,11 +835,15 @@
};
template<>
-void ConstantUnaryExpressionEvaluator<double>::evaluateSpecialTokens( int tokenKind, \
ConstantIntegralType* left ){ +void \
ConstantUnaryExpressionEvaluator<double>::evaluateSpecialTokens( int tokenKind, \
ConstantIntegralType* left ) { + Q_UNUSED(tokenKind);
+ Q_UNUSED(left);
}
template<>
-void ConstantUnaryExpressionEvaluator<float>::evaluateSpecialTokens( int tokenKind, \
ConstantIntegralType* left ){ +void \
ConstantUnaryExpressionEvaluator<float>::evaluateSpecialTokens( int tokenKind, \
ConstantIntegralType* left ) { + Q_UNUSED(tokenKind);
+ Q_UNUSED(left);
}
QString toString(AbstractType::Ptr t) {
--- trunk/KDE/kdevelop/languages/cpp/cppduchain/sourcemanipulation.cpp \
#1013825:1013826 @@ -311,6 +311,7 @@
}
SourceCodeInsertion::InsertionPoint \
SourceCodeInsertion::findInsertionPoint(KDevelop::Declaration::AccessPolicy policy, \
InsertionKind kind) const { + Q_UNUSED(policy);
InsertionPoint ret;
ret.line = end().line;
--- trunk/KDE/kdevelop/languages/cpp/cppduchain/usebuilder.cpp #1013825:1013826
@@ -134,7 +134,7 @@
private:
virtual void usingDeclaration( AST* node, size_t start_token, size_t end_token, \
const KDevelop::DeclarationPointer& decl ) {
-
+ Q_UNUSED(node);
m_builder->newUse(m_builder->editor()->findRange(start_token, end_token), \
decl.data()); }
--- trunk/KDE/kdevelop/languages/cpp/parser/codegenerator.cpp #1013825:1013826
@@ -613,6 +613,7 @@
void CodeGenerator::visitPtrToMember(PtrToMemberAST* node)
{
// TODO fix AST
+ Q_UNUSED(node);
printToken(Token_scope);
m_output << "*";
}
--- trunk/KDE/kdevelop/languages/cpp/parser/parser.h #1013825:1013826
@@ -32,6 +32,7 @@
#include <hash_map>
using namespace stdext;
#else
+// use unordered_map, hash_map is marked as deprecated on g++/4.4
#include <ext/hash_map>
using namespace __gnu_cxx;
#endif
--- trunk/KDE/kdevelop/languages/cpp/veritas/uutconstructor.cpp #1013825:1013826
@@ -99,6 +99,7 @@
void UUTConstructor::printUseInfo(int useId, const Use* use, DUContext* ctx)
{
+ Q_UNUSED(useId);
Declaration* decl = declarationForUse(use,ctx);
if (!decl) return;
kDebug() << "decl " << decl->toString();
--- trunk/KDE/kdevelop/projectmanagers/cmake/cmakecodecompletionmodel.cpp \
#1013825:1013826 @@ -47,6 +47,7 @@
void CMakeCodeCompletionModel::completionInvoked(View* view, const Range& range, \
InvocationType invocationType) {
+ Q_UNUSED(invocationType);
m_declarations.clear();
DUChainReadLocker lock(DUChain::lock());
KTextEditor::Document* d=view->document();
--- trunk/KDE/kdevelop/projectmanagers/cmake/cmakenavigationwidget.cpp \
#1013825:1013826 @@ -33,6 +33,7 @@
virtual QString name() const { return mName; }
virtual QString html(bool shorten = false)
{
+ Q_UNUSED(shorten);
return mDescription;
}
--- trunk/KDE/kdevelop/projectmanagers/cmake/parser/cmakeast.cpp #1013825:1013826
@@ -1653,6 +1653,7 @@
bool FltkWrapUiAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -1751,6 +1752,7 @@
bool GetDirPropertyAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -1998,6 +2000,7 @@
bool IncludeExternalMsProjectAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -2037,6 +2040,7 @@
bool InstallAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -2688,6 +2692,7 @@
bool QtWrapCppAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -2705,6 +2710,7 @@
bool QtWrapUiAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -3621,6 +3627,7 @@
bool VtkMakeInstantiatorAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -3638,6 +3645,7 @@
bool VtkWrapJavaAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -3655,6 +3663,7 @@
bool VtkWrapPythonAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
@@ -3672,6 +3681,7 @@
bool VtkWrapTclAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
+ Q_UNUSED(func);
return false;
}
--- trunk/KDE/kdevelop/projectmanagers/cmake/settings/cmakecachedelegate.cpp \
#1013825:1013826 @@ -153,6 +153,8 @@
void CMakeCacheDelegate::closingEditor(QWidget * editor, \
QAbstractItemDelegate::EndEditHint hint) {
+ Q_UNUSED(editor);
+ Q_UNUSED(hint);
kDebug() << "closing...";
}
--- trunk/KDE/kdevelop/projectmanagers/custommake/custommaketreesynchronizer.cpp \
#1013825:1013826 @@ -187,6 +187,7 @@
void CustomMakeTreeSynchronizer::parseDirectoryRecursively( \
KDevelop::ProjectFolderItem* dir, KDevelop::IProjectFileManager* manager )
{
+ Q_UNUSED(manager);
QQueue< QList<KDevelop::ProjectFolderItem*> > workQueue;
QList<KDevelop::ProjectFolderItem*> initial;
initial.append( dir );
--- trunk/KDE/kdevelop/tools/coverage/covoutputmodel.cpp #1013825:1013826
@@ -57,10 +57,13 @@
}
void CovOutputModel::activate(const QModelIndex &idx)
-{}
+{
+ Q_UNUSED(idx);
+}
void CovOutputModel::appendOutputs(const QStringList &lines)
{
+ Q_UNUSED(lines);
// stdout gets the lcov output, which contains the useful stuff
// so do nothing here. stderr gets status messages
}
--- trunk/KDE/kdevelop/tools/coverage/tests/pluginstub.h #1013825:1013826
@@ -36,7 +36,7 @@
virtual void unload() { Q_ASSERT(0); }
KIconLoader* iconLoader() const { Q_ASSERT(0); return 0; }
KDevelop::ICore *core() const { Q_ASSERT(0); return 0; }
- virtual KDevelop::ContextMenuExtension contextMenuExtension( KDevelop::Context* \
context ) { return KDevelop::ContextMenuExtension(); } + virtual \
KDevelop::ContextMenuExtension contextMenuExtension( KDevelop::Context* context ) { \
Q_UNUSED(context); return KDevelop::ContextMenuExtension(); }
/*public Q_SLOTS:
void newIconLoader() const;
--- trunk/KDE/kdevelop/tools/coverage/tests/viewstub.h #1013825:1013826
@@ -69,15 +69,15 @@
// EditOverwrite = 1 /**< Overwrite mode. Characters will be replaced. */
// };
virtual enum EditMode viewEditMode() const { return EditOverwrite; }
- virtual void setContextMenu(QMenu *menu) {}
+ virtual void setContextMenu(QMenu *menu) { Q_UNUSED(menu); }
virtual QMenu *contextMenu() const { return 0; }
- virtual QMenu* defaultContextMenu(QMenu* menu = 0L) const { return 0; }
- virtual bool setCursorPosition(KTextEditor::Cursor position) { return false; }
+ virtual QMenu* defaultContextMenu(QMenu* menu = 0L) const { Q_UNUSED(menu); \
return 0; } + virtual bool setCursorPosition(KTextEditor::Cursor position) { \
Q_UNUSED(position); return false; }
virtual KTextEditor::Cursor cursorPosition() const { return \
KTextEditor::Cursor(); }
virtual KTextEditor::Cursor cursorPositionVirtual() const { return \
KTextEditor::Cursor(); }
- virtual QPoint cursorToCoordinate(const KTextEditor::Cursor& cursor) const { \
return QPoint(); } + virtual QPoint cursorToCoordinate(const KTextEditor::Cursor& \
cursor) const { Q_UNUSED(cursor); return QPoint(); } virtual QPoint \
cursorPositionCoordinates() const { return QPoint(); }
- virtual bool setSelection(const KTextEditor::Range &range) { return true; }
+ virtual bool setSelection(const KTextEditor::Range &range) { Q_UNUSED(range); \
return true; } /* virtual bool setSelection(const Cursor &position,
int length,
bool wrap = true);*/
@@ -89,11 +89,11 @@
virtual QString selectionText() const { return ""; }
virtual bool removeSelection() { return true; }
virtual bool removeSelectionText() { return true; }
- virtual bool setBlockSelection(bool on) { return true; }
+ virtual bool setBlockSelection(bool on) { Q_UNUSED(on); return true; }
virtual bool blockSelection() const { return true; }
virtual bool mouseTrackingEnabled() const { return true; }
- virtual bool setMouseTrackingEnabled(bool b) { return true; }
+ virtual bool setMouseTrackingEnabled(bool b) { Q_UNUSED(b); return true; }
#if 0
Q_SIGNALS:
--- trunk/KDE/kdevelop/xtest/qtest/qtestmodelitems.cpp #1013825:1013826
@@ -70,6 +70,7 @@
: Test(name, parent),
m_executable(0)
{
+ Q_UNUSED(exe);
setSelectionToggle(true);
setVerboseToggle(true);
}
@@ -78,6 +79,7 @@
: Test(name, parent),
m_executable(0)
{
+ Q_UNUSED(exe);
setSelectionToggle(true);
setVerboseToggle(true);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic