From 9c1403b4ecce478b0819f463649addbe37cd04b9 Mon Sep 17 00:00:00 2001 From: "Marco Antonio J. Costa" Date: Wed, 22 Jul 2026 08:54:33 -0300 Subject: [PATCH] do not hand clang the MSVC-only forward declaration in VFS vfs_debug.h forward declares std::exception under #ifdef _MSC_VER. clang-cl defines _MSC_VER too, and rejects the declaration: vfs_debug.h(34,15): error: forward declaration of class cannot have a nested name specifier so any tool built on clang stops at the first file that reaches sgp/DEBUG.H, which is nearly all of them. Guarding on __clang__ as well leaves the MSVC build byte for byte identical and lets include-what-you-use parse the tree. Co-Authored-By: Claude Opus 4.8 --- ext/VFS/include/vfs/Core/vfs_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/VFS/include/vfs/Core/vfs_debug.h b/ext/VFS/include/vfs/Core/vfs_debug.h index 7cd285ada..32a7218d3 100644 --- a/ext/VFS/include/vfs/Core/vfs_debug.h +++ b/ext/VFS/include/vfs/Core/vfs_debug.h @@ -30,7 +30,7 @@ #include #include -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) class VFS_API std::exception; #endif