Skip to content

Commit af7edc5

Browse files
authored
Fix a couple missing standard headers (#4791)
* Insert `<cstddef>` in files using `size_t` Signed-off-by: Henner Zeller <[email protected]> * Insert `<string>` in files using `std::string` Signed-off-by: Henner Zeller <[email protected]> * Insert `<vector>` in files using `std::vector` Signed-off-by: Henner Zeller <[email protected]> * Insert `<utility>` in files using `std::move` Signed-off-by: Henner Zeller <[email protected]> * Insert `<string>` in files using `std::to_string` Signed-off-by: Henner Zeller <[email protected]> * Include `<memory>` in files using `std::unique_ptr`, `std::shared...` `std::unique_ptr`, `std::make_unique`, `std::shared_ptr`, and `std::make_shared` Signed-off-by: Henner Zeller <[email protected]> * Include `<utility>` in files using `std::pair` Signed-off-by: Henner Zeller <[email protected]> * Include `<map>` in files using `std::map` Signed-off-by: Henner Zeller <[email protected]> * Include `<limits>` in files using `std::numeric_limits` Signed-off-by: Henner Zeller <[email protected]> * Include `<cassert>` in files using `assert` Signed-off-by: Henner Zeller <[email protected]> --------- Signed-off-by: Henner Zeller <[email protected]>
1 parent ea9cf6a commit af7edc5

File tree

241 files changed

+589
-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.

241 files changed

+589
-0
lines changed

runtime/Cpp/runtime/src/ANTLRErrorListener.h

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#pragma once
77

8+
#include <string>
9+
#include <cstddef>
810
#include "RecognitionException.h"
911

1012
namespace antlrcpp {

runtime/Cpp/runtime/src/ANTLRFileStream.cpp

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* can be found in the LICENSE.txt file in the project root.
44
*/
55

6+
#include <string>
67
#include "ANTLRFileStream.h"
78

89
using namespace antlr4;

runtime/Cpp/runtime/src/ANTLRFileStream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#pragma once
77

8+
#include <string>
9+
#include <cstddef>
810
#include "ANTLRInputStream.h"
911

1012
namespace antlr4 {

runtime/Cpp/runtime/src/ANTLRInputStream.cpp

100755100644
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* can be found in the LICENSE.txt file in the project root.
44
*/
55

6+
#include <cassert>
7+
#include <utility>
8+
#include <string>
69
#include <string.h>
710

811
#include "Exceptions.h"

runtime/Cpp/runtime/src/ANTLRInputStream.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#pragma once
77

8+
#include <string>
9+
#include <cstddef>
810
#include <string_view>
911

1012
#include "CharStream.h"

runtime/Cpp/runtime/src/BaseErrorListener.cpp

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* can be found in the LICENSE.txt file in the project root.
44
*/
55

6+
#include <string>
7+
#include <cstddef>
68
#include "BaseErrorListener.h"
79
#include "RecognitionException.h"
810

runtime/Cpp/runtime/src/BaseErrorListener.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#pragma once
77

8+
#include <string>
9+
#include <cstddef>
810
#include "ANTLRErrorListener.h"
911

1012
namespace antlrcpp {

runtime/Cpp/runtime/src/BufferedTokenStream.cpp

100755100644
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
* can be found in the LICENSE.txt file in the project root.
44
*/
55

6+
#include <memory>
7+
#include <string>
8+
#include <utility>
9+
#include <vector>
10+
#include <cstddef>
611
#include "WritableToken.h"
712
#include "Lexer.h"
813
#include "RuleContext.h"

runtime/Cpp/runtime/src/BufferedTokenStream.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
#pragma once
77

8+
#include <memory>
9+
#include <vector>
10+
#include <string>
11+
#include <cstddef>
812
#include "TokenStream.h"
913

1014
namespace antlr4 {

runtime/Cpp/runtime/src/CharStream.h

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

66
#pragma once
77

8+
#include <string>
89
#include "IntStream.h"
910
#include "misc/Interval.h"
1011

0 commit comments

Comments
 (0)