You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Robadob
changed the title
RTC compilation should provide the correct line numbers in errors.
RTC compilation should provide the correct line numbers in compile errors.
Jul 28, 2021
This differs if EXPORT_RTC_SOURCES is enabled, so that line numbers are correct relative to the exported file (which contains injected includes too).
Otherwise, line number is at the start of the user defined RTC agent function string, however if the line begins with a linebreak, that opening linebreak is trimmed.
Closes#608
This differs if EXPORT_RTC_SOURCES is enabled, so that line numbers are correct relative to the exported file (which contains injected includes too).
Otherwise, line number is at the start of the user defined RTC agent function string, however if the line begins with a linebreak, that opening linebreak is trimmed.
Closes#608
This differs if EXPORT_RTC_SOURCES is enabled, so that line numbers are correct relative to the exported file (which contains injected includes too).
Otherwise, line number is at the start of the user defined RTC agent function string, however if the line begins with a linebreak, that opening linebreak is trimmed.
Closes#608
Currently line numbers are offset in compile errors, due to the injected includes.
This can be resolved by finally injecting a
#line
pragma, to reset the line number. I have tested that NVRTC supports this feature.#line 1
should suffice, unless we also want to use this to rename the file to match that exported by the relevant CMake flag to solve another issue.https://gcc.gnu.org/onlinedocs/cpp/Line-Control.html
The text was updated successfully, but these errors were encountered: