forked from qt-creator/qt-creator
Wholesale conversion to #pragma once
Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLEXPRESSIONUNDERCURSOR_H
|
||||
#define QMLEXPRESSIONUNDERCURSOR_H
|
||||
#pragma once
|
||||
|
||||
#include <qmljs/parser/qmljsastfwd_p.h>
|
||||
#include <qmljs/qmljsdocument.h>
|
||||
@@ -67,5 +66,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLEXPRESSIONUNDERCURSOR_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSAUTOCOMPLETER_H
|
||||
#define QMLJSAUTOCOMPLETER_H
|
||||
#pragma once
|
||||
|
||||
#include <texteditor/autocompleter.h>
|
||||
|
||||
@@ -50,5 +49,3 @@ public:
|
||||
|
||||
} // Internal
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSAUTOCOMPLETER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSCOMPLETIONASSIST_H
|
||||
#define QMLJSCOMPLETIONASSIST_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor.h"
|
||||
|
||||
@@ -136,5 +135,3 @@ private:
|
||||
};
|
||||
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSCOMPLETIONASSIST_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSCOMPONENTFROMOBJECTDEF_H
|
||||
#define QMLJSCOMPONENTFROMOBJECTDEF_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljsquickfix.h"
|
||||
|
||||
@@ -39,5 +38,3 @@ public:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSCOMPONENTFROMOBJECTDEF_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSCOMPONENTNAMEDIALOG_H
|
||||
#define QMLJSCOMPONENTNAMEDIALOG_H
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
@@ -56,5 +55,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSCOMPONENTNAMEDIALOG_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSEDITOR_H
|
||||
#define QMLJSEDITOR_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor_global.h"
|
||||
|
||||
@@ -157,5 +156,3 @@ public:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSEDITOR_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSEDITOR_GLOBAL_H
|
||||
#define QMLJSEDITOR_GLOBAL_H
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -33,5 +32,3 @@
|
||||
#else
|
||||
# define QMLJSEDITOR_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif // QMLJSEDITOR_GLOBAL_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSEDITOR_CONSTANTS_H
|
||||
#define QMLJSEDITOR_CONSTANTS_H
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -60,5 +59,3 @@ const char QML_UI_FILE_WARNING[] = "QmlJSEditor.QmlUiFileWarning";
|
||||
|
||||
} // namespace Constants
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSEDITOR_CONSTANTS_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSEDITORDOCUMENT_H
|
||||
#define QMLJSEDITORDOCUMENT_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor_global.h"
|
||||
|
||||
@@ -67,5 +66,3 @@ private:
|
||||
};
|
||||
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSEDITORDOCUMENT_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSEDITORDOCUMENT_P_H
|
||||
#define QMLJSEDITORDOCUMENT_P_H
|
||||
#pragma once
|
||||
|
||||
#include <qmljs/qmljsdocument.h>
|
||||
#include <qmljstools/qmljssemanticinfo.h>
|
||||
@@ -77,5 +76,3 @@ public:
|
||||
|
||||
} // Internal
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSEDITORDOCUMENT_P_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSEDITORPLUGIN_H
|
||||
#define QMLJSEDITORPLUGIN_H
|
||||
#pragma once
|
||||
|
||||
#include <extensionsystem/iplugin.h>
|
||||
#include <coreplugin/icontext.h>
|
||||
@@ -103,5 +102,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSEDITORPLUGIN_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSFINDREFERENCES_H
|
||||
#define QMLJSFINDREFERENCES_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor_global.h"
|
||||
|
||||
@@ -92,5 +91,3 @@ private:
|
||||
};
|
||||
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSFINDREFERENCES_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSHIGHLIGHTER_H
|
||||
#define QMLJSHIGHLIGHTER_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor_global.h"
|
||||
|
||||
@@ -82,5 +81,3 @@ private:
|
||||
};
|
||||
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSHIGHLIGHTER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSHOVERHANDLER_H
|
||||
#define QMLJSHOVERHANDLER_H
|
||||
#pragma once
|
||||
|
||||
#include <qmljs/qmljsmodelmanagerinterface.h>
|
||||
#include <texteditor/basehoverhandler.h>
|
||||
@@ -86,5 +85,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSHOVERHANDLER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSOUTLINE_H
|
||||
#define QMLJSOUTLINE_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor.h"
|
||||
|
||||
@@ -104,5 +103,3 @@ public:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSOUTLINE_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSOUTLINETREEVIEW_H
|
||||
#define QMLJSOUTLINETREEVIEW_H
|
||||
#pragma once
|
||||
|
||||
#include <utils/navigationtreeview.h>
|
||||
|
||||
@@ -45,5 +44,3 @@ private slots:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSOUTLINETREEVIEW_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSPREVIEWRUNNER_H
|
||||
#define QMLJSPREVIEWRUNNER_H
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
@@ -51,6 +50,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
|
||||
#endif // QMLJSPREVIEWRUNNER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSQUICKFIX_H
|
||||
#define QMLJSQUICKFIX_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor.h"
|
||||
|
||||
@@ -94,5 +93,3 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSQUICKFIX_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSQUICKFIXASSIST_H
|
||||
#define QMLJSQUICKFIXASSIST_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor.h"
|
||||
|
||||
@@ -68,5 +67,3 @@ public:
|
||||
|
||||
} // Internal
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSQUICKFIXASSIST_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSREUSE_H
|
||||
#define QMLJSREUSE_H
|
||||
#pragma once
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QIcon>
|
||||
@@ -46,5 +45,3 @@ QIcon iconForColor(const QColor &color);
|
||||
|
||||
} // Internal
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSREUSE_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSSEMANTICHIGHLIGHTER_H
|
||||
#define QMLJSSEMANTICHIGHLIGHTER_H
|
||||
#pragma once
|
||||
|
||||
#include <texteditor/semantichighlighter.h>
|
||||
#include <QFutureWatcher>
|
||||
@@ -98,5 +97,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSSEMANTICHIGHLIGHTER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef SEMANTICINFOUPDATER_H
|
||||
#define SEMANTICINFOUPDATER_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditor.h"
|
||||
|
||||
@@ -69,5 +68,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // SEMANTICINFOUPDATER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSSNIPPETPROVIDER_H
|
||||
#define QMLJSSNIPPETPROVIDER_H
|
||||
#pragma once
|
||||
|
||||
#include <texteditor/snippets/isnippetprovider.h>
|
||||
|
||||
@@ -45,5 +44,3 @@ public:
|
||||
|
||||
} // Internal
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLJSSNIPPETPROVIDER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSWRAPINLOADER_H
|
||||
#define QMLJSWRAPINLOADER_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljsquickfix.h"
|
||||
|
||||
@@ -38,5 +37,3 @@ class WrapInLoader: public QmlJSQuickFixFactory
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLJSWRAPINLOADER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLOUTLINEMODEL_H
|
||||
#define QMLOUTLINEMODEL_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljseditordocument.h"
|
||||
#include <utils/changeset.h>
|
||||
@@ -165,5 +164,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlJSEditor
|
||||
|
||||
#endif // QMLOUTLINEMODEL_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLTASKMANAGER_H
|
||||
#define QMLTASKMANAGER_H
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/task.h>
|
||||
#include <qmljs/qmljsdocument.h>
|
||||
@@ -85,5 +84,3 @@ private:
|
||||
|
||||
} // Internal
|
||||
} // QmlJSEditor
|
||||
|
||||
#endif // QMLTASKMANAGER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QUICKTOOLBAR_H
|
||||
#define QUICKTOOLBAR_H
|
||||
#pragma once
|
||||
|
||||
#include <qmljs/qmljsicontextpane.h>
|
||||
|
||||
@@ -70,5 +69,3 @@ private:
|
||||
};
|
||||
|
||||
} //QmlDesigner
|
||||
|
||||
#endif // QUICKTOOLBAR_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QUICKTOOLBARSETTINGSPAGE_H
|
||||
#define QUICKTOOLBARSETTINGSPAGE_H
|
||||
#pragma once
|
||||
|
||||
#include "ui_quicktoolbarsettingspage.h"
|
||||
#include <coreplugin/dialogs/ioptionspage.h>
|
||||
@@ -96,5 +95,3 @@ private:
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace QmlDesigner
|
||||
|
||||
#endif // QUICKTOOLBARSETTINGSPAGE_H
|
||||
|
||||
Reference in New Issue
Block a user