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 QQMLDIRPARSER_P_H
|
||||
#define QQMLDIRPARSER_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -146,5 +145,3 @@ QDebug &operator<< (QDebug &, const QmlDirParser::Component &);
|
||||
QDebug &operator<< (QDebug &, const QmlDirParser::Script &);
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QQMLDIRPARSER_P_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QQMLERROR_H
|
||||
#define QQMLERROR_H
|
||||
#pragma once
|
||||
|
||||
|
||||
|
||||
@@ -66,5 +65,3 @@ QDebug operator<<(QDebug debug, const QmlError &error);
|
||||
Q_DECLARE_TYPEINFO(QmlError, Q_MOVABLE_TYPE);
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QQMLERROR_H
|
||||
|
||||
@@ -201,8 +201,7 @@
|
||||
// qlalr --no-debug --no-lines --qt qmljs.g
|
||||
//
|
||||
|
||||
#ifndef QMLJSPARSER_P_H
|
||||
#define QMLJSPARSER_P_H
|
||||
#prama once
|
||||
|
||||
#include "qmljsglobal_p.h"
|
||||
#include "qmljsgrammar_p.h"
|
||||
@@ -3114,6 +3113,4 @@ QT_QML_END_NAMESPACE
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
|
||||
|
||||
#endif // QMLJSPARSER_P_H
|
||||
:/
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSAST_P_H
|
||||
#define QMLJSAST_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -2759,5 +2758,3 @@ public:
|
||||
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSAST_FWD_P_H
|
||||
#define QMLJSAST_FWD_P_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljsglobal_p.h"
|
||||
|
||||
@@ -171,5 +170,3 @@ class UiHeaderItemList;
|
||||
} } // namespace AST
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSASTVISITOR_P_H
|
||||
#define QMLJSASTVISITOR_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -321,5 +320,3 @@ public:
|
||||
} } // namespace AST
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif // QMLJSASTVISITOR_P_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSENGINE_P_H
|
||||
#define QMLJSENGINE_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -111,5 +110,3 @@ double integerFromString(const char *buf, int size, int radix);
|
||||
} // end of namespace QmlJS
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif // QMLJSENGINE_P_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSGLOBAL_P_H
|
||||
#define QMLJSGLOBAL_P_H
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
@@ -52,5 +51,3 @@
|
||||
# define QML_PARSER_EXPORT
|
||||
# endif
|
||||
#endif // QT_CREATOR
|
||||
|
||||
#endif // QMLJSGLOBAL_P_H
|
||||
|
||||
@@ -35,8 +35,7 @@
|
||||
//
|
||||
|
||||
// This file was generated by qlalr - DO NOT EDIT!
|
||||
#ifndef QMLJSGRAMMAR_P_H
|
||||
#define QMLJSGRAMMAR_P_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljsglobal_p.h"
|
||||
#include <QtCore/qglobal.h>
|
||||
@@ -196,5 +195,3 @@ public:
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
#endif // QMLJSGRAMMAR_P_H
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSKEYWORDS_P_H
|
||||
#define QMLJSKEYWORDS_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -875,5 +874,3 @@ int Lexer::classify(const QChar *s, int n, bool qmlMode) {
|
||||
} // namespace QmlJS
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif // QMLJSKEYWORDS_P_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSLEXER_P_H
|
||||
#define QMLJSLEXER_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -233,5 +232,3 @@ private:
|
||||
} // end of namespace QmlJS
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif // LEXER_H
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QMLJSMEMORYPOOL_P_H
|
||||
#define QMLJSMEMORYPOOL_P_H
|
||||
#pragma once
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
@@ -153,5 +152,3 @@ public:
|
||||
} // namespace QmlJS
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
||||
@@ -46,8 +46,7 @@
|
||||
// qlalr --no-debug --no-lines --qt qmljs.g
|
||||
//
|
||||
|
||||
#ifndef QMLJSPARSER_P_H
|
||||
#define QMLJSPARSER_P_H
|
||||
#pragma once
|
||||
|
||||
#include "qmljsglobal_p.h"
|
||||
#include "qmljsgrammar_p.h"
|
||||
@@ -236,7 +235,3 @@ protected:
|
||||
#define J_SCRIPT_REGEXPLITERAL_RULE2 88
|
||||
|
||||
QT_QML_END_NAMESPACE
|
||||
|
||||
|
||||
|
||||
#endif // QMLJSPARSER_P_H
|
||||
|
||||
Reference in New Issue
Block a user