Update VlppGlrParser.cpp

This commit is contained in:
vczh
2023-04-10 01:07:05 -07:00
parent 2627b8e659
commit 46a934ae44
+12
View File
@@ -1178,6 +1178,13 @@ namespace vl
ErrorArgs
***********************************************************************/
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnull-dereference"
#elif defined (__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnull-dereference"
#endif
ErrorArgs ErrorArgs::UnrecognizedToken(const regex::RegexToken& token)
{
return {
@@ -1233,6 +1240,11 @@ ErrorArgs
ast
};
}
#if defined (__clang__)
#pragma clang diagnostic pop
#elif defined (__GNUC__)
#pragma GCC diagnostic pop
#endif
ParsingError ErrorArgs::ToParsingError()
{