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
......@@ -40,9 +40,7 @@
#include <QObject>
#include <QAction>
namespace ProjectExplorer {
class RunConfiguration;
}
namespace ProjectExplorer { class RunConfiguration; }
namespace Analyzer {
......
......@@ -38,9 +38,7 @@ QT_BEGIN_NAMESPACE
class QComboBox;
QT_END_NAMESPACE
namespace Utils {
class PathChooser;
}
namespace Utils { class PathChooser; }
namespace AutotoolsProjectManager {
namespace Internal {
......
......@@ -34,9 +34,7 @@
#include <utils/wizard.h>
namespace Utils {
class PathChooser;
}
namespace Utils { class PathChooser; }
namespace AutotoolsProjectManager {
namespace Internal {
......
......@@ -38,9 +38,7 @@
QT_FORWARD_DECLARE_CLASS(QDir)
namespace Utils {
class FileSystemWatcher;
}
namespace Utils { class FileSystemWatcher; }
namespace ProjectExplorer {
class Node;
......
......@@ -34,9 +34,7 @@
#include <projectexplorer/projectnodes.h>
namespace Core {
class IDocument;
}
namespace Core { class IDocument; }
namespace AutotoolsProjectManager {
namespace Internal {
......
......@@ -34,9 +34,7 @@
namespace BareMetal {
namespace Ui {
class BareMetalDeviceConfigurationWidget;
}
namespace Ui { class BareMetalDeviceConfigurationWidget; }
class BareMetalDeviceConfigurationWidget
: public ProjectExplorer::IDeviceWidget
......
......@@ -34,9 +34,7 @@
#include <utils/wizard.h>
namespace BareMetal {
namespace Internal {
class BareMetalDeviceConfigrationWizardPrivate;
} // namespace Internal
namespace Internal { class BareMetalDeviceConfigrationWizardPrivate; }
class BareMetalDeviceConfigurationWizard : public Utils::Wizard
{
......
......@@ -40,9 +40,7 @@ QT_END_NAMESPACE
namespace BareMetal {
class BareMetalRunConfiguration;
namespace Internal {
class BareMetalRunConfigurationWidgetPrivate;
} // namespace Internal
namespace Internal { class BareMetalRunConfigurationWidgetPrivate; }
class BareMetalRunConfigurationWidget : public QWidget
{
......
......@@ -49,13 +49,9 @@ class IEditorFactory;
class IEditor;
} // namespace Core
namespace Utils {
class ParameterAction;
} //namespace Utils
namespace Utils { class ParameterAction; }
namespace VcsBase {
class VcsBaseSubmitEditor;
}
namespace VcsBase { class VcsBaseSubmitEditor; }
namespace Bazaar {
namespace Internal {
......
......@@ -34,9 +34,7 @@
namespace Bazaar {
namespace Internal {
namespace Ui {
class CloneOptionsPanel;
}
namespace Ui { class CloneOptionsPanel; }
class CloneOptionsPanel : public QWidget
{
......
......@@ -32,9 +32,7 @@
#include <vcsbase/vcsbaseclient.h>
#include <vcsbase/vcsbasesubmiteditor.h>
namespace VcsBase {
class SubmitFileModel;
}
namespace VcsBase { class SubmitFileModel; }
namespace Bazaar {
namespace Internal {
......
......@@ -34,9 +34,7 @@
namespace Bazaar {
namespace Internal {
namespace Ui {
class PullOrPushDialog;
}
namespace Ui { class PullOrPushDialog; }
class PullOrPushDialog : public QDialog
{
......
......@@ -34,9 +34,7 @@
namespace Bazaar {
namespace Internal {
namespace Ui {
class UnCommitDialog;
}
namespace Ui { class UnCommitDialog; }
class UnCommitDialog : public QDialog
{
......
......@@ -45,13 +45,9 @@
QT_FORWARD_DECLARE_CLASS(QMenu)
QT_FORWARD_DECLARE_CLASS(QHelpEvent)
namespace Core {
class IEditor;
}
namespace Core { class IEditor; }
namespace TextEditor {
class FontSettings;
}
namespace TextEditor { class FontSettings; }
namespace BINEditor {
......
......@@ -40,13 +40,9 @@ class QAction;
class QMenu;
QT_END_NAMESPACE
namespace Core {
class IEditor;
}
namespace Core { class IEditor; }
namespace TextEditor {
class ITextEditor;
}
namespace TextEditor { class ITextEditor; }
namespace Bookmarks {
namespace Internal {
......
......@@ -44,9 +44,7 @@
namespace ClangCodeModel {
namespace Internal {
class ClangSymbolSearcher;
} // namespace Internal
namespace Internal { class ClangSymbolSearcher; }
class IndexerPrivate;
......
......@@ -36,9 +36,7 @@
namespace ClearCase {
namespace Internal {
namespace Ui {
class CheckOutDialog;
}
namespace Ui { class CheckOutDialog; }
class ActivitySelector;
......
......@@ -40,9 +40,7 @@ QT_END_NAMESPACE
namespace ClearCase {
namespace Internal {
namespace Ui {
class VersionSelector;
}
namespace Ui { class VersionSelector; }
class VersionSelector : public QDialog
{
......
......@@ -33,9 +33,7 @@
#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/abi.h>
namespace ProjectExplorer {
class ToolChain;
}
namespace ProjectExplorer { class ToolChain; }
namespace CMakeProjectManager {
class CMakeBuildInfo;
......
......@@ -36,9 +36,7 @@
#include <utils/uncommentselection.h>
namespace TextEditor {
class FontSettings;
}
namespace TextEditor { class FontSettings; }
namespace CMakeProjectManager {
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