Koihik / LuaFormatter

Code formatter for Lua
Apache License 2.0
715 stars 85 forks source link

compile error #295

Closed durongze closed 4 months ago

durongze commented 4 months ago

3>(compiling source file '../src/lua-format.cpp') 3>E:\code\lua_formatter\LuaFormatter-1.3.6\generated\LuaLexer.h(121,1): warning C4626: 'LuaLexer': assignment operator was implicitly defined as deleted 3>(compiling source file '../src/lua-format.cpp') 3>E:\code\lua_formatter\LuaFormatter-1.3.6\generated\LuaLexer.h(95,39): error C2555: 'LuaLexer::getSerializedATN': overriding virtual function return type differs and is not covariant from 'antlr4::Recognizer::getSerializedATN' 3>(compiling source file '../src/lua-format.cpp') 3>E:\code\lua_formatter\LuaFormatter-1.3.6\third_party\antlr4\runtime\Cpp\runtime\src\Recognizer.h(58,36): 3>see declaration of 'antlr4::Recognizer::getSerializedATN' 3>E:\code\lua_formatter\LuaFormatter-1.3.6\src\lua-format.cpp(27,36): error C2039: 'as': is not a member of 'std::any' 3>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include\any(107,19):

durongze commented 4 months ago

这个得特别注意第三方库版本。