id: clang-format
continue-on-error: true
with:
- clang-format-version: "17"
+ clang-format-version: "18"
exclude-regex: "incbin"
- name: Comment on PR
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # @v2.5.0
with:
message: |
- clang-format 17 needs to be run on this PR.
+ clang-format 18 needs to be run on this PR.
If you do not have clang-format installed, the maintainer will run it when merging.
- For the exact version please see https://packages.ubuntu.com/mantic/clang-format-17.
+ For the exact version please see https://packages.ubuntu.com/noble/clang-format-18.
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
comment_tag: execution
Changes to Stockfish C++ code should respect our coding style defined by
[.clang-format](.clang-format). You can format your changes by running
-`make format`. This requires clang-format version 17 to be installed on your system.
+`make format`. This requires clang-format version 18 to be installed on your system.
## Navigate
arm_version = 0
STRIP = strip
-ifneq ($(shell which clang-format-17 2> /dev/null),)
- CLANG-FORMAT = clang-format-17
+ifneq ($(shell which clang-format-18 2> /dev/null),)
+ CLANG-FORMAT = clang-format-18
else
CLANG-FORMAT = clang-format
endif
// Step 2. Check for aborted search and immediate draw
if (threads.stop.load(std::memory_order_relaxed) || pos.is_draw(ss->ply)
|| ss->ply >= MAX_PLY)
- return (ss->ply >= MAX_PLY && !ss->inCheck) ? evaluate(
- networks[numaAccessToken], pos, refreshTable, thisThread->optimism[us])
- : value_draw(thisThread->nodes);
+ return (ss->ply >= MAX_PLY && !ss->inCheck)
+ ? evaluate(networks[numaAccessToken], pos, refreshTable,
+ thisThread->optimism[us])
+ : value_draw(thisThread->nodes);
// Step 3. Mate distance pruning. Even if we mate at the next move our score
// would be at best mate_in(ss->ply + 1), but if alpha is already bigger because
// Step 8. Futility pruning: child node (~40 Elo)
// The depth condition is important for mate finding.
- if (!ss->ttPv && depth < 13
- && eval - futilityMargin - (ss - 1)->statScore / 263 >= beta
+ if (!ss->ttPv && depth < 13 && eval - futilityMargin - (ss - 1)->statScore / 263 >= beta
&& eval >= beta && eval < VALUE_TB_WIN_IN_MAX_PLY && (!ttMove || ttCapture))
return beta > VALUE_TB_LOSS_IN_MAX_PLY ? beta + (eval - beta) / 3 : eval;
const size_t threadId = threads.size();
const NumaIndex numaId = doBindThreads ? boundThreadToNumaNode[threadId] : 0;
auto manager = threadId == 0 ? std::unique_ptr<Search::ISearchManager>(
- std::make_unique<Search::SearchManager>(updateContext))
+ std::make_unique<Search::SearchManager>(updateContext))
: std::make_unique<Search::NullSearchManager>();
// When not binding threads we want to force all access to happen
namespace Stockfish {
-void Tune::read_results() { /* ...insert your values here... */
-}
+void Tune::read_results() { /* ...insert your values here... */ }
} // namespace Stockfish