Annotate unreachable comment-scanner switch paths to satisfy C26819 (#5071)
This commit is contained in:
1 parent
21b53746c9
commit
f8eee1bb79
2 files changed
+8
No files matched your search
@@ -8055,6 +8055,8 @@ class lexer : public lexer_base<BasicJsonType>
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
JSON_HEDLEY_UNREACHABLE();
|
||||
}
|
||||
|
||||
// multi-line comments skip input until */ is read
|
||||
@@ -8090,6 +8092,8 @@ class lexer : public lexer_base<BasicJsonType>
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
JSON_HEDLEY_UNREACHABLE();
|
||||
}
|
||||
|
||||
// unexpected character after reading '/'
|
||||
|
||||
Reference in new issue
Block a user