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:
@@ -44,9 +44,7 @@
|
||||
#include <QVariant>
|
||||
#include <QIcon>
|
||||
|
||||
namespace QmlJS {
|
||||
class Value;
|
||||
}
|
||||
namespace QmlJS { class Value; }
|
||||
|
||||
namespace QmlJSEditor {
|
||||
namespace Internal {
|
||||
|
||||
@@ -48,17 +48,13 @@ class QComboBox;
|
||||
class QTimer;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Core {
|
||||
class ICore;
|
||||
}
|
||||
namespace Core { class ICore; }
|
||||
|
||||
namespace QmlJS {
|
||||
class ModelManagerInterface;
|
||||
class IContextPane;
|
||||
class LookupContext;
|
||||
namespace AST {
|
||||
class UiObjectMember;
|
||||
}
|
||||
namespace AST { class UiObjectMember; }
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -38,9 +38,7 @@
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QAction)
|
||||
|
||||
namespace Utils {
|
||||
class JsonSchemaManager;
|
||||
}
|
||||
namespace Utils { class JsonSchemaManager; }
|
||||
|
||||
namespace Core {
|
||||
class Command;
|
||||
@@ -49,13 +47,9 @@ class ActionManager;
|
||||
class IEditor;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
class ITextEditor;
|
||||
}
|
||||
namespace TextEditor { class ITextEditor; }
|
||||
|
||||
namespace QmlJS {
|
||||
class ModelManagerInterface;
|
||||
}
|
||||
namespace QmlJS { class ModelManagerInterface; }
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
|
||||
@@ -39,13 +39,9 @@ QT_BEGIN_NAMESPACE
|
||||
template <class> class QList;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Core {
|
||||
class IEditor;
|
||||
}
|
||||
namespace Core { class IEditor; }
|
||||
|
||||
namespace TextEditor {
|
||||
class ITextEditor;
|
||||
}
|
||||
namespace TextEditor { class ITextEditor; }
|
||||
|
||||
namespace QmlJS {
|
||||
class ScopeChain;
|
||||
|
||||
@@ -36,13 +36,9 @@
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
namespace Core {
|
||||
class IEditor;
|
||||
}
|
||||
namespace Core { class IEditor; }
|
||||
|
||||
namespace QmlJS {
|
||||
class Editor;
|
||||
}
|
||||
namespace QmlJS { class Editor; }
|
||||
|
||||
namespace QmlJSEditor {
|
||||
namespace Internal {
|
||||
|
||||
@@ -37,18 +37,12 @@
|
||||
|
||||
namespace QmlJS {
|
||||
class ScopeChain;
|
||||
namespace AST {
|
||||
class SourceLocation;
|
||||
}
|
||||
namespace AST { class SourceLocation; }
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
class FontSettings;
|
||||
}
|
||||
namespace TextEditor { class FontSettings; }
|
||||
|
||||
namespace QmlJSTools {
|
||||
class SemanticInfo;
|
||||
}
|
||||
namespace QmlJSTools { class SemanticInfo; }
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
|
||||
@@ -34,13 +34,9 @@
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
namespace TextEditor {
|
||||
class BaseTextEditor;
|
||||
}
|
||||
namespace TextEditor { class BaseTextEditor; }
|
||||
|
||||
namespace QmlEditorWidgets {
|
||||
class ContextPaneWidget;
|
||||
}
|
||||
namespace QmlEditorWidgets { class ContextPaneWidget; }
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user