Skip to content

Commit c4d1957

Browse files
authored
Merge branch 'antlr:dev' into dev
2 parents 60e1a70 + bd8f993 commit c4d1957

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

.github/workflows/hosted.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
os: [
2424
macos-15,
25-
ubuntu-20.04,
25+
ubuntu-22.04,
2626
windows-2022
2727
]
2828
compiler: [ clang, gcc ]
@@ -161,7 +161,7 @@ jobs:
161161
matrix:
162162
os: [
163163
macos-15,
164-
ubuntu-20.04,
164+
ubuntu-22.04,
165165
windows-2022
166166
]
167167
target: [

runtime/Cpp/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ if(WITH_DEMO)
138138
add_subdirectory(demo)
139139
endif(WITH_DEMO)
140140

141+
include(GNUInstallDirs)
142+
141143
# Generate CMake Package Files only if install is active
142144
if (ANTLR4_INSTALL)
143145

144-
include(GNUInstallDirs)
145146
include(CMakePackageConfigHelpers)
146147

147148
if(NOT ANTLR4_CMAKE_DIR)
@@ -202,14 +203,14 @@ endif(ANTLR4_INSTALL)
202203

203204
if(EXISTS LICENSE.txt)
204205
install(FILES LICENSE.txt
205-
DESTINATION "share/doc/libantlr4")
206+
DESTINATION ${CMAKE_INSTALL_DOCDIR})
206207
elseif(EXISTS ../../LICENSE.txt)
207208
install(FILES ../../LICENSE.txt
208-
DESTINATION "share/doc/libantlr4")
209+
DESTINATION ${CMAKE_INSTALL_DOCDIR})
209210
endif()
210211

211212
install(FILES README.md VERSION
212-
DESTINATION "share/doc/libantlr4")
213+
DESTINATION ${CMAKE_INSTALL_DOCDIR})
213214

214215
set(CPACK_PACKAGE_CONTACT "[email protected]")
215216
set(CPACK_PACKAGE_VERSION ${ANTLR_VERSION})

runtime/Cpp/runtime/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (NOT ANTLR_BUILD_SHARED AND NOT ANTLR_BUILD_STATIC)
77
message(FATAL_ERROR "Options ANTLR_BUILD_SHARED and ANTLR_BUILD_STATIC can't both be OFF")
88
endif()
99

10-
set(libantlrcpp_INCLUDE_INSTALL_DIR "include/antlr4-runtime")
10+
set(libantlrcpp_INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/antlr4-runtime")
1111

1212
set(libantlrcpp_INCLUDE_DIRS
1313
${PROJECT_SOURCE_DIR}/runtime/src
@@ -70,7 +70,7 @@ if (ANTLR_BUILD_CPP_TESTS)
7070

7171
FetchContent_Declare(
7272
googletest
73-
URL https://github.com/google/googletest/archive/e2239ee6043f73722e7aa812a459f54a28552929.zip
73+
URL https://github.com/google/googletest/archive/refs/tags/v1.16.0.zip
7474
)
7575

7676
if(WITH_STATIC_CRT)

runtime/Cpp/runtime/src/RuleContext.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ namespace antlr4 {
138138

139139
virtual std::string toString(const std::vector<std::string> &ruleNames, RuleContext *stop);
140140

141-
bool operator == (const RuleContext &other) { return this == &other; } // Simple address comparison.
142-
143141
private:
144142
void InitializeInstanceFields();
145143
};

runtime/JavaScript/src/antlr4/Parser.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ export declare class Parser extends Recognizer<Token> {
4646
setTokenStream(input: TokenStream): void;
4747
notifyErrorListeners(msg: string, offendingToken: Token, err: RecognitionException | undefined): void;
4848
getCurrentToken(): Token;
49+
getInvokingContext(ruleIndex: number): ParserRuleContext;
4950

5051
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from './BitSet'
12
export * from './Interval'
23
export * from './IntervalSet';
34

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
import BitSet from './BitSet.js';
12
import Interval from './Interval.js';
23
import IntervalSet from './IntervalSet.js';
34

4-
export default { Interval, IntervalSet }
5+
export default { BitSet, Interval, IntervalSet }

0 commit comments

Comments
 (0)