Skip to content

Commit 4f1c62a

Browse files
Bump version of protozero to 1.7.1 (#6999)
1 parent 09a716a commit 4f1c62a

File tree

300 files changed

+577
-24803
lines changed

Some content is hidden

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

300 files changed

+577
-24803
lines changed

scripts/update_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ MICROTAR_PATH="rxi/microtar"
2222
MICROTAR_TAG=v0.1.0
2323

2424
PROTOZERO_PATH="mapbox/protozero"
25-
PROTOZERO_TAG=v1.6.2
25+
PROTOZERO_TAG=v1.7.1
2626

2727
VTZERO_PATH="mapbox/vtzero"
2828
VTZERO_TAG=v1.1.0

third_party/protozero/.clang-tidy

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
---
2-
Checks: '*,-bugprone-signed-char-misuse,-cert-dcl21-cpp,-cert-err58-cpp,-cert-err60-cpp,-cppcoreguidelines-avoid-c-arrays,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-type-reinterpret-cast,-fuchsia-*,-google-runtime-references,-hicpp-avoid-c-arrays,-hicpp-no-array-decay,-hicpp-vararg,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-implicit-bool-conversion,-readability-magic-numbers'
2+
Checks: '*,-altera-*,-bugprone-easily-swappable-parameters,-bugprone-signed-char-misuse,-cert-dcl21-cpp,-cert-err58-cpp,-cert-err60-cpp,-cppcoreguidelines-avoid-c-arrays,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-macro-usage,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-type-reinterpret-cast,-fuchsia-*,-google-runtime-references,-hicpp-avoid-c-arrays,-hicpp-no-array-decay,-hicpp-vararg,-llvmlibc-*,-misc-no-recursion,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-function-cognitive-complexity,-readability-identifier-length,-readability-implicit-bool-conversion,-readability-magic-numbers'
33
#
44
# Disabled checks:
55
#
6+
# altera-*
7+
# Doesn't apply.
8+
#
9+
# bugprone-easily-swappable-parameters
10+
# Can't change this any more, because these functions are part of our public
11+
# interface.
12+
#
613
# bugprone-signed-char-misuse
714
# Lots of warnings in varint.hpp otherwise.
815
#
@@ -25,6 +32,9 @@ Checks: '*,-bugprone-signed-char-misuse,-cert-dcl21-cpp,-cert-err58-cpp,-cert-er
2532
# readability-magic-numbers
2633
# Good idea, but it goes too far to force this everywhere.
2734
#
35+
# cppcoreguidelines-avoid-non-const-global-variables
36+
# Getting these from Catch2 test framework, not from the code itself.
37+
#
2838
# cppcoreguidelines-macro-usage
2939
# There are cases where macros are simply needed.
3040
#
@@ -47,9 +57,21 @@ Checks: '*,-bugprone-signed-char-misuse,-cert-dcl21-cpp,-cert-err58-cpp,-cert-er
4757
# hicpp-no-array-decay
4858
# Limited use and many false positives including for all asserts.
4959
#
60+
# llvmlibc-*
61+
# Doesn't apply.
62+
#
63+
# misc-no-recursion
64+
# Nothing wrong with recursion.
65+
#
5066
# modernize-use-trailing-return-type
5167
# We are not quite that modern.
5268
#
69+
# readability-function-cognitive-complexity
70+
# Getting these mostly from Catch2 test framework.
71+
#
72+
# readability-identifier-length
73+
# Short identifiers do make sense sometimes.
74+
#
5375
# readability-implicit-bool-conversion
5476
# Not necessarily more readable.
5577
#

third_party/protozero/CHANGELOG.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Changelog
33

44
All notable changes to this project will be documented in this file.
5-
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6-
This project adheres to [Semantic Versioning](http://semver.org/).
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
6+
This project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [unreleased] -
99

@@ -14,6 +14,24 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1414
### Fixed
1515

1616

17+
## [1.7.1] - 2022-01-10
18+
19+
### Changed
20+
21+
- Don't build tests if the standard CMake `BUILD_TESTING` variable is set to
22+
off.
23+
- Now needs CMake 3.5.0 or greater.
24+
- Update included catch2 framework to current version v2.13.8.
25+
- Only enable clang-tidy make target if protobuf was found.
26+
- Allow setting C++ version to compile with in CMake config.
27+
28+
### Fixed
29+
30+
- Fixes undefined behaviour in `float` and `double` byteswap.
31+
- Add missing includes of "config.hpp".
32+
- Avoid narrowing conversion by doing an explicit `static_cast`.
33+
34+
1735
## [1.7.0] - 2020-06-08
1836

1937
### Added
@@ -381,7 +399,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
381399
- Make pbf reader and writer code endianess-aware.
382400

383401

384-
[unreleased]: https://github.com/osmcode/libosmium/compare/v1.7.0...HEAD
402+
[unreleased]: https://github.com/osmcode/libosmium/compare/v1.7.1...HEAD
403+
[1.7.1]: https://github.com/osmcode/libosmium/compare/v1.7.0...v1.7.1
385404
[1.7.0]: https://github.com/osmcode/libosmium/compare/v1.6.8...v1.7.0
386405
[1.6.8]: https://github.com/osmcode/libosmium/compare/v1.6.7...v1.6.8
387406
[1.6.7]: https://github.com/osmcode/libosmium/compare/v1.6.6...v1.6.7

third_party/protozero/CMakeLists.txt

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,35 @@
66
#
77
#-----------------------------------------------------------------------------
88

9-
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
9+
cmake_minimum_required(VERSION 3.5.0 FATAL_ERROR)
1010

1111
#-----------------------------------------------------------------------------
1212

13-
project(protozero)
13+
project(protozero VERSION 1.7.1 LANGUAGES CXX C)
1414

15-
set(PROTOZERO_VERSION_MAJOR 1)
16-
set(PROTOZERO_VERSION_MINOR 7)
17-
set(PROTOZERO_VERSION_PATCH 0)
15+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1816

19-
set(PROTOZERO_VERSION
20-
"${PROTOZERO_VERSION_MAJOR}.${PROTOZERO_VERSION_MINOR}.${PROTOZERO_VERSION_PATCH}")
17+
#-----------------------------------------------------------------------------
2118

22-
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
19+
if (NOT "${CMAKE_CXX_STANDARD}")
20+
set(CMAKE_CXX_STANDARD 11)
21+
endif()
22+
message(STATUS "Building in C++${CMAKE_CXX_STANDARD} mode")
23+
set(CMAKE_CXX_EXTENSIONS OFF)
24+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2325

2426
#-----------------------------------------------------------------------------
2527

28+
option(BUILD_TESTING "Build tests" ON)
2629
option(WERROR "Add -Werror flag to build (turns warnings into errors)" ON)
2730

2831
if(MSVC)
29-
add_definitions(/W3)
32+
add_compile_options(/W3)
3033
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS)
3134
else()
32-
add_definitions(-std=c++11 -Wall -Wextra -pedantic -Wsign-compare -Wunused-parameter -Wno-float-equal -Wno-covered-switch-default)
35+
add_compile_options(-Wall -Wextra -pedantic -Wsign-compare -Wunused-parameter -Wno-float-equal -Wno-covered-switch-default)
3336
if(WERROR)
34-
add_definitions(-Werror)
37+
add_compile_options(-Werror)
3538
endif()
3639
endif()
3740

@@ -58,9 +61,9 @@ find_package(Protobuf)
5861
#
5962
#-----------------------------------------------------------------------------
6063
message(STATUS "Looking for clang-tidy")
61-
find_program(CLANG_TIDY NAMES clang-tidy clang-tidy-10 clang-tidy-9 clang-tidy-8 clang-tidy-7 clang-tidy-6.0 clang-tidy-5.0)
64+
find_program(CLANG_TIDY NAMES clang-tidy clang-tidy-14 clang-tidy-13 clang-tidy-12 clang-tidy-11)
6265

63-
if(CLANG_TIDY)
66+
if(CLANG_TIDY AND PROTOBUF_FOUND)
6467
message(STATUS "Looking for clang-tidy - found ${CLANG_TIDY}")
6568
add_custom_target(clang-tidy
6669
${CLANG_TIDY}
@@ -134,13 +137,13 @@ install(DIRECTORY include/protozero DESTINATION include)
134137

135138
#-----------------------------------------------------------------------------
136139

137-
enable_testing()
138-
139140
add_subdirectory(doc)
140141

141-
add_subdirectory(tools)
142-
143-
add_subdirectory(test)
142+
if(BUILD_TESTING)
143+
enable_testing()
144+
add_subdirectory(test)
145+
endif()
144146

147+
add_subdirectory(tools)
145148

146149
#-----------------------------------------------------------------------------

third_party/protozero/FUZZING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
To do fuzz testing using [AFL](http://lcamtuf.coredump.cx/afl/) compile with
2+
To do fuzz testing using [AFL](https://lcamtuf.coredump.cx/afl/) compile with
33
the AFL compiler wrappers:
44

55
mkdir build

third_party/protozero/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ changing frequently or lazy decoding is not critical for your application then
1111
this approach offers no value: just use the C++ API that can be generated with
1212
the Google Protobufs `protoc` program.
1313

14-
[![Travis Build Status](https://travis-ci.org/mapbox/protozero.svg?branch=master)](https://travis-ci.org/mapbox/protozero)
14+
[![Travis Build Status](https://travis-ci.com/mapbox/protozero.svg?branch=master)](https://travis-ci.com/mapbox/protozero)
1515
[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/github/mapbox/protozero?svg=true)](https://ci.appveyor.com/project/Mapbox/protozero)
1616
[![Coverage Status](https://codecov.io/gh/mapbox/protozero/branch/master/graph/badge.svg)](https://codecov.io/gh/mapbox/protozero)
1717
[![Packaging status](https://repology.org/badge/tiny-repos/protozero.svg)](https://repology.org/metapackage/protozero)
@@ -123,7 +123,7 @@ You might have to set `CLANG_TIDY` in CMake config.
123123

124124
## Cppcheck
125125

126-
For extra checks with [Cppcheck](http://cppcheck.sourceforge.net/) you can,
126+
For extra checks with [Cppcheck](https://cppcheck.sourceforge.io/) you can,
127127
after the CMake step, call
128128

129129
make cppcheck

third_party/protozero/appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ clone_depth: 1
1414

1515
environment:
1616
matrix:
17-
- config: MSYS2
18-
autocrlf: true
1917
- config: Debug
2018
autocrlf: true
2119
- config: RelWithDebInfo
@@ -27,6 +25,9 @@ environment:
2725
- config: Debug
2826
autocrlf: false
2927
platform: x86
28+
- config: MSYS2
29+
autocrlf: true
30+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
3031

3132
#-----------------------------------------------------------------------------
3233

third_party/protozero/bench/data/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
mapbox-streets-v6/14/8714/8017.vector.pbf
44

5-
- http://c.tile.openstreetmap.org/14/8714/8017.png
5+
- https://c.tile.openstreetmap.org/14/8714/8017.png
66
- https://a.tiles.mapbox.com/v4/mapbox.mapbox-streets-v6/14/8714/8017.vector.pbf
77
- https://www.mapbox.com/developers/vector-tiles/mapbox-streets/
88

99
enf-14-4824-6157.vector.pbf
1010

1111
- enf.8k273nmi
1212
- https://b.tiles.mapbox.com/v4/enf.c3a2de35/14/4824/6157@2x.png
13-
- https://www.mapbox.com/blog/twitter-map-every-tweet/
13+
- https://www.mapbox.com/blog/twitter-map-every-tweet/

0 commit comments

Comments
 (0)