Skip to content

Commit ec1b5f3

Browse files
authored
Add top missing antlr4 headers inside impl. (#4793)
* Include `"atn/ATNState.h"` for files using `antlr4::atn::ATNState` Signed-off-by: Henner Zeller <[email protected]> * Include `"Token.h"` for files using `antlr4::Token` Signed-off-by: Henner Zeller <[email protected]> * Include `"ANTLRErrorListener.h"` in files using `antlr4::ANTLRErrorListener` Signed-off-by: Henner Zeller <[email protected]> * Include `"ANTLRErrorStrategy.h"` in files using `antlr4::ANTLRErrorStrategy` Signed-off-by: Henner Zeller <[email protected]> * Include `"ANTLRInputStream.h"` in files using `antlr4::ANTLRInputStream` Signed-off-by: Henner Zeller <[email protected]> * Include `"atn/TransitionType.h"` in files using `antlr4::atn::TransitionType` Signed-off-by: Henner Zeller <[email protected]> * Include `"atn/ATNStateType.h"` in files using `antlr4::atn::ATNStateType` Signed-off-by: Henner Zeller <[email protected]> * Include `"misc/Interval.h"` and `"misc/IntervalSet.h"` in files using these. Signed-off-by: Henner Zeller <[email protected]> * Include `"tree/ParseTreeType.h"` in files using `antlr4::tree::ParseTreeType` Signed-off-by: Henner Zeller <[email protected]> --------- Signed-off-by: Henner Zeller <[email protected]>
1 parent 03f124b commit ec1b5f3

File tree

105 files changed

+168
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+168
-0
lines changed

runtime/Cpp/runtime/src/ANTLRErrorListener.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <string>
99
#include <cstddef>
1010
#include "antlr4-common.h"
11+
#include "Token.h"
1112
#include "RecognitionException.h"
1213

1314
namespace antlrcpp {

runtime/Cpp/runtime/src/ANTLRErrorStrategy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "Token.h"
1010

1111
namespace antlr4 {
12+
class Parser;
1213

1314
/// <summary>
1415
/// The interface for defining strategies to deal with syntax errors encountered

runtime/Cpp/runtime/src/ANTLRFileStream.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include <string>
7+
#include "ANTLRInputStream.h"
78
#include "ANTLRFileStream.h"
89

910
using namespace antlr4;

runtime/Cpp/runtime/src/ANTLRInputStream.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <string_view>
1111

1212
#include "antlr4-common.h"
13+
#include "misc/Interval.h"
1314
#include "CharStream.h"
1415

1516
namespace antlr4 {

runtime/Cpp/runtime/src/BailErrorStrategy.cpp

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
#include "Exceptions.h"
7+
#include "Token.h"
78
#include "ParserRuleContext.h"
89
#include "InputMismatchException.h"
910
#include "Parser.h"

runtime/Cpp/runtime/src/BailErrorStrategy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#pragma once
77

88
#include "antlr4-common.h"
9+
#include "Token.h"
910
#include "DefaultErrorStrategy.h"
1011

1112
namespace antlr4 {

runtime/Cpp/runtime/src/BaseErrorListener.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <string>
77
#include <cstddef>
88
#include "BaseErrorListener.h"
9+
#include "Token.h"
910
#include "RecognitionException.h"
1011

1112
using namespace antlr4;

runtime/Cpp/runtime/src/BaseErrorListener.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <string>
99
#include <cstddef>
1010
#include "antlr4-common.h"
11+
#include "Token.h"
1112
#include "ANTLRErrorListener.h"
1213

1314
namespace antlrcpp {

runtime/Cpp/runtime/src/BufferedTokenStream.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <vector>
1010
#include <cstddef>
1111
#include "WritableToken.h"
12+
#include "Token.h"
1213
#include "antlr4-common.h"
1314
#include "Lexer.h"
1415
#include "RuleContext.h"

runtime/Cpp/runtime/src/BufferedTokenStream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <string>
1111
#include <cstddef>
1212
#include "antlr4-common.h"
13+
#include "misc/Interval.h"
14+
#include "Token.h"
1315
#include "TokenStream.h"
1416

1517
namespace antlr4 {

0 commit comments

Comments
 (0)