summaryrefslogtreecommitdiff
path: root/src/libs/qmljs/parser/parser.patch
blob: d8e530133e0c90ef1617489bbdab9859190dd3e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
diff -u parser-genOut/qmljsgrammar.cpp parser/qmljsgrammar.cpp
--- parser-genOut/qmljsgrammar.cpp	2020-03-02 13:53:50.000000000 +0100
+++ parser/qmljsgrammar.cpp	2020-03-02 14:16:26.000000000 +0100
@@ -21,7 +21,8 @@
 ** information to ensure the GNU General Public License requirements will
 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
 **
-***************************************************************************// This file was generated by qlalr - DO NOT EDIT!
+***************************************************************************/
+// This file was generated by qlalr - DO NOT EDIT!
 #include "qmljsgrammar_p.h"
 
 const char *const QmlJSGrammar::spell [] = {
diff -u parser-genOut/qmljsgrammar_p.h parser/qmljsgrammar_p.h
--- parser/qmljsgrammar_p.h	2020-03-03 13:51:43.000000000 +0100
+++ parser-fixed2/qmljsgrammar_p.h	2020-03-02 17:20:56.000000000 +0100
@@ -21,11 +21,13 @@
 ** information to ensure the GNU General Public License requirements will
 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
 **
-***************************************************************************// This file was generated by qlalr - DO NOT EDIT!
+***************************************************************************/
+// This file was generated by qlalr - DO NOT EDIT!
 #ifndef QMLJSGRAMMAR_P_H
 #define QMLJSGRAMMAR_P_H
+#include "qmljsglobal_p.h"
 
-class QmlJSGrammar
+class QML_PARSER_EXPORT QmlJSGrammar
 {
 public:
     enum VariousConstants {
diff -u parser-genOut/qmljslexer_p.h parser/qmljslexer_p.h
--- parser-genOut/qmljslexer_p.h	2020-03-02 13:53:50.000000000 +0100
+++ parser/qmljslexer_p.h	2020-03-02 13:55:13.000000000 +0100
@@ -47,7 +47,7 @@
 namespace QmlJS {
 
 class Engine;
-struct DiagnosticMessage;
+class DiagnosticMessage;
 class Directives;
 
 class QML_PARSER_EXPORT Lexer: public QmlJSGrammar
diff -u parser-genOut/qmljsparser.cpp parser/qmljsparser.cpp
--- parser-genOut/qmljsparser.cpp	2020-03-02 13:53:50.000000000 +0100
+++ parser/qmljsparser.cpp	2020-03-02 14:16:01.000000000 +0100
@@ -22,5 +22,6 @@
 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
 **
 ****************************************************************************/
+#line 172 "qmljs.g"
 
 #include "qmljs/parser/qmljsengine_p.h"
diff -u parser-genOut/qmljsparser_p.h parser/qmljsparser_p.h
--- parser-genOut/qmljsparser_p.h	2020-03-02 13:53:50.000000000 +0100
+++ parser/qmljsparser_p.h	2020-03-02 14:13:25.000000000 +0100
@@ -22,6 +22,7 @@
 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
 **
 ****************************************************************************/
+#line 223 "qmljs.g"
 
 
 //

diff -u parser-genOut/parser.pri parser/parser.pri
--- parser-genOut/parser.pri	2020-03-02 15:40:09.000000000 +0100
+++ parser/parser.pri	2020-03-02 15:41:11.000000000 +0100
@@ -22,10 +22,10 @@
     $$PWD/qmljsparser.cpp \
 
-CONFIG += qlalr
+#CONFIG += qlalr
 QLALRSOURCES = $$PWD/qmljs.g
-QMAKE_QLALRFLAGS = --no-debug --qt
+#QMAKE_QLALRFLAGS = --no-debug --qt
 
 OTHER_FILES += $$QLALRSOURCES
 
 # make sure we install the headers generated by qlalr
-private_headers.CONFIG += no_check_exist
+#private_headers.CONFIG += no_check_exist