1
0
scáthán de https://github.com/quitesimpleorg/qsmaddy.git sioncronaithe 2025-01-30 18:55:32 +01:00

make sure that all parsers are finished

Tá an tiomantas seo le fáil i:
M. Petra Baranski 2018-01-18 19:09:10 +01:00
tuismitheoir 7963d90603
tiomantas 9a9774f904
D'athraigh 2 comhad le 13 breiseanna agus 1 scriosta

Féach ar an gComhad

@ -27,7 +27,7 @@ file(GLOB_RECURSE MADDY_TESTS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/tests/maddy/*.cp
set(
CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions"
"${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer"
)
# ------------------------------------------------------------------------------

Féach ar an gComhad

@ -93,6 +93,18 @@ public:
}
}
// make sure, that all parsers are finished
if (currentBlockParser)
{
std::string emptyLine = "";
currentBlockParser->AddLine(emptyLine);
if (currentBlockParser->IsFinished())
{
result += currentBlockParser->GetResult().str();
currentBlockParser = nullptr;
}
}
return result;
}