Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add top missing antlr4 headers inside impl. #4793

Merged
merged 9 commits into from
Mar 9, 2025
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ANTLRErrorListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "Token.h"
#include "RecognitionException.h"

namespace antlrcpp {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ANTLRErrorStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "Token.h"

namespace antlr4 {
class Parser;

/// <summary>
/// The interface for defining strategies to deal with syntax errors encountered
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ANTLRFileStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include <string>
#include "ANTLRInputStream.h"
#include "ANTLRFileStream.h"

using namespace antlr4;
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ANTLRInputStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string_view>

#include "antlr4-common.h"
#include "misc/Interval.h"
#include "CharStream.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/BailErrorStrategy.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

#include "Exceptions.h"
#include "Token.h"
#include "ParserRuleContext.h"
#include "InputMismatchException.h"
#include "Parser.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/BailErrorStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once

#include "antlr4-common.h"
#include "Token.h"
#include "DefaultErrorStrategy.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/BaseErrorListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <string>
#include <cstddef>
#include "BaseErrorListener.h"
#include "Token.h"
#include "RecognitionException.h"

using namespace antlr4;
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/BaseErrorListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "Token.h"
#include "ANTLRErrorListener.h"

namespace antlrcpp {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/BufferedTokenStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <vector>
#include <cstddef>
#include "WritableToken.h"
#include "Token.h"
#include "antlr4-common.h"
#include "Lexer.h"
#include "RuleContext.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/BufferedTokenStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "misc/Interval.h"
#include "Token.h"
#include "TokenStream.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/CommonToken.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <string>
#include <cstddef>
#include "TokenSource.h"
#include "Token.h"
#include "antlr4-common.h"
#include "CharStream.h"
#include "Recognizer.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/CommonToken.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "Token.h"
#include "WritableToken.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/CommonTokenStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <cstddef>
#include "antlr4-common.h"
#include "Token.h"
#include "BufferedTokenStream.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ConsoleErrorListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <string>
#include <cstddef>
#include "Token.h"
#include "ConsoleErrorListener.h"

using namespace antlr4;
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ConsoleErrorListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "Token.h"
#include "BaseErrorListener.h"

namespace antlr4 {
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/DefaultErrorStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <string>
#include <cstddef>
#include "NoViableAltException.h"
#include "atn/ATNStateType.h"
#include "Token.h"
#include "antlr4-common.h"
#include "misc/IntervalSet.h"
#include "atn/ParserATNSimulator.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/DefaultErrorStrategy.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string>
#include <cstddef>
#include "ANTLRErrorStrategy.h"
#include "Token.h"
#include "antlr4-common.h"
#include "misc/IntervalSet.h"

Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/FailedPredicateException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <cstddef>
#include "atn/ParserATNSimulator.h"
#include "atn/TransitionType.h"
#include "Parser.h"
#include "atn/PredicateTransition.h"
#include "atn/ATN.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/Lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <vector>
#include <cstddef>
#include "atn/LexerATNSimulator.h"
#include "Token.h"
#include "antlr4-common.h"
#include "Exceptions.h"
#include "misc/Interval.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ListTokenSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string>
#include <cstddef>
#include "TokenSource.h"
#include "Token.h"
#include "antlr4-common.h"
#include "CommonTokenFactory.h"

Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/NoViableAltException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "Parser.h"

#include "Token.h"
#include "antlr4-common.h"
#include "NoViableAltException.h"

Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <vector>
#include <cstddef>
#include "atn/ATNDeserializationOptions.h"
#include "ANTLRErrorStrategy.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "tree/pattern/ParseTreePatternMatcher.h"
#include "dfa/DFA.h"
Expand Down
3 changes: 3 additions & 0 deletions runtime/Cpp/runtime/src/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include <string>
#include <cstddef>
#include "Recognizer.h"
#include "misc/IntervalSet.h"
#include "ANTLRErrorStrategy.h"
#include "Token.h"
#include "antlr4-common.h"
#include "tree/ParseTreeListener.h"
#include "tree/ParseTree.h"
Expand Down
3 changes: 3 additions & 0 deletions runtime/Cpp/runtime/src/ParserInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#include <string>
#include <cstddef>
#include "dfa/DFA.h"
#include "atn/ATNStateType.h"
#include "atn/TransitionType.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "atn/RuleStartState.h"
#include "InterpreterRuleContext.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/ParserInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <string>
#include <cstddef>
#include "Parser.h"
#include "Token.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "atn/ATN.h"
#include "support/BitSet.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/ParserRuleContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <string>
#include <cstddef>
#include "RuleContext.h"
#include "misc/Interval.h"
#include "Token.h"
#include "antlr4-common.h"
#include "support/CPPUtils.h"

Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/ProxyErrorListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include <string>
#include <cstddef>
#include "Token.h"
#include "ANTLRErrorListener.h"
#include "ProxyErrorListener.h"

using namespace antlr4;
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/ProxyErrorListener.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <cstddef>
#include "ANTLRErrorListener.h"
#include "Token.h"
#include "antlr4-common.h"
#include "Exceptions.h"

Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/RecognitionException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <cstddef>
#include "atn/ATN.h"
#include "Token.h"
#include "antlr4-common.h"
#include "Recognizer.h"
#include "ParserRuleContext.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/RecognitionException.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "misc/IntervalSet.h"
#include "Token.h"
#include "Exceptions.h"

namespace antlr4 {
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/Recognizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <string>
#include <cstddef>
#include "ConsoleErrorListener.h"
#include "ANTLRErrorListener.h"
#include "atn/ATNState.h"
#include "RecognitionException.h"
#include "support/CPPUtils.h"
#include "Token.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/Recognizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#include <string>
#include <cstddef>
#include "ProxyErrorListener.h"
#include "ANTLRErrorListener.h"
#include "Token.h"
#include "antlr4-common.h"
#include "support/Casts.h"
#include "atn/SerializedATNView.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/RuleContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <string>
#include <cstddef>
#include "tree/Trees.h"
#include "tree/ParseTreeType.h"
#include "antlr4-common.h"
#include "misc/Interval.h"
#include "Parser.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/RuleContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "tree/ParseTreeType.h"
#include "misc/Interval.h"
#include "tree/ParseTree.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/TokenSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "Token.h"
#include "TokenFactory.h"

namespace antlr4 {
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/TokenStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "misc/Interval.h"
#include "Token.h"
#include "IntStream.h"

namespace antlr4 {
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/TokenStreamRewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <vector>
#include <string>
#include <cstddef>
#include "Token.h"
#include "misc/Interval.h"
#include "antlr4-common.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/UnbufferedCharStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "misc/Interval.h"
#include "CharStream.h"

namespace antlr4 {
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/UnbufferedTokenStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "misc/Interval.h"
#include "Token.h"
#include "TokenStream.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/atn/ATN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <cstddef>
#include "atn/LL1Analyzer.h"
#include "atn/ATNState.h"
#include "Token.h"
#include "atn/RuleTransition.h"
#include "misc/IntervalSet.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/atn/ATN.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include <string>
#include <cstddef>
#include "RuleContext.h"
#include "misc/IntervalSet.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "internal/Synchronization.h"

Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/atn/ATNConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <string>
#include <cstddef>
#include "misc/MurmurHash.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "atn/PredictionContext.h"
#include "SemanticContext.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/atn/ATNConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <cassert>

#include "antlr4-common.h"
#include "atn/ATNState.h"
#include "atn/SemanticContext.h"

namespace antlr4 {
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/atn/ATNConfigSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <vector>
#include <cstddef>
#include "atn/PredictionContext.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "atn/ATNConfig.h"
#include "atn/ATNSimulator.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/atn/ATNConfigSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <cassert>

#include "support/BitSet.h"
#include "atn/ATNState.h"
#include "antlr4-common.h"
#include "atn/PredictionContext.h"
#include "atn/ATNConfig.h"
Expand Down
1 change: 1 addition & 0 deletions runtime/Cpp/runtime/src/atn/ATNDeserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "atn/ATNDeserializationOptions.h"

#include "atn/ATNStateType.h"
#include "antlr4-common.h"
#include "atn/ATNType.h"
#include "atn/ATNState.h"
Expand Down
2 changes: 2 additions & 0 deletions runtime/Cpp/runtime/src/atn/ActionTransition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <string>
#include <cstddef>
#include "antlr4-common.h"
#include "atn/TransitionType.h"
#include "atn/ATNState.h"
#include "atn/ActionTransition.h"

using namespace antlr4::atn;
Expand Down
Loading
Loading