Skip to content

Commit 3b454f0

Browse files
committed
bump version to 4.8.0, update stl.h in linter script
1 parent 820babe commit 3b454f0

File tree

6 files changed

+18
-27
lines changed

6 files changed

+18
-27
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ endif()
77

88
cmake_minimum_required(VERSION ${CMAKEVER})
99
project("unordered_dense"
10-
VERSION 4.7.0
10+
VERSION 4.8.0
1111
DESCRIPTION "A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion"
1212
HOMEPAGE_URL "https://github.com/martinus/unordered_dense"
1313
LANGUAGES CXX)

include/ankerl/stl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
///////////////////////// ankerl::unordered_dense::{map, set} /////////////////////////
22

33
// A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion.
4-
// Version 4.5.0
4+
// Version 4.8.0
55
// https://github.com/martinus/unordered_dense
66
//
77
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.

include/ankerl/unordered_dense.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
///////////////////////// ankerl::unordered_dense::{map, set} /////////////////////////
22

33
// A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion.
4-
// Version 4.7.0
4+
// Version 4.8.0
55
// https://github.com/martinus/unordered_dense
66
//
77
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
@@ -31,7 +31,7 @@
3131

3232
// see https://semver.org/spec/v2.0.0.html
3333
#define ANKERL_UNORDERED_DENSE_VERSION_MAJOR 4 // NOLINT(cppcoreguidelines-macro-usage) incompatible API changes
34-
#define ANKERL_UNORDERED_DENSE_VERSION_MINOR 7 // NOLINT(cppcoreguidelines-macro-usage) backwards compatible functionality
34+
#define ANKERL_UNORDERED_DENSE_VERSION_MINOR 8 // NOLINT(cppcoreguidelines-macro-usage) backwards compatible functionality
3535
#define ANKERL_UNORDERED_DENSE_VERSION_PATCH 0 // NOLINT(cppcoreguidelines-macro-usage) backwards compatible bug fixes
3636

3737
// API versioning with inline namespace, see https://www.foonathan.net/2018/11/inline-namespaces/

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919

2020
project('unordered_dense', 'cpp',
21-
version: '4.7.0',
21+
version: '4.8.0',
2222
license: 'MIT',
2323
default_options : [
2424
'cpp_std=c++17',

scripts/lint/lint-version.py

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,11 @@
99

1010
# filename, pattern, number of occurrences
1111
file_pattern_count = [
12-
(
13-
f"{root}/meson.build",
14-
r"version: '(\d+)\.(\d+)\.(\d+)'",
15-
1),
16-
(
17-
f"{root}/include/ankerl/unordered_dense.h",
18-
r"Version (\d+)\.(\d+)\.(\d+)\n",
19-
1),
20-
(
21-
f"{root}/CMakeLists.txt",
22-
r"^\s+VERSION (\d+)\.(\d+)\.(\d+)\n",
23-
1),
24-
(
25-
f"{root}/test/unit/namespace.cpp",
26-
r"unordered_dense::v(\d+)_(\d+)_(\d+)",
27-
1
28-
)
12+
(f"{root}/CMakeLists.txt", r"^\s+VERSION (\d+)\.(\d+)\.(\d+)\n", 1),
13+
(f"{root}/include/ankerl/stl.h", r"Version (\d+)\.(\d+)\.(\d+)\n", 1),
14+
(f"{root}/include/ankerl/unordered_dense.h", r"Version (\d+)\.(\d+)\.(\d+)\n", 1),
15+
(f"{root}/meson.build", r"version: '(\d+)\.(\d+)\.(\d+)'", 1),
16+
(f"{root}/test/unit/namespace.cpp", r"unordered_dense::v(\d+)_(\d+)_(\d+)", 1),
2917
]
3018

3119
# let's parse the reference from svector.h
@@ -49,7 +37,7 @@
4937
exit(1)
5038

5139
is_ok = True
52-
for (filename, pattern, count) in file_pattern_count:
40+
for filename, pattern, count in file_pattern_count:
5341
num_found = 0
5442
with open(filename, "r") as f:
5543
for line in f:
@@ -58,11 +46,14 @@
5846
num_found += 1
5947
if major != r.group(1) or minor != r.group(2) or patch != r.group(3):
6048
is_ok = False
61-
print(f"ERROR in {filename}: got '{line.strip()}' but version should be '{major}.{minor}.{patch}'")
49+
print(
50+
f"ERROR in {filename}: got '{line.strip()}' but version should be '{major}.{minor}.{patch}'"
51+
)
6252
if num_found != count:
6353
is_ok = False
64-
print(f"ERROR in {filename}: expected {count} occurrences but found it {num_found} times")
54+
print(
55+
f"ERROR in {filename}: expected {count} occurrences but found it {num_found} times"
56+
)
6557

6658
if not is_ok:
6759
exit(1)
68-

test/unit/namespace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <ankerl/unordered_dense.h>
22
#include <app/doctest.h>
33

4-
namespace versioned_namespace = ankerl::unordered_dense::v4_7_0;
4+
namespace versioned_namespace = ankerl::unordered_dense::v4_8_0;
55

66
static_assert(std::is_same_v<versioned_namespace::map<int, int>, ankerl::unordered_dense::map<int, int>>);
77
static_assert(std::is_same_v<versioned_namespace::hash<int>, ankerl::unordered_dense::hash<int>>);

0 commit comments

Comments
 (0)