summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2024-07-22 18:31:13 +0200
committerIlya Biryukov <ibiryukov@google.com>2024-07-23 12:28:59 +0200
commit363e036ac002d5af4bb82e303052b806a98086a1 (patch)
tree5455411906c3c8c2816477a6808601c761807f76 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface
parentc1b70fa5bfea973d4141e27cf9668e9325609e19 (diff)
[AST] NFC: add an assertion for invariant of CXXFoldExpr
CXXFoldExpr relies on exactly one of the two operands to have unexpanded parameter packs. If this invariant does not holds, results of `getPattern()`, `isLeftFold()` and other related members are incorrect. Asserting this on construction makes debugging the problems easier as the failure is happening closer to the code that contains the error. Also move the constructor to the `.cpp` file to avoid potential ODR violations from having an `assert` in the header in combination with precompiled libraries.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions