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

[#1047] Mark headers with compiler attributes as used #1085

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

robertoaloi
Copy link
Member

Description

Fixes #964 and partially #1047.

@@ -120,3 +121,31 @@ inclusion_range(Uri, Document) ->
_ ->
#{from => {1, 1}, to => {2, 1}}
end.

%% @doc Given a list of included uris, filter out the ones containing
%% compiler attributes. If the Uri cannot be found, keep it in the list.
Copy link
Contributor

Choose a reason for hiding this comment

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

to me it looks like if lookup_document fails the Uri is filtered out.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch. Fixed (the code, not the comment).

@robertoaloi robertoaloi force-pushed the 1047-mark-headers-with-compiler-attribute-as-used branch from cb6d6e1 to eae6df9 Compare September 20, 2021 08:32
@robertoaloi robertoaloi merged commit 0982456 into main Sep 20, 2021
@robertoaloi robertoaloi deleted the 1047-mark-headers-with-compiler-attribute-as-used branch September 20, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not mark includes as unused if they contain module attributes
2 participants