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
......@@ -39,9 +39,7 @@ namespace ExtensionSystem {
class PluginSpec;
namespace Internal {
namespace Ui {
class PluginDetailsView;
} // namespace Ui
namespace Ui { class PluginDetailsView; }
} // namespace Internal
......
......@@ -38,9 +38,7 @@ namespace ExtensionSystem {
class PluginSpec;
namespace Internal {
namespace Ui {
class PluginErrorView;
} // namespace Ui
namespace Ui { class PluginErrorView; }
} // namespace Internal
class EXTENSIONSYSTEM_EXPORT PluginErrorView : public QWidget
......
......@@ -46,9 +46,7 @@ class PluginCollection;
class IPlugin;
class PluginSpec;
namespace Internal {
class PluginManagerPrivate;
}
namespace Internal { class PluginManagerPrivate; }
class EXTENSIONSYSTEM_EXPORT PluginManager : public QObject
{
......
......@@ -35,14 +35,10 @@
QT_BEGIN_NAMESPACE
class QVariant;
namespace Ui {
class ContextPaneTextWidget;
}
namespace Ui { class ContextPaneTextWidget; }
QT_END_NAMESPACE
namespace QmlJS {
class PropertyReader;
}
namespace QmlJS { class PropertyReader; }
namespace QmlEditorWidgets {
......
......@@ -41,9 +41,7 @@ class QGraphicsDropShadowEffect;
class QGraphicsOpacityEffect;
QT_END_NAMESPACE
namespace QmlJS {
class PropertyReader;
}
namespace QmlJS { class PropertyReader; }
namespace QmlEditorWidgets {
......
......@@ -46,9 +46,7 @@ class QLabel;
class QSlider;
QT_END_NAMESPACE
namespace QmlJS {
class PropertyReader;
}
namespace QmlJS { class PropertyReader; }
namespace QmlEditorWidgets {
......
......@@ -34,14 +34,10 @@
#include <QWidget>
QT_BEGIN_NAMESPACE
namespace Ui {
class ContextPaneWidgetRectangle;
}
namespace Ui { class ContextPaneWidgetRectangle; }
QT_END_NAMESPACE
namespace QmlJS {
class PropertyReader;
}
namespace QmlJS { class PropertyReader; }
namespace QmlEditorWidgets {
......
......@@ -36,14 +36,10 @@
QT_BEGIN_NAMESPACE
class QVariant;
namespace Ui {
class EasingContextPane;
}
namespace Ui { class EasingContextPane; }
QT_END_NAMESPACE
namespace QmlJS {
class PropertyReader;
}
namespace QmlJS { class PropertyReader; }
namespace QmlEditorWidgets {
class EasingSimulation;
......
......@@ -39,9 +39,7 @@
QT_FORWARD_DECLARE_CLASS(QTextStream)
namespace Utils {
class JsonObjectValue;
}
namespace Utils { class JsonObjectValue; }
namespace QmlJS {
......
......@@ -37,9 +37,7 @@
#include <qmljs/qmljsdocument.h>
#include <qmljs/parser/qmljsastfwd_p.h>
namespace TextEditor {
class BaseTextEditor;
} //TextEditor
namespace TextEditor { class BaseTextEditor; }
namespace QmlJS {
......
......@@ -50,9 +50,7 @@ QT_END_NAMESPACE
namespace QmlJS {
class ImportInfo;
namespace Internal {
class ImportDependenciesPrivate;
}
namespace Internal { class ImportDependenciesPrivate; }
class ImportDependencies;
// match strenght wrt to the selectors of a ViewerContext
......
......@@ -41,9 +41,7 @@
#include <QStringList>
#include <QPointer>
namespace ProjectExplorer {
class Project;
}
namespace ProjectExplorer { class Project; }
namespace QmlJS {
......
......@@ -44,9 +44,7 @@ class ObjectValue;
class Value;
class ScopeChain;
namespace AST {
class Node;
}
namespace AST { class Node; }
class QMLJS_EXPORT ScopeBuilder
{
......
......@@ -46,9 +46,7 @@ class SftpChannel;
class SshDirectTcpIpTunnel;
class SshRemoteProcess;
namespace Internal {
class SshConnectionPrivate;
} // namespace Internal
namespace Internal { class SshConnectionPrivate; }
enum SshConnectionOption {
SshIgnoreDefaultProxy = 0x1,
......
......@@ -34,9 +34,7 @@
#include "sshremoteprocess.h"
namespace QSsh {
namespace Internal {
class SshRemoteProcessRunnerPrivate;
} // namespace Internal
namespace Internal { class SshRemoteProcessRunnerPrivate; }
class QSSH_EXPORT SshRemoteProcessRunner : public QObject
{
......
......@@ -38,9 +38,7 @@ namespace Utils {
class Environment;
class EnvironmentItem;
namespace Internal {
class EnvironmentModelPrivate;
} // namespace Internal
namespace Internal { class EnvironmentModelPrivate; }
class QTCREATOR_UTILS_EXPORT EnvironmentModel : public QAbstractTableModel
{
......
......@@ -35,9 +35,7 @@
QT_FORWARD_DECLARE_CLASS(QString)
namespace Utils {
namespace Internal {
class PortListPrivate;
} // namespace Internal
namespace Internal { class PortListPrivate; }
class QTCREATOR_UTILS_EXPORT PortList
{
......
......@@ -35,9 +35,7 @@
#include <QAbstractSocket>
namespace Utils {
namespace Internal {
class TcpPortsGathererPrivate;
}
namespace Internal { class TcpPortsGathererPrivate; }
class QTCREATOR_UTILS_EXPORT TcpPortsGatherer
{
......
......@@ -36,9 +36,7 @@
QT_FORWARD_DECLARE_CLASS(QVBoxLayout)
namespace Utils {
class TipContent;
}
namespace Utils { class TipContent; }
#ifndef Q_MOC_RUN
namespace Utils {
......
......@@ -36,9 +36,7 @@ QT_BEGIN_NAMESPACE
class QWidget;
QT_END_NAMESPACE
namespace CPlusPlus {
class Symbol;
}
namespace CPlusPlus { class Symbol; }
namespace AnalyzerUtils
{
......
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