Avoid forward declare std::exception on clang-cl

It will prevent clang-cl to output the warning [ignored-attributes].
This commit is contained in:
Marcus Ong 2018-02-25 18:24:45 -06:00
parent afb85ea34e
commit 3fd8931d9d
1 changed files with 6 additions and 3 deletions

View File

@ -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;