mirror of
https://github.com/nlohmann/json.git
synced 2026-02-17 09:03:58 +00:00
Annotate unreachable comment-scanner switch paths to satisfy C26819 (#5071)
This commit is contained in:
@@ -863,6 +863,8 @@ class lexer : public lexer_base<BasicJsonType>
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSON_HEDLEY_UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
// multi-line comments skip input until */ is read
|
// multi-line comments skip input until */ is read
|
||||||
@@ -898,6 +900,8 @@ class lexer : public lexer_base<BasicJsonType>
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSON_HEDLEY_UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
// unexpected character after reading '/'
|
// unexpected character after reading '/'
|
||||||
|
|||||||
@@ -8055,6 +8055,8 @@ class lexer : public lexer_base<BasicJsonType>
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSON_HEDLEY_UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
// multi-line comments skip input until */ is read
|
// multi-line comments skip input until */ is read
|
||||||
@@ -8090,6 +8092,8 @@ class lexer : public lexer_base<BasicJsonType>
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSON_HEDLEY_UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
// unexpected character after reading '/'
|
// unexpected character after reading '/'
|
||||||
|
|||||||
Reference in New Issue
Block a user