diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-11-22 00:43:24 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-11-22 00:43:24 +0800 |
commit | 93c98a6e52ec95a533e69292a872144ad0dfd101 (patch) | |
tree | b59698f71b82735650221b75e7f9f5581183965e | |
parent | 4cbfb5a903f16243638fa04ec41bcf0aa9b20231 (diff) | |
download | dexon-solidity-93c98a6e52ec95a533e69292a872144ad0dfd101.tar.gz dexon-solidity-93c98a6e52ec95a533e69292a872144ad0dfd101.tar.zst dexon-solidity-93c98a6e52ec95a533e69292a872144ad0dfd101.zip |
no c_ prefix for const parameter names
-rw-r--r-- | Scanner.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Scanner.cpp b/Scanner.cpp index 5ebe8d64..895b8ae7 100644 --- a/Scanner.cpp +++ b/Scanner.cpp @@ -726,15 +726,15 @@ Token::Value Scanner::scanNumber(char _charSeen) KEYWORD("while", Token::WHILE) \ -static Token::Value KeywordOrIdentifierToken(string const& c_input) +static Token::Value KeywordOrIdentifierToken(string const& _input) { - if (asserts(!c_input.empty())) + if (asserts(!_input.empty())) BOOST_THROW_EXCEPTION(InternalCompilerError()); int const kMinLength = 2; int const kMaxLength = 10; - if (c_input.size() < kMinLength || c_input.size() > kMaxLength) + if (_input.size() < kMinLength || _input.size() > kMaxLength) return Token::IDENTIFIER; - switch (c_input[0]) + switch (_input[0]) { default: #define KEYWORD_GROUP_CASE(ch) \ @@ -747,7 +747,7 @@ static Token::Value KeywordOrIdentifierToken(string const& c_input) int const keywordLength = sizeof(keyword) - 1; \ BOOST_STATIC_ASSERT(keywordLength >= kMinLength); \ BOOST_STATIC_ASSERT(keywordLength <= kMaxLength); \ - if (c_input == keyword) \ + if (_input == keyword) \ return token; \ } KEYWORDS(KEYWORD_GROUP_CASE, KEYWORD) |