[Rint] Correctly handle line continuation after '\'#8772
[Rint] Correctly handle line continuation after '\'#8772jalopezg-git merged 1 commit intoroot-project:masterfrom
Conversation
To have better diagnostics, `TRint::ProcessLineNr()` prepends a
`#line 1 "ROOT_prompt_xxx"` PP directive to each input line. However, this
causes problems if the previous line is continued with '\', e.g.
```
root [0] #define m(x) printf("%s", \
root (cont'ed, cancel with .@) [1]x);
ROOT_prompt_0:2:2: error: '#' is not followed by a macro parameter
^
ROOT_prompt_0:3:1: error: use of undeclared identifier 'x'
x);
^
```
This patch fixes issue root-project#8762.
|
Starting build on |
|
Build failed on ROOT-debian10-i386/cxx14. Failing tests: |
|
Build failed on windows10/cxx14. Errors:
|
|
@phsft-bot build just on windows10/cxx14 |
|
Starting build on |
Sure! (but it will have to wait until I'm back from vacations...) |
|
@phsft-bot build |
|
Starting build on |
|
Build failed on windows10/cxx14. Errors:
|
|
Build failed on mac1014/python3. Failing tests: |
|
Build failed on ROOT-ubuntu16/nortcxxmod. Failing tests: |
|
Build failed on ROOT-performance-centos8-multicore/default. Failing tests:
And 2 more |
|
Build failed on ROOT-debian10-i386/cxx14. Failing tests: |
|
Build failed on mac11.0/cxx17. Failing tests: |
|
@phsft-bot build |
|
Starting build on |
|
Build failed on windows10/cxx14. Errors:
|
|
Build failed on mac11.0/cxx17. Failing tests: |
These fails are totally unrelated. |
Test that backslash-newline works in Rint; more details available at root-project/root#8772
Test that backslash-newline works in Rint; more details available at root-project/root#8772
Test that backslash-newline works in Rint; more details available at root-project/root#8772
Test that backslash-newline works in Rint; more details available at root-project/root#8772
Test that backslash-newline works in Rint; more details available at root-project/root#8772
To have better diagnostics,
TRint::ProcessLineNr()prepends a#line 1 "ROOT_prompt_xxx"PP directive to each input line. However, this causes problems if the previous line is continued with '\', e.g.This PR fixes issue #8762.
Checklist: