[Lldb-commits] [lldb] [LLDB] Update DIL to pass current 'frame var' tests. (PR #145055)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 30 03:16:32 PDT 2025


================
@@ -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


More information about the lldb-commits mailing list