From 7b22764fa340adbad324be5d1bb042023b2402d0 Mon Sep 17 00:00:00 2001 From: LocalSpook Date: Sun, 26 Jan 2025 18:25:34 -0800 Subject: [PATCH 1/2] Ignore clangd's `.cache` dir --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2635026a69db..7485ad924f9c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ *.xcodeproj *~ .vscode/ +.cache/ /CMakeScripts /Testing /_CPack_Packages From 73f8bec8023dc4e72afa03d194eae840fd9e4030 Mon Sep 17 00:00:00 2001 From: LocalSpook Date: Sun, 26 Jan 2025 18:58:11 -0800 Subject: [PATCH 2/2] Fix typo in `FMT_HAS_BUILTIN` check --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 9eeeb2ce7c53..551a6b86ff56 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -537,7 +537,7 @@ template class basic_string_view { FMT_ALWAYS_INLINE #endif FMT_CONSTEXPR20 basic_string_view(const Char* s) : data_(s) { -#if FMT_HAS_BUILTIN(__buitin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION +#if FMT_HAS_BUILTIN(__builtin_strlen) || FMT_GCC_VERSION || FMT_CLANG_VERSION if (std::is_same::value) { size_ = __builtin_strlen(detail::narrow(s)); return;