BlueBrain / nmodl

Code Generation Framework For NEURON MODeling Language
https://bluebrain.github.io/nmodl/
Apache License 2.0
54 stars 15 forks source link

Blame NMODL for lines it's generating. #1176

Closed 1uc closed 7 months ago

1uc commented 7 months ago

Adds

nmodl MOD_FILE blame --line LINE

which will cause NMODL to print a backtrace every time it writes to line LINE.

This is very helpful when trying to find the NMODL code responsible for printing a (faulty) line of code.

1uc commented 7 months ago

Replaces #1170.

codecov-commenter commented 7 months ago

Codecov Report

Attention: Patch coverage is 81.25000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 87.17%. Comparing base (39922a3) to head (a96a43e).

Files Patch % Lines
src/main.cpp 50.00% 2 Missing :warning:
src/printer/code_printer.hpp 75.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1176 +/- ## ========================================== - Coverage 87.17% 87.17% -0.01% ========================================== Files 175 175 Lines 12878 12885 +7 ========================================== + Hits 11227 11233 +6 - Misses 1651 1652 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.