diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-05-04 23:18:01 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-05-04 23:19:16 +0800 |
commit | 0a15157155ec61d767ade9a9f910c9ba7364c0e6 (patch) | |
tree | a5ed8d9c4c80df54beab29168d9ced4154134a0f /SourceReferenceFormatter.cpp | |
parent | ebaf3c48a64ce7bbd6643b1d115d1c59005d15ec (diff) | |
download | dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.gz dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.bz2 dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.lz dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.xz dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.zst dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.zip |
some more style fixes
Diffstat (limited to 'SourceReferenceFormatter.cpp')
-rw-r--r-- | SourceReferenceFormatter.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/SourceReferenceFormatter.cpp b/SourceReferenceFormatter.cpp index e6685135..77805efc 100644 --- a/SourceReferenceFormatter.cpp +++ b/SourceReferenceFormatter.cpp @@ -48,11 +48,11 @@ void SourceReferenceFormatter::printSourceLocation( { string line = _scanner.getLineAtPosition(_location.start); _stream << line << endl; - std::for_each(line.cbegin(), line.cbegin() + startColumn, - [&_stream](char const& ch) - { - _stream << (ch == '\t' ? '\t' : ' '); - }); + for_each( + line.cbegin(), + line.cbegin() + startColumn, + [&_stream](char const& ch) { _stream << (ch == '\t' ? '\t' : ' '); } + ); _stream << "^"; if (endColumn > startColumn + 2) _stream << string(endColumn - startColumn - 2, '-'); @@ -61,9 +61,12 @@ void SourceReferenceFormatter::printSourceLocation( _stream << endl; } else - _stream << _scanner.getLineAtPosition(_location.start) << endl - << string(startColumn, ' ') << "^\n" - << "Spanning multiple lines.\n"; + _stream << + _scanner.getLineAtPosition(_location.start) << + endl << + string(startColumn, ' ') << + "^\n" << + "Spanning multiple lines.\n"; } void SourceReferenceFormatter::printSourceName( |