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 <noreply@anthropic.com>
This commit is contained in:
Marco Antonio J. Costa
2026-07-22 09:14:21 -03:00
committed by majcosta
co-authored by Claude Opus 4.8
parent aad39ac3bd
commit 9c1403b4ec
+1 -1
View File
@@ -30,7 +30,7 @@
#include <vfs/Core/vfs_path.h>
#include <list>
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(__clang__)
class VFS_API std::exception;
#endif