ci: use LLVM/Clang 22 in tidy job#34662
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Needed for clang-22 tidy job, see: bitcoin/bitcoin#34662
| client_connection.get(), /* destroy_connection= */ client_owns_connection); | ||
| if (client_owns_connection) { | ||
| client_connection.release(); | ||
| client_connection.release(); // NOLINT(bugprone-unused-return-value) |
There was a problem hiding this comment.
In commit "f: libmultiprocess tidy errors" (5be6040)
Can this be changed to (void)client_connection.release(); to see if it fixes the tidy error? (void) should be a more typical way of indicating the return value is intentionally not used
There was a problem hiding this comment.
Let me know if that works and I'll switch it over in bitcoin-core/libmultiprocess#244
There was a problem hiding this comment.
Looks like using (void) is fine here.
Needed for clang-22 tidy job, see: bitcoin/bitcoin#34662
Needed for clang-22 tidy job, see: bitcoin/bitcoin#34662
5be6040 to
ddc1aaf
Compare
Needed for clang-22 tidy job, see: bitcoin/bitcoin#34662 Co-authored-by: fanquake <fanquake@gmail.com>
Needed for clang-22 tidy job, see: bitcoin/bitcoin#34662 Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
16dfc36 ci: avoid bugprone-unused-return-value lint in test (Sjors Provoost) dacd5ed ci: suppress nontrivial-threadlocal lint in proxy.cpp (Sjors Provoost) Pull request description: Needed for clang-22 tidy job, see: bitcoin/bitcoin#34662 ACKs for top commit: ryanofsky: Code review ACK 16dfc36, just switching to NOLINT to (void) since last Tree-SHA512: fca97015733b88422f895e7a193fe6700f45a1a12904fe5f8857367561d4e2393dc0598373f908b507e8149eb4e9633f797856ff841ea80fb3e924fe786dc70b
ddc1aaf to
5a56a10
Compare
Otherwise this check will "pass", like: ```bash -- Detecting CXX compile features - done -- Found LLVM 21.1.8 -- Found clang-tidy: CLANG_TIDY_EXE-NOTFOUND -- Configuring done (0.5s) ```
```bash
15 | #warning The ClangTidyModuleRegistry.h header is deprecated and will be removed in LLVM 24. All of the symbols it used to define have been moved into ClangTidyModule.h.
| ^~~~~~~
[100%] Linking CXX shared module libbitcoin-tidy.so
```
Added -config-file as otherwise run-clang-tidy no-longer seemed able to find the config file.
|
Rebased now that #34422 is in. |
|
lgtm ACK 5e35a90 |
Changes needed for moving to Clang 22 in the tidy job.