summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/srcclean.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-08-02 17:12:06 +1000
committer Vas Crabb <vas@vastheman.com>2016-08-02 17:12:06 +1000
commitd7f9370892f3b8944ce6963cfcdb3d48bee01d7e (patch)
treeb545d617ebc39e4f010ca871f17836f9b2df1d96 /src/tools/srcclean.cpp
parente406a48885cbbf739763f86c08505a28d0f27db1 (diff)
Make srcclean a bit more forgiving
Diffstat (limited to 'src/tools/srcclean.cpp')
-rw-r--r--src/tools/srcclean.cpp6
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))