llvm-journey

LLVM Journey
git clone git://0xff.ir/g/llvm-journey.git
Log | Files | Refs | README | LICENSE

commit d49d9e9e2b49650abcd8318fe665965b2d7fef22
parent 2652885b9a33b4d5f003c16fbeadedb1845a409f
Author: Mohammad-Reza Nabipoor <m.nabipoor@yahoo.com>
Date:   Sun, 30 Aug 2020 15:09:12 +0430

kaleidoscope_tokens.hpp: Fix kal::to_string

- Fix the comment for `clang-format`
- Add a missing newline

Diffstat:
Mkaleidoscope_tokens.hpp | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/kaleidoscope_tokens.hpp b/kaleidoscope_tokens.hpp @@ -34,14 +34,17 @@ to_string(const Token& t) { std::ostringstream oss; - // clang-format on + // clang-format off oss << "Token{" << "\n kal::TkType::" << kal::TKTYPE_STR[static_cast<int>(t.type)] - << ",\n " << t.bpos << ",\n " << t.epos << ",\n \"" << t.str << '"' - << ",\n " << t.dbl << "}\n"; + << ",\n " << t.bpos + << ",\n " << t.epos + << ",\n \"" << t.str << '"' + << ",\n " << t.dbl + << "\n}\n"; - // clang-format off + // clang-format on return oss.str(); }