Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better placement of line directives #2101

Merged
merged 3 commits into from Nov 12, 2023
Merged

Better placement of line directives #2101

merged 3 commits into from Nov 12, 2023

Conversation

petervdonovan
Copy link
Collaborator

@petervdonovan petervdonovan commented Nov 10, 2023

I believe that this addresses the concerns raised by @KyotoMicrocomputer, except for the command-line flag that suppresses line directives. The flag can be added separately.

Also, close the verbatim blocks with line directives pointing back to
the current file.
@petervdonovan petervdonovan linked an issue Nov 10, 2023 that may be closed by this pull request
2 tasks
We received feedback that line directives are not helpful when the LF
source code that the correspond to is not C code.
@lhstrh lhstrh mentioned this pull request Nov 11, 2023
2 tasks
@lhstrh lhstrh changed the title Line directives Better placement of line directives Nov 11, 2023
In .ino files, do not reference current file in #line directives.
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I've started a PR for the --no-source-mapping flag here: #2092.

@lhstrh lhstrh added this pull request to the merge queue Nov 12, 2023
@lhstrh lhstrh added the enhancement Enhancement of existing feature label Nov 12, 2023
Merged via the queue into master with commit cc5f9c0 Nov 12, 2023
41 checks passed
@lhstrh lhstrh deleted the line-directives branch November 12, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved line directive placement
2 participants