Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Hunger
qt-creator
Commits
d3f97579
Commit
d3f97579
authored
Jul 13, 2009
by
Alessandro Portale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing some unused semicolons after Q_UNUSED
There were both variants, with and without extra semicolon.
parent
f9ed6f18
Changes
81
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
81 changed files
with
298 additions
and
298 deletions
+298
-298
src/libs/extensionsystem/patchedpluginloader.cpp
src/libs/extensionsystem/patchedpluginloader.cpp
+3
-3
src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp
...system/test/manual/pluginview/plugins/plugin2/plugin2.cpp
+1
-1
src/libs/qtconcurrent/multitask.h
src/libs/qtconcurrent/multitask.h
+4
-4
src/plugins/bineditor/bineditorplugin.cpp
src/plugins/bineditor/bineditorplugin.cpp
+2
-2
src/plugins/cmakeprojectmanager/cmakeproject.cpp
src/plugins/cmakeprojectmanager/cmakeproject.cpp
+4
-4
src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
+11
-11
src/plugins/coreplugin/coreplugin.cpp
src/plugins/coreplugin/coreplugin.cpp
+1
-1
src/plugins/coreplugin/dialogs/shortcutsettings.cpp
src/plugins/coreplugin/dialogs/shortcutsettings.cpp
+1
-1
src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
+2
-2
src/plugins/coreplugin/fancytabwidget.cpp
src/plugins/coreplugin/fancytabwidget.cpp
+2
-2
src/plugins/coreplugin/mainwindow.cpp
src/plugins/coreplugin/mainwindow.cpp
+2
-2
src/plugins/coreplugin/styleanimator.cpp
src/plugins/coreplugin/styleanimator.cpp
+2
-2
src/plugins/cpaster/cpasterplugin.cpp
src/plugins/cpaster/cpasterplugin.cpp
+2
-2
src/plugins/cpptools/cppcurrentdocumentfilter.cpp
src/plugins/cpptools/cppcurrentdocumentfilter.cpp
+1
-1
src/plugins/cpptools/cppquickopenfilter.cpp
src/plugins/cpptools/cppquickopenfilter.cpp
+1
-1
src/plugins/cpptools/cpptoolsplugin.cpp
src/plugins/cpptools/cpptoolsplugin.cpp
+2
-2
src/plugins/debugger/debuggeroutputwindow.cpp
src/plugins/debugger/debuggeroutputwindow.cpp
+1
-1
src/plugins/debugger/debuggerrunner.cpp
src/plugins/debugger/debuggerrunner.cpp
+1
-1
src/plugins/debugger/debuggertooltip.cpp
src/plugins/debugger/debuggertooltip.cpp
+1
-1
src/plugins/debugger/disassemblerhandler.cpp
src/plugins/debugger/disassemblerhandler.cpp
+2
-2
src/plugins/debugger/gdb/gdbengine.cpp
src/plugins/debugger/gdb/gdbengine.cpp
+5
-5
src/plugins/debugger/script/scriptengine.cpp
src/plugins/debugger/script/scriptengine.cpp
+28
-28
src/plugins/debugger/tcf/tcfengine.cpp
src/plugins/debugger/tcf/tcfengine.cpp
+10
-10
src/plugins/debugger/watchhandler.cpp
src/plugins/debugger/watchhandler.cpp
+3
-3
src/plugins/debugger/watchwindow.cpp
src/plugins/debugger/watchwindow.cpp
+1
-1
src/plugins/designer/formeditorplugin.cpp
src/plugins/designer/formeditorplugin.cpp
+2
-2
src/plugins/duieditor/parser/qmljsprettypretty.cpp
src/plugins/duieditor/parser/qmljsprettypretty.cpp
+100
-100
src/plugins/find/currentdocumentfind.cpp
src/plugins/find/currentdocumentfind.cpp
+1
-1
src/plugins/find/ifindfilter.h
src/plugins/find/ifindfilter.h
+2
-2
src/plugins/find/searchresulttreemodel.cpp
src/plugins/find/searchresulttreemodel.cpp
+4
-4
src/plugins/find/searchresultwindow.cpp
src/plugins/find/searchresultwindow.cpp
+1
-1
src/plugins/genericprojectmanager/genericprojectnodes.cpp
src/plugins/genericprojectmanager/genericprojectnodes.cpp
+9
-9
src/plugins/git/gitplugin.cpp
src/plugins/git/gitplugin.cpp
+2
-2
src/plugins/help/centralwidget.cpp
src/plugins/help/centralwidget.cpp
+3
-3
src/plugins/help/helpfindsupport.cpp
src/plugins/help/helpfindsupport.cpp
+1
-1
src/plugins/help/helpindexfilter.cpp
src/plugins/help/helpindexfilter.cpp
+1
-1
src/plugins/help/helpplugin.cpp
src/plugins/help/helpplugin.cpp
+2
-2
src/plugins/perforce/perforceplugin.cpp
src/plugins/perforce/perforceplugin.cpp
+2
-2
src/plugins/projectexplorer/allprojectsfilter.cpp
src/plugins/projectexplorer/allprojectsfilter.cpp
+1
-1
src/plugins/projectexplorer/applicationrunconfiguration.cpp
src/plugins/projectexplorer/applicationrunconfiguration.cpp
+1
-1
src/plugins/projectexplorer/buildparserfactory.cpp
src/plugins/projectexplorer/buildparserfactory.cpp
+2
-2
src/plugins/projectexplorer/currentprojectfilter.cpp
src/plugins/projectexplorer/currentprojectfilter.cpp
+1
-1
src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
...gins/projectexplorer/customexecutablerunconfiguration.cpp
+2
-2
src/plugins/projectexplorer/environmenteditmodel.cpp
src/plugins/projectexplorer/environmenteditmodel.cpp
+3
-3
src/plugins/projectexplorer/msvcparser.cpp
src/plugins/projectexplorer/msvcparser.cpp
+1
-1
src/plugins/projectexplorer/processstep.cpp
src/plugins/projectexplorer/processstep.cpp
+2
-2
src/plugins/projectexplorer/projectexplorer.cpp
src/plugins/projectexplorer/projectexplorer.cpp
+3
-3
src/plugins/projectexplorer/projectmodels.cpp
src/plugins/projectexplorer/projectmodels.cpp
+3
-3
src/plugins/projectexplorer/sessiondialog.cpp
src/plugins/projectexplorer/sessiondialog.cpp
+1
-1
src/plugins/projectexplorer/taskwindow.cpp
src/plugins/projectexplorer/taskwindow.cpp
+2
-2
src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
src/plugins/qmlprojectmanager/qmlprojectnodes.cpp
+8
-8
src/plugins/qt4projectmanager/deployhelper.cpp
src/plugins/qt4projectmanager/deployhelper.cpp
+1
-1
src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
src/plugins/qt4projectmanager/embeddedpropertiespage.cpp
+1
-1
src/plugins/qt4projectmanager/makestep.cpp
src/plugins/qt4projectmanager/makestep.cpp
+2
-2
src/plugins/qt4projectmanager/profilereader.cpp
src/plugins/qt4projectmanager/profilereader.cpp
+2
-2
src/plugins/qt4projectmanager/qmakestep.cpp
src/plugins/qt4projectmanager/qmakestep.cpp
+2
-2
src/plugins/qt4projectmanager/qt4nodes.cpp
src/plugins/qt4projectmanager/qt4nodes.cpp
+5
-5
src/plugins/qt4projectmanager/qt4project.cpp
src/plugins/qt4projectmanager/qt4project.cpp
+1
-1
src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
src/plugins/qt4projectmanager/qt4projectmanagerplugin.cpp
+1
-1
src/plugins/qt4projectmanager/wizards/librarywizard.cpp
src/plugins/qt4projectmanager/wizards/librarywizard.cpp
+1
-1
src/plugins/qtestlib/qtestlibplugin.cpp
src/plugins/qtestlib/qtestlibplugin.cpp
+2
-2
src/plugins/quickopen/filesystemfilter.cpp
src/plugins/quickopen/filesystemfilter.cpp
+1
-1
src/plugins/quickopen/iquickopenfilter.cpp
src/plugins/quickopen/iquickopenfilter.cpp
+1
-1
src/plugins/quickopen/opendocumentsfilter.cpp
src/plugins/quickopen/opendocumentsfilter.cpp
+1
-1
src/plugins/quickopen/quickopenfiltersfilter.cpp
src/plugins/quickopen/quickopenfiltersfilter.cpp
+1
-1
src/plugins/regexp/regexpplugin.cpp
src/plugins/regexp/regexpplugin.cpp
+1
-1
src/plugins/resourceeditor/resourceeditorplugin.cpp
src/plugins/resourceeditor/resourceeditorplugin.cpp
+1
-1
src/plugins/resourceeditor/resourcewizard.cpp
src/plugins/resourceeditor/resourcewizard.cpp
+1
-1
src/plugins/snippets/snippetsplugin.cpp
src/plugins/snippets/snippetsplugin.cpp
+1
-1
src/plugins/snippets/snippetswindow.cpp
src/plugins/snippets/snippetswindow.cpp
+1
-1
src/plugins/subversion/subversionplugin.cpp
src/plugins/subversion/subversionplugin.cpp
+1
-1
src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/basetexteditor.cpp
+3
-3
src/plugins/texteditor/completionwidget.cpp
src/plugins/texteditor/completionwidget.cpp
+1
-1
src/plugins/texteditor/texteditorplugin.cpp
src/plugins/texteditor/texteditorplugin.cpp
+1
-1
src/plugins/vcsbase/vcsbaseplugin.cpp
src/plugins/vcsbase/vcsbaseplugin.cpp
+2
-2
src/shared/cplusplus/CheckDeclaration.cpp
src/shared/cplusplus/CheckDeclaration.cpp
+1
-1
src/shared/cplusplus/CheckExpression.cpp
src/shared/cplusplus/CheckExpression.cpp
+4
-4
src/shared/proparser/profileevaluator.cpp
src/shared/proparser/profileevaluator.cpp
+1
-1
src/shared/qrceditor/resourcefile.cpp
src/shared/qrceditor/resourcefile.cpp
+1
-1
src/shared/qrceditor/resourceview.cpp
src/shared/qrceditor/resourceview.cpp
+2
-2
src/tools/qdebugger/mainwindow.cpp
src/tools/qdebugger/mainwindow.cpp
+1
-1
No files found.
src/libs/extensionsystem/patchedpluginloader.cpp
View file @
d3f97579
...
...
@@ -422,7 +422,7 @@ PatchedLibraryPrivate::~PatchedLibraryPrivate()
if
(
map
)
{
PatchedLibraryPrivate
*
that
=
map
->
take
(
fileName
);
Q_ASSERT
(
this
==
that
);
Q_UNUSED
(
that
)
;
Q_UNUSED
(
that
)
}
}
...
...
@@ -720,7 +720,7 @@ bool PatchedLibraryPrivate::isPlugin(QSettings *settings)
return
pluginState
==
IsAPlugin
;
#else
Q_UNUSED
(
settings
)
;
Q_UNUSED
(
settings
)
return
pluginState
==
MightBeAPlugin
;
#endif
}
...
...
@@ -813,7 +813,7 @@ void PatchedPluginLoader::setFileName(const QString &fileName)
qWarning
(
"Cannot load %s into a statically linked Qt library."
,
(
const
char
*
)
QFile
::
encodeName
(
fileName
));
}
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
fileName
)
#endif
}
...
...
src/libs/extensionsystem/test/manual/pluginview/plugins/plugin2/plugin2.cpp
View file @
d3f97579
...
...
@@ -43,7 +43,7 @@ MyPlugin2::MyPlugin2()
bool
MyPlugin2
::
initialize
(
const
QStringList
&
/*arguments*/
,
QString
*
errorString
)
{
Q_UNUSED
(
errorString
)
;
Q_UNUSED
(
errorString
)
initializeCalled
=
true
;
QObject
*
obj
=
new
QObject
(
this
);
obj
->
setObjectName
(
"MyPlugin2"
);
...
...
src/libs/qtconcurrent/multitask.h
View file @
d3f97579
...
...
@@ -126,20 +126,20 @@ protected:
void
setProgressRange
(
int
min
,
int
max
)
{
Q_UNUSED
(
min
)
;
Q_UNUSED
(
max
)
;
Q_UNUSED
(
min
)
Q_UNUSED
(
max
)
updateProgress
();
}
void
setProgressValue
(
int
value
)
{
Q_UNUSED
(
value
)
;
Q_UNUSED
(
value
)
updateProgress
();
}
void
setProgressText
(
QString
value
)
{
Q_UNUSED
(
value
)
;
Q_UNUSED
(
value
)
updateProgressText
();
}
private:
...
...
src/plugins/bineditor/bineditorplugin.cpp
View file @
d3f97579
...
...
@@ -415,8 +415,8 @@ void BinEditorPlugin::initializeEditor(BinEditor *editor)
bool
BinEditorPlugin
::
initialize
(
const
QStringList
&
arguments
,
QString
*
errorMessage
)
{
Q_UNUSED
(
arguments
)
;
Q_UNUSED
(
errorMessage
)
;
Q_UNUSED
(
arguments
)
Q_UNUSED
(
errorMessage
)
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
if
(
!
core
->
mimeDatabase
()
->
addMimeTypes
(
QLatin1String
(
":/bineditor/BinEditor.mimetypes.xml"
),
errorMessage
))
...
...
src/plugins/cmakeprojectmanager/cmakeproject.cpp
View file @
d3f97579
...
...
@@ -306,7 +306,7 @@ bool CMakeProject::parseCMakeLists()
QString
CMakeProject
::
buildParser
(
const
QString
&
buildConfiguration
)
const
{
Q_UNUSED
(
buildConfiguration
)
;
Q_UNUSED
(
buildConfiguration
)
// TODO this is actually slightly wrong, but do i care?
// this should call toolchain(buildConfiguration)
if
(
!
m_toolChain
)
...
...
@@ -547,7 +547,7 @@ ProjectExplorer::ProjectNode *CMakeProject::rootProjectNode() const
QStringList
CMakeProject
::
files
(
FilesMode
fileMode
)
const
{
Q_UNUSED
(
fileMode
)
;
Q_UNUSED
(
fileMode
)
return
m_files
;
}
...
...
@@ -664,7 +664,7 @@ bool CMakeFile::save(const QString &fileName)
{
// Once we have an texteditor open for this file, we probably do
// need to implement this, don't we.
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
fileName
)
return
false
;
}
...
...
@@ -706,7 +706,7 @@ bool CMakeFile::isSaveAsAllowed() const
void
CMakeFile
::
modified
(
ReloadBehavior
*
behavior
)
{
Q_UNUSED
(
behavior
)
;
Q_UNUSED
(
behavior
)
}
CMakeBuildSettingsWidget
::
CMakeBuildSettingsWidget
(
CMakeProject
*
project
)
...
...
src/plugins/cmakeprojectmanager/cmakeprojectnodes.cpp
View file @
d3f97579
...
...
@@ -50,37 +50,37 @@ QList<ProjectExplorer::ProjectNode::ProjectAction> CMakeProjectNode::supportedAc
bool
CMakeProjectNode
::
addSubProjects
(
const
QStringList
&
proFilePaths
)
{
Q_UNUSED
(
proFilePaths
)
;
Q_UNUSED
(
proFilePaths
)
return
false
;
}
bool
CMakeProjectNode
::
removeSubProjects
(
const
QStringList
&
proFilePaths
)
{
Q_UNUSED
(
proFilePaths
)
;
Q_UNUSED
(
proFilePaths
)
return
false
;
}
bool
CMakeProjectNode
::
addFiles
(
const
ProjectExplorer
::
FileType
fileType
,
const
QStringList
&
filePaths
,
QStringList
*
notAdded
)
{
Q_UNUSED
(
fileType
)
;
Q_UNUSED
(
filePaths
)
;
Q_UNUSED
(
notAdded
)
;
Q_UNUSED
(
fileType
)
Q_UNUSED
(
filePaths
)
Q_UNUSED
(
notAdded
)
return
false
;
}
// TODO: Maybe remove fileType, can be detected by project
bool
CMakeProjectNode
::
removeFiles
(
const
ProjectExplorer
::
FileType
fileType
,
const
QStringList
&
filePaths
,
QStringList
*
notRemoved
)
{
Q_UNUSED
(
fileType
)
;
Q_UNUSED
(
filePaths
)
;
Q_UNUSED
(
notRemoved
)
;
Q_UNUSED
(
fileType
)
Q_UNUSED
(
filePaths
)
Q_UNUSED
(
notRemoved
)
return
false
;
}
bool
CMakeProjectNode
::
renameFile
(
const
ProjectExplorer
::
FileType
fileType
,
const
QString
&
filePath
,
const
QString
&
newFilePath
)
{
Q_UNUSED
(
fileType
)
;
Q_UNUSED
(
filePath
)
;
Q_UNUSED
(
newFilePath
)
;
Q_UNUSED
(
fileType
)
Q_UNUSED
(
filePath
)
Q_UNUSED
(
newFilePath
)
return
false
;
}
src/plugins/coreplugin/coreplugin.cpp
View file @
d3f97579
...
...
@@ -65,7 +65,7 @@ CorePlugin::~CorePlugin()
bool
CorePlugin
::
initialize
(
const
QStringList
&
arguments
,
QString
*
errorMessage
)
{
Q_UNUSED
(
arguments
)
;
Q_UNUSED
(
arguments
)
const
bool
success
=
m_mainWindow
->
init
(
errorMessage
);
if
(
success
)
{
m_welcomeMode
=
new
WelcomeMode
;
...
...
src/plugins/coreplugin/dialogs/shortcutsettings.cpp
View file @
d3f97579
...
...
@@ -136,7 +136,7 @@ void ShortcutSettings::finish()
bool
ShortcutSettings
::
eventFilter
(
QObject
*
o
,
QEvent
*
e
)
{
Q_UNUSED
(
o
)
;
Q_UNUSED
(
o
)
if
(
e
->
type
()
==
QEvent
::
KeyPress
)
{
QKeyEvent
*
k
=
static_cast
<
QKeyEvent
*>
(
e
);
...
...
src/plugins/coreplugin/editormanager/openeditorsmodel.cpp
View file @
d3f97579
...
...
@@ -50,7 +50,7 @@ QByteArray OpenEditorsModel::Entry::kind() const
int
OpenEditorsModel
::
columnCount
(
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
return
2
;
}
...
...
@@ -239,7 +239,7 @@ void OpenEditorsModel::emitDataChanged(IEditor *editor)
QModelIndex
OpenEditorsModel
::
index
(
int
row
,
int
column
,
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
if
(
column
<
0
||
column
>
1
||
row
<
0
||
row
>=
m_editors
.
count
())
return
QModelIndex
();
return
createIndex
(
row
,
column
);
...
...
src/plugins/coreplugin/fancytabwidget.cpp
View file @
d3f97579
...
...
@@ -142,7 +142,7 @@ void FancyTabBar::updateHover()
// Resets hover animation on mouse enter
void
FancyTabBar
::
enterEvent
(
QEvent
*
e
)
{
Q_UNUSED
(
e
)
;
Q_UNUSED
(
e
)
m_hoverRect
=
QRect
();
m_hoverIndex
=
-
1
;
}
...
...
@@ -150,7 +150,7 @@ void FancyTabBar::enterEvent(QEvent *e)
// Resets hover animation on mouse enter
void
FancyTabBar
::
leaveEvent
(
QEvent
*
e
)
{
Q_UNUSED
(
e
)
;
Q_UNUSED
(
e
)
if
(
m_hoverIndex
>=
0
)
{
m_hoverIndex
=
-
1
;
update
(
m_hoverRect
);
...
...
src/plugins/coreplugin/mainwindow.cpp
View file @
d3f97579
...
...
@@ -92,7 +92,7 @@
#include <signal.h>
extern "C" void handleSigInt(int sig)
{
Q_UNUSED(sig)
;
Q_UNUSED(sig)
Core::ICore::instance()->exit();
qDebug() << "SIGINT caught. Shutting down.";
}
...
...
@@ -284,7 +284,7 @@ MainWindow::~MainWindow()
bool
MainWindow
::
init
(
QString
*
errorMessage
)
{
Q_UNUSED
(
errorMessage
)
;
Q_UNUSED
(
errorMessage
)
ExtensionSystem
::
PluginManager
*
pm
=
ExtensionSystem
::
PluginManager
::
instance
();
pm
->
addObject
(
m_coreImpl
);
...
...
src/plugins/coreplugin/styleanimator.cpp
View file @
d3f97579
...
...
@@ -44,8 +44,8 @@ Animation * StyleAnimator::widgetAnimation(const QWidget *widget) const
void
Animation
::
paint
(
QPainter
*
painter
,
const
QStyleOption
*
option
)
{
Q_UNUSED
(
option
)
;
Q_UNUSED
(
painter
)
;
Q_UNUSED
(
option
)
Q_UNUSED
(
painter
)
}
void
Animation
::
drawBlendedImage
(
QPainter
*
painter
,
QRect
rect
,
float
alpha
)
...
...
src/plugins/cpaster/cpasterplugin.cpp
View file @
d3f97579
...
...
@@ -74,8 +74,8 @@ CodepasterPlugin::~CodepasterPlugin()
bool
CodepasterPlugin
::
initialize
(
const
QStringList
&
arguments
,
QString
*
error_message
)
{
Q_UNUSED
(
arguments
)
;
Q_UNUSED
(
error_message
)
;
Q_UNUSED
(
arguments
)
Q_UNUSED
(
error_message
)
// Create the globalcontext list to register actions accordingly
QList
<
int
>
globalcontext
;
...
...
src/plugins/cpptools/cppcurrentdocumentfilter.cpp
View file @
d3f97579
...
...
@@ -108,7 +108,7 @@ void CppCurrentDocumentFilter::accept(QuickOpen::FilterEntry selection) const
void
CppCurrentDocumentFilter
::
refresh
(
QFutureInterface
<
void
>
&
future
)
{
Q_UNUSED
(
future
)
;
Q_UNUSED
(
future
)
}
void
CppCurrentDocumentFilter
::
onDocumentUpdated
(
Document
::
Ptr
doc
)
...
...
src/plugins/cpptools/cppquickopenfilter.cpp
View file @
d3f97579
...
...
@@ -68,7 +68,7 @@ void CppQuickOpenFilter::onAboutToRemoveFiles(const QStringList &files)
void
CppQuickOpenFilter
::
refresh
(
QFutureInterface
<
void
>
&
future
)
{
Q_UNUSED
(
future
)
;
Q_UNUSED
(
future
)
}
static
bool
compareLexigraphically
(
const
QuickOpen
::
FilterEntry
&
a
,
...
...
src/plugins/cpptools/cpptoolsplugin.cpp
View file @
d3f97579
...
...
@@ -198,8 +198,8 @@ CppToolsPlugin::~CppToolsPlugin()
bool
CppToolsPlugin
::
initialize
(
const
QStringList
&
arguments
,
QString
*
error
)
{
Q_UNUSED
(
arguments
)
;
Q_UNUSED
(
error
)
;
Q_UNUSED
(
arguments
)
Q_UNUSED
(
error
)
Core
::
ICore
*
core
=
Core
::
ICore
::
instance
();
Core
::
ActionManager
*
am
=
core
->
actionManager
();
...
...
src/plugins/debugger/debuggeroutputwindow.cpp
View file @
d3f97579
...
...
@@ -350,7 +350,7 @@ void DebuggerOutputWindow::showOutput(int channel, const QString &output)
void
DebuggerOutputWindow
::
showInput
(
int
channel
,
const
QString
&
input
)
{
Q_UNUSED
(
channel
)
;
Q_UNUSED
(
channel
)
m_inputText
->
appendPlainText
(
input
);
QTextCursor
cursor
=
m_inputText
->
textCursor
();
cursor
.
movePosition
(
QTextCursor
::
End
);
...
...
src/plugins/debugger/debuggerrunner.cpp
View file @
d3f97579
...
...
@@ -97,7 +97,7 @@ RunControl *DebuggerRunner::run(RunConfigurationPtr runConfiguration,
QWidget
*
DebuggerRunner
::
configurationWidget
(
RunConfigurationPtr
runConfiguration
)
{
// NBS TODO: Add GDB-specific configuration widget
Q_UNUSED
(
runConfiguration
)
;
Q_UNUSED
(
runConfiguration
)
return
0
;
}
...
...
src/plugins/debugger/debuggertooltip.cpp
View file @
d3f97579
...
...
@@ -90,7 +90,7 @@ ToolTipWidget::ToolTipWidget(QWidget *parent)
bool
ToolTipWidget
::
eventFilter
(
QObject
*
ob
,
QEvent
*
ev
)
{
Q_UNUSED
(
ob
)
;
Q_UNUSED
(
ob
)
switch
(
ev
->
type
())
{
case
QEvent
::
ShortcutOverride
:
if
(
static_cast
<
QKeyEvent
*>
(
ev
)
->
key
()
==
Qt
::
Key_Escape
)
...
...
src/plugins/debugger/disassemblerhandler.cpp
View file @
d3f97579
...
...
@@ -91,13 +91,13 @@ DisassemblerModel::DisassemblerModel(QObject *parent)
int
DisassemblerModel
::
rowCount
(
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
return
m_lines
.
size
();
}
int
DisassemblerModel
::
columnCount
(
const
QModelIndex
&
parent
)
const
{
Q_UNUSED
(
parent
)
;
Q_UNUSED
(
parent
)
return
3
;
}
...
...
src/plugins/debugger/gdb/gdbengine.cpp
View file @
d3f97579
...
...
@@ -352,7 +352,7 @@ void GdbEngine::readUploadStandardError()
static void dump(const char *first, const char *middle, const QString & to)
{
QByteArray ba(first, middle - first);
Q_UNUSED(to)
;
Q_UNUSED(to)
// note that qDebug cuts off output after a certain size... (bug?)
qDebug("\n>>>>> %s\n%s\n====\n%s\n<<<<<\n",
qPrintable(currentTime()),
...
...
@@ -1641,7 +1641,7 @@ void GdbEngine::continueInferior()
void
GdbEngine
::
handleStart
(
const
GdbResultRecord
&
response
,
const
QVariant
&
)
{
#if defined(Q_OS_MAC)
Q_UNUSED
(
response
)
;
Q_UNUSED
(
response
)
#else
if
(
response
.
resultClass
==
GdbResultDone
)
{
// [some leading stdout here]
...
...
@@ -2689,7 +2689,7 @@ static QString tooltipINameForExpression(const QString &exp)
{
// FIXME: 'exp' can contain illegal characters
//return QLatin1String("tooltip.") + exp;
Q_UNUSED
(
exp
)
;
Q_UNUSED
(
exp
)
return
QLatin1String
(
"tooltip.x"
);
}
...
...
@@ -2865,7 +2865,7 @@ void GdbEngine::setUseDebuggingHelpers(const QVariant &on)
//qDebug() << "SWITCHING ON/OFF DUMPER DEBUGGING:" << on;
// FIXME: a bit too harsh, but otherwise the treeview sometimes look funny
//m_expandedINames.clear();
Q_UNUSED
(
on
)
;
Q_UNUSED
(
on
)
setTokenBarrier
();
updateLocals
();
}
...
...
@@ -2899,7 +2899,7 @@ static inline QString msgRetrievingWatchData(int pending)
void
GdbEngine
::
runDirectDebuggingHelper
(
const
WatchData
&
data
,
bool
dumpChildren
)
{
Q_UNUSED
(
dumpChildren
)
;
Q_UNUSED
(
dumpChildren
)
QString
type
=
data
.
type
;
QString
cmd
;
...
...
src/plugins/debugger/script/scriptengine.cpp
View file @
d3f97579
...
...
@@ -124,57 +124,57 @@ void ScriptAgent::contextPush()
void
ScriptAgent
::
exceptionCatch
(
qint64
scriptId
,
const
QScriptValue
&
exception
)
{
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
exception
)
;
Q_UNUSED
(
scriptId
)
Q_UNUSED
(
exception
)
SDEBUG
(
"ScriptAgent::exceptionCatch: "
<<
scriptId
<<
&
exception
);
}
void
ScriptAgent
::
exceptionThrow
(
qint64
scriptId
,
const
QScriptValue
&
exception
,
bool
hasHandler
)
{
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
exception
)
;
Q_UNUSED
(
hasHandler
)
;
Q_UNUSED
(
scriptId
)
Q_UNUSED
(
exception
)
Q_UNUSED
(
hasHandler
)
SDEBUG
(
"ScriptAgent::exceptionThrow: "
<<
scriptId
<<
&
exception
<<
hasHandler
);
}
void
ScriptAgent
::
functionEntry
(
qint64
scriptId
)
{
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
scriptId
)
q
->
maybeBreakNow
(
true
);
}
void
ScriptAgent
::
functionExit
(
qint64
scriptId
,
const
QScriptValue
&
returnValue
)
{
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
returnValue
)
;
Q_UNUSED
(
scriptId
)
Q_UNUSED
(
returnValue
)
SDEBUG
(
"ScriptAgent::functionExit: "
<<
scriptId
<<
&
returnValue
);
}
void
ScriptAgent
::
positionChange
(
qint64
scriptId
,
int
lineNumber
,
int
columnNumber
)
{
SDEBUG
(
"ScriptAgent::position: "
<<
lineNumber
);
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
lineNumber
)
;
Q_UNUSED
(
columnNumber
)
;
Q_UNUSED
(
scriptId
)
Q_UNUSED
(
lineNumber
)
Q_UNUSED
(
columnNumber
)
q
->
maybeBreakNow
(
false
);
}
void
ScriptAgent
::
scriptLoad
(
qint64
scriptId
,
const
QString
&
program
,
const
QString
&
fileName
,
int
baseLineNumber
)
{
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
program
)
;
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
baseLineNumber
)
;
Q_UNUSED
(
scriptId
)
Q_UNUSED
(
program
)
Q_UNUSED
(
fileName
)
Q_UNUSED
(
baseLineNumber
)
SDEBUG
(
"ScriptAgent::scriptLoad: "
<<
program
<<
fileName
<<
baseLineNumber
);
}
void
ScriptAgent
::
scriptUnload
(
qint64
scriptId
)
{
Q_UNUSED
(
scriptId
)
;
Q_UNUSED
(
scriptId
)
SDEBUG
(
"ScriptAgent::scriptUnload: "
<<
scriptId
);
}
...
...
@@ -201,7 +201,7 @@ ScriptEngine::~ScriptEngine()
void
ScriptEngine
::
executeDebuggerCommand
(
const
QString
&
command
)
{
Q_UNUSED
(
command
)
;
Q_UNUSED
(
command
)
XSDEBUG
(
"FIXME: ScriptEngine::executeDebuggerCommand()"
);
}
...
...
@@ -344,32 +344,32 @@ void ScriptEngine::nextIExec()
void
ScriptEngine
::
runToLineExec
(
const
QString
&
fileName
,
int
lineNumber
)
{
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
lineNumber
)
;
Q_UNUSED
(
fileName
)
Q_UNUSED
(
lineNumber
)
SDEBUG
(
"FIXME: ScriptEngine::runToLineExec()"
);
}
void
ScriptEngine
::
runToFunctionExec
(
const
QString
&
functionName
)
{
Q_UNUSED
(
functionName
)
;
Q_UNUSED
(
functionName
)
XSDEBUG
(
"FIXME: ScriptEngine::runToFunctionExec()"
);
}
void
ScriptEngine
::
jumpToLineExec
(
const
QString
&
fileName
,
int
lineNumber
)
{
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
lineNumber
)
;
Q_UNUSED
(
fileName
)
Q_UNUSED
(
lineNumber
)
XSDEBUG
(
"FIXME: ScriptEngine::jumpToLineExec()"
);
}
void
ScriptEngine
::
activateFrame
(
int
index
)
{
Q_UNUSED
(
index
)
;
Q_UNUSED
(
index
)
}
void
ScriptEngine
::
selectThread
(
int
index
)
{
Q_UNUSED
(
index
)
;
Q_UNUSED
(
index
)
}
void
ScriptEngine
::
attemptBreakpointSynchronization
()
...
...
@@ -402,7 +402,7 @@ void ScriptEngine::reloadDisassembler()
void
ScriptEngine
::
loadSymbols
(
const
QString
&
moduleName
)
{
Q_UNUSED
(
moduleName
)
;
Q_UNUSED
(
moduleName
)
}
void
ScriptEngine
::
loadAllSymbols
()
...
...
@@ -431,9 +431,9 @@ static QHash<QString, WatchData> m_toolTipCache;
void
ScriptEngine
::
setToolTipExpression
(
const
QPoint
&
mousePos
,
TextEditor
::
ITextEditor
*
editor
,
int
cursorPos
)
{
Q_UNUSED
(
mousePos
)
;
Q_UNUSED
(
editor
)
;
Q_UNUSED
(
cursorPos
)
;
Q_UNUSED
(
mousePos
)
Q_UNUSED
(
editor
)
Q_UNUSED
(
cursorPos
)
if
(
q
->
status
()
!=
DebuggerInferiorStopped
)
{
//SDEBUG("SUPPRESSING DEBUGGER TOOLTIP, INFERIOR NOT STOPPED");
...
...
src/plugins/debugger/tcf/tcfengine.cpp
View file @
d3f97579
...
...
@@ -273,32 +273,32 @@ void TcfEngine::nextIExec()
void
TcfEngine
::
runToLineExec
(
const
QString
&
fileName
,
int
lineNumber
)
{
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
lineNumber
)
;
Q_UNUSED
(
fileName
)
Q_UNUSED
(
lineNumber
)
SDEBUG
(
"FIXME: TcfEngine::runToLineExec()"
);
}
void
TcfEngine
::
runToFunctionExec
(
const
QString
&
functionName
)
{
Q_UNUSED
(
functionName
)
;
Q_UNUSED
(
functionName
)
XSDEBUG
(
"FIXME: TcfEngine::runToFunctionExec()"
);
}
void
TcfEngine
::
jumpToLineExec
(
const
QString
&
fileName
,
int
lineNumber
)
{
Q_UNUSED
(
fileName
)
;
Q_UNUSED
(
lineNumber
)
;
Q_UNUSED
(
fileName
)
Q_UNUSED
(
lineNumber
)
XSDEBUG
(
"FIXME: TcfEngine::jumpToLineExec()"
);
}
void
TcfEngine
::
activateFrame
(
int
index
)
{
Q_UNUSED
(
index
)
;
Q_UNUSED
(
index
)
}
void
TcfEngine
::
selectThread
(
int
index
)
{
Q_UNUSED
(
index
)
;
Q_UNUSED
(
index
)
}
void
TcfEngine
::
attemptBreakpointSynchronization
()
...
...
@@ -311,7 +311,7 @@ void TcfEngine::reloadDisassembler()
void
TcfEngine
::
loadSymbols
(
const
QString
&
moduleName
)
{
Q_UNUSED
(
moduleName
)
;
Q_UNUSED
(
moduleName
)
}
void
TcfEngine
::
loadAllSymbols
()
...
...
@@ -498,7 +498,7 @@ void TcfEngine::sendCommandNow(const TcfCommand &cmd)
{
++
m_inAir
;
int
result
=
m_socket
->
write
(
cmd
.
command
);
Q_UNUSED
(
result
)
;
Q_UNUSED
(
result
)
m_socket
->
flush
();
emit
tcfInputAvailable
(
LogInput
,
QString
::
number
(
cmd
.
token
)
+
" "
+
cmd
.
toString
());
SDEBUG
(
"SEND "
<<
cmd
.
toString
());
//<< " " << QString::number(result));
...
...
@@ -572,7 +572,7 @@ void TcfEngine::updateWatchData(const WatchData &)
void
TcfEngine
::
updateSubItem
(
const
WatchData
&
data0
)
{
Q_UNUSED
(
data0
)
;
Q_UNUSED
(
data0
)
QTC_ASSERT
(
false
,
return
);
}
...
...
src/plugins/debugger/watchhandler.cpp
View file @
d3f97579
...
...
@@ -572,7 +572,7 @@ int WatchModel::rowCount(const QModelIndex &idx) const
int
WatchModel
::
columnCount
(
const
QModelIndex
&
idx
)
const
{
Q_UNUSED
(
idx
)
;
Q_UNUSED
(
idx
)
return
3
;
}
...
...
@@ -997,8 +997,8 @@ void WatchHandler::watchExpression(const QString &exp)
void
WatchHandler
::
setDisplayedIName
(
const
QString
&
iname
,
bool
on
)
{
Q_UNUSED
(
iname
)
;
Q_UNUSED
(
on
)
;
Q_UNUSED
(
iname
)
Q_UNUSED
(
on
)
/*
WatchData *d = findData(iname);
if (!on || !d) {
...
...
src/plugins/debugger/watchwindow.cpp
View file @
d3f97579
...
...
@@ -318,7 +318,7 @@ bool WatchWindow::event(QEvent *ev)