mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Even more style checks.
This commit is contained in:
@@ -119,8 +119,8 @@ private:
|
||||
unsigned m_errorCount = 0;
|
||||
unsigned m_warningCount = 0;
|
||||
|
||||
const unsigned c_maxWarningsAllowed = 256;
|
||||
const unsigned c_maxErrorsAllowed = 256;
|
||||
unsigned const c_maxWarningsAllowed = 256;
|
||||
unsigned const c_maxErrorsAllowed = 256;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ static Token keywordByName(string const& _name)
|
||||
// and keywords to be put inside the keywords variable.
|
||||
#define KEYWORD(name, string, precedence) {string, Token::name},
|
||||
#define TOKEN(name, string, precedence)
|
||||
static const map<string, Token> keywords({TOKEN_LIST(TOKEN, KEYWORD)});
|
||||
static map<string, Token> const keywords({TOKEN_LIST(TOKEN, KEYWORD)});
|
||||
#undef KEYWORD
|
||||
#undef TOKEN
|
||||
auto it = keywords.find(_name);
|
||||
|
||||
Reference in New Issue
Block a user