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:
@@ -34,9 +34,7 @@
|
||||
|
||||
#include <coreplugin/find/textfindconstants.h>
|
||||
|
||||
namespace Core {
|
||||
class IEditor;
|
||||
}
|
||||
namespace Core { class IEditor; }
|
||||
|
||||
namespace Macros {
|
||||
namespace Internal {
|
||||
|
||||
@@ -45,9 +45,7 @@ namespace Internal {
|
||||
|
||||
class MacroSettings;
|
||||
|
||||
namespace Ui {
|
||||
class MacroOptionsWidget;
|
||||
}
|
||||
namespace Ui { class MacroOptionsWidget; }
|
||||
|
||||
class MacroOptionsWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
@@ -35,9 +35,7 @@
|
||||
namespace Macros {
|
||||
namespace Internal {
|
||||
|
||||
namespace Ui {
|
||||
class SaveDialog;
|
||||
}
|
||||
namespace Ui { class SaveDialog; }
|
||||
|
||||
class SaveDialog : public QDialog
|
||||
{
|
||||
|
||||
@@ -32,13 +32,9 @@
|
||||
|
||||
#include "imacrohandler.h"
|
||||
|
||||
namespace Core {
|
||||
class IEditor;
|
||||
}
|
||||
namespace Core { class IEditor; }
|
||||
|
||||
namespace TextEditor {
|
||||
class ITextEditor;
|
||||
}
|
||||
namespace TextEditor { class ITextEditor; }
|
||||
|
||||
namespace Macros {
|
||||
namespace Internal {
|
||||
|
||||
Reference in New Issue
Block a user