diff --git a/lib/token.h b/lib/token.h index e55775345..07be123a6 100644 --- a/lib/token.h +++ b/lib/token.h @@ -887,7 +887,7 @@ public: } }; - void stringify(std::ostream& os, const stringifyOptions& options) const; + void stringify(std::ostream& os, const stringifyOptions& options) const; /** * Stringify a token @@ -898,9 +898,9 @@ public: */ void stringify(std::ostream& os, bool varid, bool attributes, bool macro) const; - std::string stringifyList(const stringifyOptions& options, const std::vector* fileNames = nullptr, const Token* end = nullptr) const; - std::string stringifyList(const Token* end, bool attributes = true) const; - std::string stringifyList(bool varid = false) const; + std::string stringifyList(const stringifyOptions& options, const std::vector* fileNames = nullptr, const Token* end = nullptr) const; + std::string stringifyList(const Token* end, bool attributes = true) const; + std::string stringifyList(bool varid = false) const; /** * Stringify a list of token, from current instance on. diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 80f29cadd..8fee2c2f0 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -843,8 +843,7 @@ static void compileTerm(Token *&tok, AST_state& state) Token *end = tok->link(); compileUnaryOp(tok, state, compileExpression); tok = end; - } - else { + } else { state.op.push(tok); tok = tok->tokAt(2); }