Avoid forward declare std::exception on clang-cl
It will prevent clang-cl to output the warning [ignored-attributes].
This commit is contained in:
parent
afb85ea34e
commit
3fd8931d9d
|
@ -78,9 +78,12 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace std {
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
class ANTLR4CPP_PUBLIC exception; // Needed for VS 2015.
|
// clang-cl should escape this to prevent [ignored-attributes].
|
||||||
} // namespace std
|
namespace std {
|
||||||
|
class ANTLR4CPP_PUBLIC exception; // Prevents warning C4275 from MSVC.
|
||||||
|
} // namespace std
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
typedef std::u32string UTF32String;
|
typedef std::u32string UTF32String;
|
||||||
|
|
Loading…
Reference in New Issue