[all-commits] [llvm/llvm-project] 30ce1a: [utils] Fix utils/demangle_tree.py:parse_line to c...

SivanShani-Arm via All-commits all-commits at lists.llvm.org
Mon Jun 2 02:31:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30ce1aaa18cef762dae7a31411469421c84b384b
      https://github.com/llvm/llvm-project/commit/30ce1aaa18cef762dae7a31411469421c84b384b
  Author: SivanShani-Arm <sivan.shani at arm.com>
  Date:   2025-06-02 (Mon, 02 Jun 2025)

  Changed paths:
    M llvm/utils/demangle_tree.py

  Log Message:
  -----------
  [utils] Fix utils/demangle_tree.py:parse_line to correctly check for closing parenthesis (#142153)

Previously, parse_line incorrectly repeated the check for open_paren
instead of verifying the presence of a closing parenthesis. This caused
inputs with an unmatched opening parenthesis to be parsed incorrectly.

For example:
    print(parse_line('?foo (bar'))
    → before: ('?foo', 'ba')   [incorrect]
    → after:  (None, None)     [correct]

Fixed the condition to properly check close_paren.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list