Report parse and execution failures from Process #1129
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 88.50%. Comparing base (
e731565) to head (8356fe9).:warning: Report is 7 commits behind head on main.
<details><summary>Additional details and impacted files</summary>

@@ Coverage Diff @@
## main #1129 +/- ##
==========================================
+ Coverage 88.44% 88.50% +0.06%
==========================================
Files 24 24
Lines 6793 6838 +45
==========================================
+ Hits 6008 6052 +44
- Misses 785 786 +1
| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/CppInterOp/CppInterOp.cpp | 91.08% <100.00%> (+0.08%) | :arrow_up: |
| Files with missing lines | Coverage Δ | |
|---|---|---|
| lib/CppInterOp/CppInterOp.cpp | 91.08% <100.00%> (+0.08%) | :arrow_up: |
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
</details>
clang-tidy review says "All clean, LGTM! :+1:"
Can we add a test for this?
Cpp::Process fails on Cling, see https://github.com/root-project/root/pull/23610
Done
clang-tidy review says "All clean, LGTM! :+1:"
Lgtm!
clang-tidy review says "All clean, LGTM! :+1:"
vgvassilev
aaronj0
process's return code is kSuccess even when the parse recovered from emitted errors or a wrapped expression failed at run time (the JIT reports those through diagnostics that cannot always unwind out of the wrapper frame). Trap the diagnostics like Declare does and check the compilation result, so callers can rely on the return code instead of scraping the captured stderr.