Skip to content

Commit acf4186

Browse files
authored
Merge pull request #3 from ClickHouse/sync-upstream
Sync upstream
2 parents f91e938 + cd9cc51 commit acf4186

334 files changed

Lines changed: 26886 additions & 25622 deletions

File tree

Some content is hidden

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

.bazelignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
test/gtest-1.11.0
1+
test/googletest-1.13.0

.codedocs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ EXAMPLE_PATH =
88

99
# One or more directories and files to exclude from documentation generation.
1010
# Use relative paths with respect to the repository root directory.
11-
EXCLUDE = test/gtest-1.8.0/
11+
EXCLUDE = test/googletest-1.13.0/
1212

1313
# One or more wildcard patterns to exclude files and directories from document
1414
# generation.

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
googletest: [build, system]
2121
generator: ["Default Generator", "MinGW Makefiles"]
2222
exclude:
23+
- os: ubuntu-latest
24+
cxx_standard: 11
25+
googletest: system
2326
- os: macos-latest
2427
build: shared
2528
- os: macos-latest
@@ -47,7 +50,7 @@ jobs:
4750
packages: googletest libgmock-dev libgtest-dev
4851
version: 1.0
4952

50-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v6.0.2
5154

5255
- name: Configure
5356
run: |
@@ -105,7 +108,7 @@ jobs:
105108
os: [ubuntu-latest, windows-latest, macos-latest]
106109
runs-on: ${{ matrix.os }}
107110
steps:
108-
- uses: actions/checkout@v4
111+
- uses: actions/checkout@v6.0.2
109112

110113
- name: Build
111114
run: |
@@ -123,7 +126,7 @@ jobs:
123126
os: [ubuntu-latest, windows-latest, macos-latest]
124127
runs-on: ${{ matrix.os }}
125128
steps:
126-
- uses: actions/checkout@v4
129+
- uses: actions/checkout@v6.0.2
127130

128131
- name: Build
129132
shell: bash

.github/workflows/bzlmod-archive.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
15+
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.1.1
1616
- run: git archive $GITHUB_REF -o "yaml-cpp-${GITHUB_REF:10}.tar.gz"
1717
- run: gh release upload ${GITHUB_REF:10} "yaml-cpp-${GITHUB_REF:10}.tar.gz"
1818
env:

BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
13
yaml_cpp_defines = select({
24
# On Windows, ensure static linking is used.
35
"@platforms//os:windows": ["YAML_CPP_STATIC_DEFINE", "YAML_CPP_NO_CONTRIB"],

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# 3.5 is actually available almost everywhere, but this a good minimum.
2-
# 3.14 as the upper policy limit avoids CMake deprecation warnings.
3-
cmake_minimum_required(VERSION 3.4...3.14)
1+
# 3.5 is actually available almost everywhere.
2+
# 3.30 as the upper policy limit avoids CMake deprecation warnings.
3+
cmake_minimum_required(VERSION 3.5...3.30)
44

55
# enable MSVC_RUNTIME_LIBRARY target property
66
# see https://cmake.org/cmake/help/latest/policy/CMP0091.html
77
if(POLICY CMP0091)
88
cmake_policy(SET CMP0091 NEW)
99
endif()
1010

11-
project(YAML_CPP VERSION 0.8.0 LANGUAGES CXX)
11+
project(YAML_CPP VERSION 0.9.0 LANGUAGES CXX)
1212

1313
set(YAML_CPP_MAIN_PROJECT OFF)
1414
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
@@ -197,6 +197,7 @@ if (YAML_CPP_FORMAT_SOURCE AND YAML_CPP_CLANG_FORMAT_EXE)
197197
COMMAND clang-format --style=file -i $<TARGET_PROPERTY:yaml-cpp,SOURCES>
198198
COMMAND_EXPAND_LISTS
199199
COMMENT "Running clang-format"
200+
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
200201
VERBATIM)
201202
endif()
202203

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Commit messages should be in the imperative mood, as described in the [Git contr
1717

1818
# Tests
1919

20-
Please verify the tests pass by running the target `test/yaml-cpp-tests`.
20+
Please verify the tests pass by configuring CMake with `-D YAML_CPP_BUILD_TESTS=ON` and running the target `test/yaml-cpp-tests`.
2121

22-
If you are adding functionality, add tests accordingly.
22+
If you are adding functionality, add tests accordingly. Note that the "spec tests" are reserved for examples directly from the YAML spec, so if you have new examples, put them in other test files.
2323

2424
# Pull request process
2525

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module(
88
version = "0.8.0",
99
)
1010

11-
bazel_dep(name = "platforms", version = "0.0.7")
12-
bazel_dep(name = "rules_cc", version = "0.0.8")
11+
bazel_dep(name = "platforms", version = "1.0.0")
12+
bazel_dep(name = "rules_cc", version = "0.2.14")
1313

14-
bazel_dep(name = "googletest", version = "1.14.0", dev_dependency = True)
14+
bazel_dep(name = "googletest", version = "1.17.0.bcr.2", dev_dependency = True)

MODULE.bazel.lock

Lines changed: 282 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,18 @@ FetchContent_Declare(
6161
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
6262
GIT_TAG <tag_name> # Can be a tag (yaml-cpp-x.x.x), a commit hash, or a branch name (master)
6363
)
64-
FetchContent_GetProperties(yaml-cpp)
65-
66-
if(NOT yaml-cpp_POPULATED)
67-
message(STATUS "Fetching yaml-cpp...")
68-
FetchContent_Populate(yaml-cpp)
69-
add_subdirectory(${yaml-cpp_SOURCE_DIR} ${yaml-cpp_BINARY_DIR})
70-
endif()
64+
FetchContent_MakeAvailable(yaml-cpp)
7165
7266
target_link_libraries(YOUR_LIBRARY PUBLIC yaml-cpp::yaml-cpp) # The library or executable that require yaml-cpp library
7367
```
7468

7569
## Recent Releases
7670

77-
[yaml-cpp 0.6.0](https://github.com/jbeder/yaml-cpp/releases/tag/yaml-cpp-0.6.0) released! This release requires C++11, and no longer depends on Boost.
71+
[yaml-cpp 0.9.0](https://github.com/jbeder/yaml-cpp/releases/tag/yaml-cpp-0.9.0) released!
7872

7973
[yaml-cpp 0.3.0](https://github.com/jbeder/yaml-cpp/releases/tag/release-0.3.0) is still available if you want the old API.
8074

81-
**The old API will continue to be supported, and will still receive bugfixes!** The 0.3.x and 0.4.x versions will be old API releases, and 0.5.x and above will all be new API releases.
75+
**The old API will stop receiving bugfixes in 2026.** The 0.3.x versions provide the old API, and 0.5.x and above all provide the new API.
8276

8377
# API Documentation
8478

0 commit comments

Comments
 (0)