diff options
author | 2016-08-02 17:12:06 +1000 | |
---|---|---|
committer | 2016-08-02 17:12:06 +1000 | |
commit | d7f9370892f3b8944ce6963cfcdb3d48bee01d7e (patch) | |
tree | b545d617ebc39e4f010ca871f17836f9b2df1d96 /src/tools/srcclean.cpp | |
parent | e406a48885cbbf739763f86c08505a28d0f27db1 (diff) |
Make srcclean a bit more forgiving
Diffstat (limited to 'src/tools/srcclean.cpp')
-rw-r--r-- | src/tools/srcclean.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/srcclean.cpp b/src/tools/srcclean.cpp index b9909e7ee13..f25af18eeb7 100644 --- a/src/tools/srcclean.cpp +++ b/src/tools/srcclean.cpp @@ -1222,7 +1222,7 @@ void cpp_cleaner::process_numeric(unicode_char ch) if (is_octal_digit(ch)) m_radix = 8U; else if (is_decimal_digit(ch)) - throw std::runtime_error(util::string_format("invalid octal literal on line %1$u", m_input_line)); + m_parse_state = parse_state::DEFAULT; // this should be an invalid octal literal, but it's probably just an argument to the SHA1 macro else m_parse_state = parse_state::DEFAULT; } @@ -1245,13 +1245,13 @@ void cpp_cleaner::process_numeric(unicode_char ch) if (!is_decimal_digit(ch)) m_parse_state = parse_state::DEFAULT; else if (!is_binary_digit(ch)) - throw std::runtime_error(util::string_format("invalid binary literal on line %1$u", m_input_line)); + m_parse_state = parse_state::DEFAULT; // this should be an invalid binary literal, but it's probably just an argument to the SHA1 macro break; case 8U: if (!is_decimal_digit(ch)) m_parse_state = parse_state::DEFAULT; else if (!is_octal_digit(ch)) - throw std::runtime_error(util::string_format("invalid octal literal on line %1$u", m_input_line)); + m_parse_state = parse_state::DEFAULT; // this should be an invalid octal literal, but it's probably just an argument to the SHA1 macro break; case 10U: if (!is_decimal_digit(ch)) |