CommonIO: Replace readStandardInput() with readUntilEnd() with a configurable stream

This commit is contained in:
Kamil Śliwak
2021-07-02 14:58:30 +02:00
parent 98e1dee45f
commit a72857df03
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -640,7 +640,7 @@ bool CommandLineInterface::readInputFilesAndConfigureRemappings()
}
if (addStdin)
m_fileReader.setSource(g_stdinFileName, readStandardInput());
m_fileReader.setSource(g_stdinFileName, readUntilEnd(cin));
if (m_fileReader.sourceCodes().size() == 0)
{
@@ -1255,7 +1255,7 @@ bool CommandLineInterface::processInput()
}
string input;
if (jsonFile.empty())
input = readStandardInput();
input = readUntilEnd(cin);
else
{
try