forked from qt-creator/qt-creator
Clean up single namespace forward-declarations
Done using the following ruby script:
Dir.glob('**/*.h').each { |file|
if File.file?(file)
s = File.read(file)
t = s.gsub(/^namespace .+ \{\n\s*class .*;\n\s*\}.*$/) { |m| m.gsub(/\n\s*/, ' ').gsub(/\s*\/\/.*$/, '') }
if t != s
puts file
File.open(file, 'w').write(t)
end
end
}
Change-Id: Iffcb966e90eb8e1a625eccd5dd0b94f000ae368e
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -36,9 +36,7 @@ namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class BranchAddDialog;
|
||||
}
|
||||
namespace Ui { class BranchAddDialog; }
|
||||
|
||||
class BranchAddDialog : public QDialog
|
||||
{
|
||||
|
||||
@@ -35,9 +35,7 @@
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui {
|
||||
class BranchCheckoutDialog;
|
||||
}
|
||||
namespace Ui { class BranchCheckoutDialog; }
|
||||
|
||||
class BranchCheckoutDialog : public QDialog
|
||||
{
|
||||
|
||||
@@ -39,9 +39,7 @@ QT_END_NAMESPACE
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui {
|
||||
class BranchDialog;
|
||||
}
|
||||
namespace Ui { class BranchDialog; }
|
||||
|
||||
class BranchAddDialog;
|
||||
class BranchModel;
|
||||
|
||||
@@ -34,9 +34,7 @@
|
||||
|
||||
#include <QSharedPointer>
|
||||
|
||||
namespace VcsBase {
|
||||
class Command;
|
||||
}
|
||||
namespace VcsBase { class Command; }
|
||||
|
||||
namespace Git {
|
||||
|
||||
|
||||
@@ -33,9 +33,7 @@
|
||||
#include <QComboBox>
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
class GitClient;
|
||||
}
|
||||
namespace Internal { class GitClient; }
|
||||
}
|
||||
|
||||
namespace Gerrit {
|
||||
|
||||
@@ -42,9 +42,7 @@ class QSpinBox;
|
||||
class QCheckBox;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
class PathChooser;
|
||||
}
|
||||
namespace Utils { class PathChooser; }
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
|
||||
|
||||
@@ -35,17 +35,13 @@
|
||||
#include <QDate>
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
class GitClient;
|
||||
}
|
||||
namespace Internal { class GitClient; }
|
||||
}
|
||||
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui {
|
||||
class GerritPushDialog;
|
||||
}
|
||||
namespace Ui { class GerritPushDialog; }
|
||||
|
||||
class GerritPushDialog : public QDialog
|
||||
{
|
||||
|
||||
@@ -47,9 +47,7 @@ class QDebug;
|
||||
class QProcessEnvironment;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Core {
|
||||
class ICore;
|
||||
}
|
||||
namespace Core { class ICore; }
|
||||
|
||||
namespace VcsBase {
|
||||
class Command;
|
||||
@@ -62,9 +60,7 @@ namespace Utils {
|
||||
struct SynchronousProcessResponse;
|
||||
}
|
||||
|
||||
namespace DiffEditor {
|
||||
class DiffEditor;
|
||||
}
|
||||
namespace DiffEditor { class DiffEditor; }
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
@@ -32,9 +32,7 @@
|
||||
|
||||
#include <texteditor/syntaxhighlighter.h>
|
||||
|
||||
namespace TextEditor {
|
||||
class FontSettings;
|
||||
}
|
||||
namespace TextEditor { class FontSettings; }
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
@@ -44,9 +44,7 @@ QT_END_NAMESPACE
|
||||
namespace Gitorious {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui {
|
||||
class GitoriousHostWidget;
|
||||
}
|
||||
namespace Ui { class GitoriousHostWidget; }
|
||||
|
||||
/* A page listing gitorious hosts with browse/add options. isValid() and the
|
||||
* related change signals are provided for use within a QWizardPage.
|
||||
|
||||
@@ -46,9 +46,7 @@ namespace Internal {
|
||||
class GitoriousHostWizardPage;
|
||||
struct GitoriousProject;
|
||||
|
||||
namespace Ui {
|
||||
class GitoriousProjectWidget;
|
||||
}
|
||||
namespace Ui { class GitoriousProjectWidget; }
|
||||
|
||||
/* Let the user select a project from a host. Displays name and description
|
||||
* with tooltip and info button that opens URLs contained in the description.
|
||||
|
||||
@@ -44,9 +44,7 @@ class GitoriousHostWizardPage;
|
||||
struct GitoriousProject;
|
||||
class GitoriousProjectWidget;
|
||||
|
||||
namespace Ui {
|
||||
class GitoriousProjectWizardPage;
|
||||
}
|
||||
namespace Ui { class GitoriousProjectWizardPage; }
|
||||
|
||||
/* GitoriousProjectWizardPage: Let the user select a project via
|
||||
* GitoriousProjectWidget. As switching back and forth hosts (repopulating
|
||||
|
||||
@@ -45,9 +45,7 @@ namespace Internal {
|
||||
|
||||
class GitoriousProjectWizardPage;
|
||||
|
||||
namespace Ui {
|
||||
class GitoriousRepositoryWizardPage;
|
||||
}
|
||||
namespace Ui { class GitoriousRepositoryWizardPage; }
|
||||
|
||||
// A wizard page listing Gitorious repositories in a tree, by repository type.
|
||||
|
||||
|
||||
@@ -54,13 +54,9 @@ class Context;
|
||||
class ActionManager;
|
||||
class ActionContainer;
|
||||
}
|
||||
namespace Utils {
|
||||
class ParameterAction;
|
||||
}
|
||||
namespace Utils { class ParameterAction; }
|
||||
namespace Gerrit {
|
||||
namespace Internal {
|
||||
class GerritPlugin;
|
||||
}
|
||||
namespace Internal { class GerritPlugin; }
|
||||
}
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
@@ -36,9 +36,7 @@
|
||||
|
||||
#include <QStringList>
|
||||
|
||||
namespace VcsBase {
|
||||
class SubmitFileModel;
|
||||
}
|
||||
namespace VcsBase { class SubmitFileModel; }
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
@@ -41,9 +41,7 @@ QT_END_NAMESPACE
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui {
|
||||
class StashDialog;
|
||||
}
|
||||
namespace Ui { class StashDialog; }
|
||||
class StashModel;
|
||||
|
||||
/* StashDialog: Non-modal dialog that manages the list of stashes
|
||||
|
||||
Reference in New Issue
Block a user