From a7b1a771f9ea6d55935246c020b4bc5caa2f9295 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 29 Jul 2026 20:25:37 +0000 Subject: [PATCH 6/6] Include fmt/format.h instead of the deprecated fmt/core.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since fmt 11, fmt/core.h is a deprecated alias for fmt/base.h, which declares fmt::format_string but not fmt::format / fmt::to_string — those live in fmt/format.h. Building against libfmt12 therefore fails with "'format' is not a member of 'fmt'" in every TU that reached fmt only through fmt/core.h (first casualty: Errors.h via Errors.cpp). Mechanically replace #include with #include across the tree (41 files); format.h is a superset, so builds against older fmt are unaffected. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01K6JXw8CwYRiXvqHMBGZRgP --- watchman/ChildProcess.cpp | 2 +- watchman/Client.h | 2 +- watchman/ContentHash.cpp | 2 +- watchman/CookieSync.cpp | 2 +- watchman/Errors.h | 2 +- watchman/InMemoryView.cpp | 2 +- watchman/LRUCache.h | 2 +- watchman/Logging.cpp | 2 +- watchman/Options.cpp | 2 +- watchman/PathUtils.cpp | 2 +- watchman/Poison.cpp | 2 +- watchman/ProcessLock.cpp | 2 +- watchman/SanityCheck.cpp | 2 +- watchman/SignalHandler.cpp | 2 +- watchman/UserDir.cpp | 2 +- watchman/benchmarks/bser.cpp | 2 +- watchman/bser.h | 2 +- watchman/cmds/heapprof.cpp | 2 +- watchman/cppclient/WatchmanClient.cpp | 2 +- watchman/cppclient/WatchmanConnection.cpp | 2 +- watchman/fs/FileSystem.cpp | 2 +- watchman/fs/ParallelWalk.cpp | 2 +- watchman/fs/UnixDirHandle.cpp | 2 +- watchman/main.cpp | 2 +- watchman/query/GlobTree.cpp | 2 +- watchman/query/TermRegistry.cpp | 2 +- watchman/query/intcompare.cpp | 2 +- watchman/query/parse.cpp | 2 +- watchman/query/pcre.cpp | 2 +- watchman/query/type.cpp | 2 +- watchman/root/init.cpp | 2 +- watchman/root/resolve.cpp | 2 +- watchman/root/watchlist.cpp | 2 +- watchman/scm/Git.cpp | 2 +- watchman/scm/Mercurial.cpp | 2 +- watchman/test/ArtTest.cpp | 2 +- watchman/test/BserTest.cpp | 2 +- watchman/watcher/WatcherRegistry.cpp | 2 +- watchman/watcher/eden.cpp | 2 +- watchman/watchman_string.h | 2 +- watchman/winbuild/susres.cpp | 2 +- 41 files changed, 41 insertions(+), 41 deletions(-) diff --git a/watchman/ChildProcess.cpp b/watchman/ChildProcess.cpp index abfb159..8ace18c 100644 --- a/watchman/ChildProcess.cpp +++ b/watchman/ChildProcess.cpp @@ -6,7 +6,7 @@ */ #include "watchman/ChildProcess.h" -#include +#include #include #include #include diff --git a/watchman/Client.h b/watchman/Client.h index c3f3b92..e5e3f16 100644 --- a/watchman/Client.h +++ b/watchman/Client.h @@ -7,7 +7,7 @@ #pragma once -#include +#include #include #include diff --git a/watchman/ContentHash.cpp b/watchman/ContentHash.cpp index bbd416d..4846c08 100644 --- a/watchman/ContentHash.cpp +++ b/watchman/ContentHash.cpp @@ -6,7 +6,7 @@ */ #include "watchman/ContentHash.h" -#include +#include #include #include #include "watchman/Hash.h" diff --git a/watchman/CookieSync.cpp b/watchman/CookieSync.cpp index 99dcc26..3e619db 100644 --- a/watchman/CookieSync.cpp +++ b/watchman/CookieSync.cpp @@ -6,7 +6,7 @@ */ #include "watchman/CookieSync.h" -#include +#include #include #include #include diff --git a/watchman/Errors.h b/watchman/Errors.h index 072628f..aef9010 100644 --- a/watchman/Errors.h +++ b/watchman/Errors.h @@ -7,7 +7,7 @@ #pragma once -#include +#include #include #include #include diff --git a/watchman/InMemoryView.cpp b/watchman/InMemoryView.cpp index 38ea8ba..ee2fc79 100644 --- a/watchman/InMemoryView.cpp +++ b/watchman/InMemoryView.cpp @@ -6,7 +6,7 @@ */ #include "watchman/InMemoryView.h" -#include +#include #include #include #include diff --git a/watchman/LRUCache.h b/watchman/LRUCache.h index 89aa9be..e6dcba1 100644 --- a/watchman/LRUCache.h +++ b/watchman/LRUCache.h @@ -6,7 +6,7 @@ */ #pragma once -#include +#include #include #include #include diff --git a/watchman/Logging.cpp b/watchman/Logging.cpp index 7ad66d3..11c56af 100644 --- a/watchman/Logging.cpp +++ b/watchman/Logging.cpp @@ -15,7 +15,7 @@ #include "watchman/portability/Backtrace.h" -#include +#include #include #include #include diff --git a/watchman/Options.cpp b/watchman/Options.cpp index 4cae973..0b8cf65 100644 --- a/watchman/Options.cpp +++ b/watchman/Options.cpp @@ -6,7 +6,7 @@ */ #include "watchman/Options.h" -#include +#include #include #include "watchman/CommandRegistry.h" #include "watchman/LogConfig.h" diff --git a/watchman/PathUtils.cpp b/watchman/PathUtils.cpp index 9712e2e..fb03b5f 100644 --- a/watchman/PathUtils.cpp +++ b/watchman/PathUtils.cpp @@ -7,7 +7,7 @@ #include "watchman/PathUtils.h" -#include +#include #include #include #include diff --git a/watchman/Poison.cpp b/watchman/Poison.cpp index 65741d5..ee307d7 100644 --- a/watchman/Poison.cpp +++ b/watchman/Poison.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include "watchman/Logging.h" #include "watchman/WatchmanConfig.h" diff --git a/watchman/ProcessLock.cpp b/watchman/ProcessLock.cpp index 5cb3ef0..960be71 100644 --- a/watchman/ProcessLock.cpp +++ b/watchman/ProcessLock.cpp @@ -7,7 +7,7 @@ #include "ProcessLock.h" -#include +#include #include #include "watchman/Logging.h" diff --git a/watchman/SanityCheck.cpp b/watchman/SanityCheck.cpp index f0e430a..a4ee1ee 100644 --- a/watchman/SanityCheck.cpp +++ b/watchman/SanityCheck.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include "watchman/Connect.h" diff --git a/watchman/SignalHandler.cpp b/watchman/SignalHandler.cpp index 8606b9c..c2bd56d 100644 --- a/watchman/SignalHandler.cpp +++ b/watchman/SignalHandler.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include "watchman/Logging.h" #include "watchman/Shutdown.h" diff --git a/watchman/UserDir.cpp b/watchman/UserDir.cpp index 50e1c48..1e374cf 100644 --- a/watchman/UserDir.cpp +++ b/watchman/UserDir.cpp @@ -7,7 +7,7 @@ #include "watchman/UserDir.h" #include -#include +#include #include #include #include "watchman/Logging.h" diff --git a/watchman/benchmarks/bser.cpp b/watchman/benchmarks/bser.cpp index 8c48e6b..2133f3d 100644 --- a/watchman/benchmarks/bser.cpp +++ b/watchman/benchmarks/bser.cpp @@ -7,7 +7,7 @@ #include "watchman/bser.h" #include -#include +#include #include #include diff --git a/watchman/bser.h b/watchman/bser.h index 92a3a33..49e719f 100644 --- a/watchman/bser.h +++ b/watchman/bser.h @@ -7,7 +7,7 @@ #pragma once -#include +#include #include "watchman/thirdparty/jansson/jansson.h" typedef struct bser_ctx { diff --git a/watchman/cmds/heapprof.cpp b/watchman/cmds/heapprof.cpp index d30c9dc..fa0334f 100644 --- a/watchman/cmds/heapprof.cpp +++ b/watchman/cmds/heapprof.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include #include "watchman/Client.h" diff --git a/watchman/cppclient/WatchmanClient.cpp b/watchman/cppclient/WatchmanClient.cpp index 5331149..d4fc453 100644 --- a/watchman/cppclient/WatchmanClient.cpp +++ b/watchman/cppclient/WatchmanClient.cpp @@ -7,7 +7,7 @@ #include "WatchmanClient.h" -#include +#include #include #include diff --git a/watchman/cppclient/WatchmanConnection.cpp b/watchman/cppclient/WatchmanConnection.cpp index c041baa..fa6aba1 100644 --- a/watchman/cppclient/WatchmanConnection.cpp +++ b/watchman/cppclient/WatchmanConnection.cpp @@ -9,7 +9,7 @@ #include -#include +#include #include #include diff --git a/watchman/fs/FileSystem.cpp b/watchman/fs/FileSystem.cpp index 7cc159a..85fc2c0 100644 --- a/watchman/fs/FileSystem.cpp +++ b/watchman/fs/FileSystem.cpp @@ -6,7 +6,7 @@ */ #include "watchman/fs/FileSystem.h" -#include +#include #include #include #include "watchman/fs/FSDetect.h" diff --git a/watchman/fs/ParallelWalk.cpp b/watchman/fs/ParallelWalk.cpp index 5a063db..36ecea6 100644 --- a/watchman/fs/ParallelWalk.cpp +++ b/watchman/fs/ParallelWalk.cpp @@ -6,7 +6,7 @@ */ #include "watchman/fs/ParallelWalk.h" -#include +#include #include #include #include diff --git a/watchman/fs/UnixDirHandle.cpp b/watchman/fs/UnixDirHandle.cpp index 6b644e5..1198182 100644 --- a/watchman/fs/UnixDirHandle.cpp +++ b/watchman/fs/UnixDirHandle.cpp @@ -7,7 +7,7 @@ #include "watchman/fs/DirHandle.h" -#include +#include #include #include #include "watchman/Logging.h" diff --git a/watchman/main.cpp b/watchman/main.cpp index 9511b91..4382297 100644 --- a/watchman/main.cpp +++ b/watchman/main.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include #include diff --git a/watchman/query/GlobTree.cpp b/watchman/query/GlobTree.cpp index c771db5..568ee7c 100644 --- a/watchman/query/GlobTree.cpp +++ b/watchman/query/GlobTree.cpp @@ -7,7 +7,7 @@ #include "watchman/query/GlobTree.h" -#include +#include #include namespace watchman { diff --git a/watchman/query/TermRegistry.cpp b/watchman/query/TermRegistry.cpp index 4efe2c5..f2cc1ab 100644 --- a/watchman/query/TermRegistry.cpp +++ b/watchman/query/TermRegistry.cpp @@ -6,7 +6,7 @@ */ #include "watchman/query/TermRegistry.h" -#include +#include #include "watchman/CommandRegistry.h" #include "watchman/Errors.h" #include "watchman/query/QueryExpr.h" diff --git a/watchman/query/intcompare.cpp b/watchman/query/intcompare.cpp index 4b13bb9..3f30845 100644 --- a/watchman/query/intcompare.cpp +++ b/watchman/query/intcompare.cpp @@ -6,7 +6,7 @@ */ #include "watchman/query/intcompare.h" -#include +#include #include "watchman/Errors.h" #include "watchman/query/FileResult.h" #include "watchman/query/QueryExpr.h" diff --git a/watchman/query/parse.cpp b/watchman/query/parse.cpp index 90fe432..772c1c8 100644 --- a/watchman/query/parse.cpp +++ b/watchman/query/parse.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include "watchman/CommandRegistry.h" #include "watchman/Errors.h" diff --git a/watchman/query/pcre.cpp b/watchman/query/pcre.cpp index 0b7abeb..34b6870 100644 --- a/watchman/query/pcre.cpp +++ b/watchman/query/pcre.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include "watchman/Errors.h" #include "watchman/fs/FileSystem.h" diff --git a/watchman/query/type.cpp b/watchman/query/type.cpp index cf87e9f..6a303a6 100644 --- a/watchman/query/type.cpp +++ b/watchman/query/type.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include "watchman/Errors.h" #include "watchman/fs/FileInformation.h" #include "watchman/query/FileResult.h" diff --git a/watchman/root/init.cpp b/watchman/root/init.cpp index d8d8f14..979c2f1 100644 --- a/watchman/root/init.cpp +++ b/watchman/root/init.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include "watchman/Logging.h" #include "watchman/QueryableView.h" diff --git a/watchman/root/resolve.cpp b/watchman/root/resolve.cpp index 667de13..3fe5ddc 100644 --- a/watchman/root/resolve.cpp +++ b/watchman/root/resolve.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include #include "watchman/Errors.h" diff --git a/watchman/root/watchlist.cpp b/watchman/root/watchlist.cpp index ec36b16..67b3e41 100644 --- a/watchman/root/watchlist.cpp +++ b/watchman/root/watchlist.cpp @@ -6,7 +6,7 @@ */ #include "watchman/root/watchlist.h" -#include +#include #include #include #include "watchman/QueryableView.h" diff --git a/watchman/scm/Git.cpp b/watchman/scm/Git.cpp index c92a5a4..39b45c7 100644 --- a/watchman/scm/Git.cpp +++ b/watchman/scm/Git.cpp @@ -6,7 +6,7 @@ */ #include "watchman/scm/Git.h" -#include +#include #include #include #include "watchman/ChildProcess.h" diff --git a/watchman/scm/Mercurial.cpp b/watchman/scm/Mercurial.cpp index bdb586e..0952506 100644 --- a/watchman/scm/Mercurial.cpp +++ b/watchman/scm/Mercurial.cpp @@ -6,7 +6,7 @@ */ #include "Mercurial.h" -#include +#include #include #include #include diff --git a/watchman/test/ArtTest.cpp b/watchman/test/ArtTest.cpp index a1f8603..05c4d24 100644 --- a/watchman/test/ArtTest.cpp +++ b/watchman/test/ArtTest.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include #include #include diff --git a/watchman/test/BserTest.cpp b/watchman/test/BserTest.cpp index 119b484..9fb5b2f 100644 --- a/watchman/test/BserTest.cpp +++ b/watchman/test/BserTest.cpp @@ -6,7 +6,7 @@ */ #include "watchman/bser.h" -#include +#include #include #include #include diff --git a/watchman/watcher/WatcherRegistry.cpp b/watchman/watcher/WatcherRegistry.cpp index bf7fcaf..2384842 100644 --- a/watchman/watcher/WatcherRegistry.cpp +++ b/watchman/watcher/WatcherRegistry.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include +#include #include "watchman/watcher/WatcherRegistry.h" diff --git a/watchman/watcher/eden.cpp b/watchman/watcher/eden.cpp index 8d71965..53002cf 100644 --- a/watchman/watcher/eden.cpp +++ b/watchman/watcher/eden.cpp @@ -6,7 +6,7 @@ */ #include -#include +#include #include #include #include diff --git a/watchman/watchman_string.h b/watchman/watchman_string.h index d28b4bd..d4cc3a3 100644 --- a/watchman/watchman_string.h +++ b/watchman/watchman_string.h @@ -9,7 +9,7 @@ #include "watchman/watchman_system.h" -#include +#include #include #include diff --git a/watchman/winbuild/susres.cpp b/watchman/winbuild/susres.cpp index cc68691..fd9306a 100644 --- a/watchman/winbuild/susres.cpp +++ b/watchman/winbuild/susres.cpp @@ -6,7 +6,7 @@ */ #include -#include +#include #include #include #include