diff options
Diffstat (limited to 'Token.cpp')
-rw-r--r-- | Token.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -42,25 +42,30 @@ #include <libsolidity/Token.h> -namespace dev { -namespace solidity { +namespace dev +{ +namespace solidity +{ #define T(name, string, precedence) #name, -const char* const Token::m_name[NUM_TOKENS] = { +const char* const Token::m_name[NUM_TOKENS] = +{ TOKEN_LIST(T, T) }; #undef T #define T(name, string, precedence) string, -const char* const Token::m_string[NUM_TOKENS] = { +const char* const Token::m_string[NUM_TOKENS] = +{ TOKEN_LIST(T, T) }; #undef T #define T(name, string, precedence) precedence, -const int8_t Token::m_precedence[NUM_TOKENS] = { +const int8_t Token::m_precedence[NUM_TOKENS] = +{ TOKEN_LIST(T, T) }; #undef T @@ -68,10 +73,12 @@ const int8_t Token::m_precedence[NUM_TOKENS] = { #define KT(a, b, c) 'T', #define KK(a, b, c) 'K', -const char Token::m_tokenType[] = { +const char Token::m_tokenType[] = +{ TOKEN_LIST(KT, KK) }; #undef KT #undef KK -} } +} +} |