Skip to content

Commit 5435f14

Browse files
authored
More header includes towards each file being self-contained (#4794)
* Include `<sstream>` in files using `std::stringstream` Signed-off-by: Henner Zeller <[email protected]> * Include `<exception>` in files using exceptions Signed-off-by: Henner Zeller <[email protected]> * Include `<unordered_map>` in files using `std::unordered_map` Signed-off-by: Henner Zeller <[email protected]> * Include `<unordered_set>` in files using `std::unordered_set` Signed-off-by: Henner Zeller <[email protected]> * Include `<memory>` in files using `std::addressof` Signed-off-by: Henner Zeller <[email protected]> * Include `<string_view>` in files using `std::string_view` Signed-off-by: Henner Zeller <[email protected]> --------- Signed-off-by: Henner Zeller <[email protected]>
1 parent ec1b5f3 commit 5435f14

Some content is hidden

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

67 files changed

+73
-0
lines changed

runtime/Cpp/runtime/src/ANTLRErrorListener.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 <exception>
89
#include <string>
910
#include <cstddef>
1011
#include "antlr4-common.h"

runtime/Cpp/runtime/src/ANTLRErrorStrategy.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 <exception>
89
#include "antlr4-common.h"
910
#include "Token.h"
1011

runtime/Cpp/runtime/src/ANTLRInputStream.cpp

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_view>
67
#include <cassert>
78
#include <utility>
89
#include <string>

runtime/Cpp/runtime/src/BailErrorStrategy.cpp

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 <exception>
67
#include "Exceptions.h"
78
#include "Token.h"
89
#include "ParserRuleContext.h"

runtime/Cpp/runtime/src/BailErrorStrategy.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 <exception>
89
#include "antlr4-common.h"
910
#include "Token.h"
1011
#include "DefaultErrorStrategy.h"

runtime/Cpp/runtime/src/BaseErrorListener.cpp

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 <exception>
67
#include <string>
78
#include <cstddef>
89
#include "BaseErrorListener.h"

runtime/Cpp/runtime/src/BaseErrorListener.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 <exception>
89
#include <string>
910
#include <cstddef>
1011
#include "antlr4-common.h"

runtime/Cpp/runtime/src/BufferedTokenStream.cpp

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 <sstream>
67
#include <memory>
78
#include <string>
89
#include <utility>

runtime/Cpp/runtime/src/CommonToken.cpp

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 <sstream>
67
#include <utility>
78
#include <string>
89
#include <cstddef>

runtime/Cpp/runtime/src/ConsoleErrorListener.cpp

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 <exception>
67
#include <string>
78
#include <cstddef>
89
#include "Token.h"

0 commit comments

Comments
 (0)