-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to clang-tidy 18 #6919
Upgrade to clang-tidy 18 #6919
Changes from 28 commits
3349a50
a8c5087
df9530e
83a3eec
0963b8d
71a0d00
2c9bf47
88cba1d
6663434
241679c
db3a001
7c018bd
d10f3bc
9528430
b94d556
bc867ce
3411283
cd71354
0ec06d1
578baf3
013063e
01ad634
8ba2768
b954f3c
20bbcf9
0a0c37f
0d03c1a
55529be
7f8be69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,14 +192,14 @@ jobs: | |
CXXCOMPILER: clang++-15 | ||
CUCUMBER_TIMEOUT: 60000 | ||
|
||
- name: clang-15-debug-clang-tidy | ||
- name: clang-18-debug-clang-tidy | ||
continue-on-error: false | ||
node: 18 | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
BUILD_TOOLS: ON | ||
BUILD_TYPE: Debug | ||
CCOMPILER: clang-15 | ||
CXXCOMPILER: clang++-15 | ||
CCOMPILER: clang-18 | ||
CXXCOMPILER: clang++-18 | ||
CUCUMBER_TIMEOUT: 60000 | ||
ENABLE_CLANG_TIDY: ON | ||
|
||
|
@@ -703,7 +703,7 @@ jobs: | |
run: | | ||
ccache -p | ||
ccache -s | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit pick: stray whitespace 😉 |
||
ci-complete: | ||
runs-on: ubuntu-22.04 | ||
needs: [build-test-publish, docker-image, windows-release-node, benchmarks] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19416,7 +19416,13 @@ namespace sol { namespace function_detail { | |
} | ||
|
||
template <bool is_yielding, bool no_trampoline> | ||
static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) { | ||
static int call(lua_State* L) | ||
#if SOL_IS_ON(SOL_COMPILER_CLANG) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Took this workaround from ThePhD/sol2#1581 (comment) I don't see another way to build with newer clang unfortunately. I'll try to make a PR to have this workaround in sol2 mainline... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding a link as a comment right in the source. This way one can trace the origin of this bandaid, and eventually remove it in the future. |
||
// apparent regression in clang 18 - llvm/llvm-project#91362 | ||
#else | ||
noexcept(std::is_nothrow_copy_assignable_v<T>) | ||
#endif | ||
{ | ||
int nr; | ||
if constexpr (no_trampoline) { | ||
nr = real_call(L); | ||
|
@@ -19456,7 +19462,13 @@ namespace sol { namespace function_detail { | |
} | ||
|
||
template <bool is_yielding, bool no_trampoline> | ||
static int call(lua_State* L) noexcept(std::is_nothrow_copy_assignable_v<T>) { | ||
static int call(lua_State* L) | ||
#if SOL_IS_ON(SOL_COMPILER_CLANG) | ||
// apparent regression in clang 18 - llvm/llvm-project#91362 | ||
#else | ||
noexcept(std::is_nothrow_copy_assignable_v<T>) | ||
#endif | ||
{ | ||
int nr; | ||
if constexpr (no_trampoline) { | ||
nr = real_call(L); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,7 +239,6 @@ void test_route_same_coordinates(bool use_json_only_api) | |
BOOST_CHECK(((void)name, true)); | ||
|
||
// nothing can be said about mode, contains mode of transportation | ||
const auto mode = std::get<json::String>(step_object.values.at("mode")).value; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment above looks like it can be removed, too. |
||
BOOST_CHECK(!name.empty()); | ||
|
||
const auto &maneuver = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of these warnings seem to be useful - I'll create an issue to fix some of them before merging it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#6928