================
@@ -232,16 +248,16 @@ std::string DILParser::ParseNestedNameSpecifier() {
m_dil_lexer.LookAhead(4).Is(Token::coloncolon)) {
m_dil_lexer.Advance(4);
- assert(
- (CurToken().Is(Token::identifier) || CurToken().Is(Token::l_paren))
&&
- "Expected an identifier or anonymous namespace, but not found.");
+ Expect(Token::coloncolon);
+ m_dil_lexer.Advance();
+ if (!CurToken().Is(Token::identifier) && !CurToken().Is(Token::l_paren))
{
+ BailOut(
+ "Expected an identifier or anonymous namespeace, but not found.",
----------------
labath wrote:
namespace
https://github.com/llvm/llvm-project/pull/145055
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits