Skip to content

Commit 53f45c1

Browse files
committed
Merge branch 'main' into precommit
2 parents 67c2168 + af67bc6 commit 53f45c1

16 files changed

+1668
-591
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
- {name: "Ubuntu Clang 18", os: ubuntu-24.04, toolchain: "clang-18", clang_version: 18, installed_clang_version: 17, cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
1717
# Note: clang-19 + Asan setup causes errors on some platforms. Temporary skip some checks via .asan_options.
1818
- {name: "Ubuntu Clang 19", os: ubuntu-24.04, toolchain: "clang-19", clang_version: 19, installed_clang_version: 17, cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" ", asan_options: "new_delete_type_mismatch=0"}
19+
- {name: "Ubuntu GCC 11", os: ubuntu-24.04, toolchain: "gcc-11", cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
20+
- {name: "Ubuntu GCC 12", os: ubuntu-24.04, toolchain: "gcc-12", cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
1921
- {name: "Ubuntu GCC 13", os: ubuntu-24.04, toolchain: "gcc-13", cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
2022
- {name: "Ubuntu GCC 14", os: ubuntu-24.04, toolchain: "gcc-14", cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "}
2123
steps:

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# cmake-format: off
2-
# /CMakeLists.txt -*-makefile-*-
1+
# CMakeLists.txt -*-CMake-*-
2+
#
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4-
# cmake-format: on
54

65
cmake_minimum_required(VERSION 3.27)
76

@@ -22,7 +21,7 @@ if(BUILD_TESTING)
2221
FetchContent_Declare(
2322
googletest
2423
GIT_REPOSITORY https://github.com/google/googletest.git
25-
GIT_TAG f8d7d77c06936315286eb55f8de22cd23c188571 # release-1.14.0
24+
GIT_TAG e39786088138f2749d64e9e90e0f9902daa77c40 # release-1.15.0
2625
)
2726
FetchContent_MakeAvailable(googletest)
2827
endif()

etc/gcc-15-toolchain.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include_guard(GLOBAL)
2+
3+
include("${CMAKE_CURRENT_LIST_DIR}/gcc-flags.cmake")
4+
5+
set(CMAKE_C_COMPILER gcc-15)
6+
set(CMAKE_CXX_COMPILER g++-15)

include/Beman/Optional26/optional.hpp

Lines changed: 118 additions & 94 deletions
Large diffs are not rendered by default.

src/Beman/Optional26/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ target_include_directories(
1212
beman_optional26
1313
PUBLIC
1414
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../../include>
15-
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_LOWER_PROJECT_NAME}>
15+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../../src/>
16+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_LOWER_PROJECT_NAME}> # <prefix>/include/scratch
1617
)
1718

1819
install(

src/Beman/Optional26/optional.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// src/Beman/Optional26/optional.cpp -*-C++-*-
1+
// src/Beman/Optional26/optional.cpp -*-C++-*-
22
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
33

44
#include <Beman/Optional26/optional.hpp>

src/Beman/Optional26/tests/CMakeLists.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,26 @@ include(GoogleTest)
88
# Tests
99
add_executable(
1010
beman_optional26_test
11-
detail/iterator.t.cpp optional_monadic.t.cpp optional_range_support.t.cpp
12-
optional_ref_monadic.t.cpp optional_ref.t.cpp optional.t.cpp)
11+
)
1312

14-
target_link_libraries(beman_optional26_test beman_optional26 GTest::gtest
15-
GTest::gtest_main)
13+
target_sources(
14+
beman_optional26_test
15+
PRIVATE
16+
optional_monadic.t.cpp
17+
optional_range_support.t.cpp
18+
optional_ref_monadic.t.cpp
19+
optional_ref.t.cpp
20+
optional.t.cpp
21+
optional_constexpr.t.cpp
22+
test_types.cpp
23+
test_utilities.cpp)
24+
25+
target_link_libraries(
26+
beman_optional26_test
27+
PRIVATE
28+
beman_optional26
29+
GTest::gtest
30+
GTest::gtest_main)
1631

1732
# Issue #32: Re-enable ASAN run CI/clang-19.
1833
#

0 commit comments

Comments
 (0)