mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
committed by
majcosta
co-authored by
Claude Opus 4.8
parent
aad39ac3bd
commit
9c1403b4ec
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user