Print full filenames with --print-changes (so the IDE can jump to the line)
This commit is contained in:
parent
eb505347cb
commit
c9a243fd41
@ -583,14 +583,14 @@ void ASConsole::formatFile(const string& fileName_)
|
||||
if (nextLine.find_first_not_of(" \t") != string::npos)
|
||||
{
|
||||
if (printChanges)
|
||||
printChangedLine(displayName, nextLine, currentLine);
|
||||
printChangedLine(fileName_, nextLine, currentLine);
|
||||
filesAreIdentical = false;
|
||||
}
|
||||
}
|
||||
else if (!streamIterator.compareToInputBuffer(nextLine))
|
||||
{
|
||||
if (printChanges)
|
||||
printChangedLine(displayName, nextLine, currentLine);
|
||||
printChangedLine(fileName_, nextLine, currentLine);
|
||||
filesAreIdentical = false;
|
||||
}
|
||||
streamIterator.checkForEmptyLine = false;
|
||||
@ -633,7 +633,7 @@ void ASConsole::printChangedLine(const string& fileName, const string& line, int
|
||||
printSeparatingLine();
|
||||
printf("Changes in %s\n", fileName.c_str());
|
||||
}
|
||||
printf("Line %5d: %s\n", lineNumber, line.c_str());
|
||||
printf("%s(%5d): %s\n", fileName.c_str(), lineNumber, line.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user