summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorGil Rapaport <gil.rapaport@mobileye.com>2025-11-17 16:49:40 +0200
committerGitHub <noreply@github.com>2025-11-17 16:49:40 +0200
commit6eab083e2dc21be8ef18fc2c58f762938f949799 (patch)
treec2e97a3e9293ca9dad0bdeb3d069bae623cd4665 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentb6fd3c62bb8af8b9c79d32207d96e3674aeccb36 (diff)
[mlir][emitc] Refactor brackets in expressions (#168267)
This patch is a minor NFC-intended refactoring to the way emitting redundant parentheses is prevented. The current implementation pushes and later pops a fake low precedence into the precedence stack when emitting function calls. The new implementation adds a boolean argument to `emitOperand()` that explicity guarantees that the operand is being emitted between some kind of brackets, exempting the method from enforcing correct evaluation order w.r.t precedence and associativity up the expression tree.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions