Commit 7ed15760 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

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: default avatarhjk <hjk121@nokiamail.com>
parent 3f44590f
......@@ -50,9 +50,7 @@ class FancyLineEdit;
class PathChooser;
}
namespace ProjectExplorer {
class Kit;
}
namespace ProjectExplorer { class Kit; }
namespace CMakeProjectManager {
namespace Internal {
......
......@@ -52,9 +52,7 @@
QT_FORWARD_DECLARE_CLASS(QLabel)
namespace Utils {
class QtcProcess;
}
namespace Utils { class QtcProcess; }
namespace CMakeProjectManager {
namespace Internal {
......
......@@ -38,9 +38,7 @@ class QListWidget;
class QListWidgetItem;
QT_END_NAMESPACE
namespace ProjectExplorer {
class ToolChain;
}
namespace ProjectExplorer { class ToolChain; }
namespace CMakeProjectManager {
namespace Internal {
......
......@@ -35,9 +35,7 @@
namespace Core {
class IEditor;
namespace Internal {
class DesignModeCoreListener;
} // namespace Internal
namespace Internal { class DesignModeCoreListener; }
/**
* A global mode for Design pane - used by Bauhaus (QML Designer) and
......
......@@ -35,9 +35,7 @@
namespace Core {
namespace Internal {
namespace Ui {
class AddToVcsDialog;
}
namespace Ui { class AddToVcsDialog; }
class AddToVcsDialog : public QDialog
{
......
......@@ -38,9 +38,7 @@
namespace Core {
namespace Internal {
namespace Ui {
class ExternalToolConfig;
}
namespace Ui { class ExternalToolConfig; }
class ExternalToolModel : public QAbstractItemModel
{
......
......@@ -50,9 +50,7 @@ namespace Core {
namespace Internal {
namespace Ui {
class NewDialog;
}
namespace Ui { class NewDialog; }
class NewDialog : public QDialog
{
......
......@@ -37,9 +37,7 @@
#include <QTextCodec>
#include <QMetaType>
namespace Utils {
class QtcProcess;
}
namespace Utils { class QtcProcess; }
namespace Core {
namespace Internal {
......
......@@ -40,9 +40,7 @@ QT_END_NAMESPACE
namespace Core {
namespace Internal {
namespace Ui {
class GeneralSettings;
}
namespace Ui { class GeneralSettings; }
class GeneralSettings : public IOptionsPage
{
......
......@@ -42,9 +42,7 @@ class QMenu;
class QTreeView;
QT_END_NAMESPACE
namespace Utils {
class FilterLineEdit;
}
namespace Utils { class FilterLineEdit; }
namespace Core {
namespace Internal {
......
......@@ -38,9 +38,7 @@ QT_BEGIN_NAMESPACE
class QToolButton;
QT_END_NAMESPACE
namespace Utils {
class StyledBar;
}
namespace Utils { class StyledBar; }
namespace Core {
class INavigationWidgetFactory;
......
......@@ -48,9 +48,7 @@ class IMode;
class Command;
class NavigationWidget;
struct NavigationWidgetPrivate;
namespace Internal {
class NavigationSubWidget;
}
namespace Internal { class NavigationSubWidget; }
class CORE_EXPORT NavigationWidgetPlaceHolder : public QWidget
{
......
......@@ -42,9 +42,7 @@ namespace Core {
class IMode;
namespace Internal {
class OutputPaneManager;
}
namespace Internal { class OutputPaneManager; }
struct OutputPanePlaceHolderPrivate;
class CORE_EXPORT OutputPanePlaceHolder : public QWidget
......
......@@ -36,9 +36,7 @@
namespace Core {
namespace Ui {
class RemoveFileDialog;
}
namespace Ui { class RemoveFileDialog; }
class CORE_EXPORT RemoveFileDialog : public QDialog
{
......
......@@ -39,9 +39,7 @@
namespace Core {
namespace Internal {
class SettingsDatabasePrivate;
}
namespace Internal { class SettingsDatabasePrivate; }
class CORE_EXPORT SettingsDatabase : public QObject
{
......
......@@ -46,9 +46,7 @@ namespace Core {
class Command;
struct SideBarPrivate;
namespace Internal {
class SideBarWidget;
} // namespace Internal
namespace Internal { class SideBarWidget; }
/*
* An item in the sidebar. Has a widget that is displayed in the sidebar and
......
......@@ -36,9 +36,7 @@
namespace Core {
namespace Internal {
class TextDocumentPrivate;
}
namespace Internal { class TextDocumentPrivate; }
class CORE_EXPORT TextDocument : public IDocument
{
......
......@@ -37,9 +37,7 @@
QT_FORWARD_DECLARE_CLASS(QFileInfo)
namespace Utils {
class AbstractMacroExpander;
}
namespace Utils { class AbstractMacroExpander; }
namespace Core {
......
......@@ -40,9 +40,7 @@ class QNetworkReply;
class QWidget;
QT_END_NAMESPACE
namespace Core {
class IOptionsPage;
}
namespace Core { class IOptionsPage; }
namespace CodePaster {
......
......@@ -36,11 +36,7 @@
#include <QWizardPage>
namespace Utils {
class NewClassWidget;
} // namespace Utils
namespace Utils { class NewClassWidget; }
namespace CppEditor {
namespace Internal {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment