Commit bd476221 authored by Committed by Erik VerbruggenBrowse files
Fix out-of-memory crash when indenting generated tokens.
Generated tokens do not have a position in any source file, so not try to indent them. Previously, the 'source' used was the scratch buffer, which would not contain newlines, so the indent depth would be the length of the scratch buffer at that point. Task-number: QTCREATORBUG-7262 Change-Id: If94213d6dffd13dd2b47c7038ec2398ad925d904 Reviewed-by: Yuchen Deng <email@example.com> Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Showing with 21 additions and 10 deletions