Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[clang][Modules] Reporting Errors for Duplicating Link Declarations inmodulemaps#148959

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
qiongsiwu wants to merge5 commits intollvm:main
base:main
Choose a base branch
Loading
fromqiongsiwu:eng_155880064

Conversation

qiongsiwu
Copy link
Contributor

@qiongsiwuqiongsiwu commentedJul 15, 2025
edited
Loading

This PR teaches the modulemap parsing logic to report errors if the parsing logic sees duplicating link declarations in the same module. Specifically, duplicating link declarations means multiple link declarations with the same string-literal in the same module. No errors are reported if a same link declaration exist in a submodule and its enclosing module.

rdar://155880064

@qiongsiwu
Copy link
ContributorAuthor

A different approach we can take is to deduplicate link libraries per module silently, and avoid adding any error checks. I think that is probably fine since there are no correctness issues. But I think it is also beneficial to report to the user that their modulemap contains duplicating link declarations.@Bigcheese@jansvoboda11 what do you think?

@jansvoboda11
Copy link
Contributor

I think a hard error is a bit too much initially, maybe let's introduce a warning first and then tighten the screws later?

…an error whe link declarations are used in submodules.
…ure as indicated by the test case clang/test/Modules/autolink.m
…s a feature as indicated by the test case clang/test/Modules/autolink.m"This reverts commit3286622.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@BigcheeseBigcheeseAwaiting requested review from Bigcheese

@jansvoboda11jansvoboda11Awaiting requested review from jansvoboda11

Assignees

@qiongsiwuqiongsiwu

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@qiongsiwu@jansvoboda11

[8]ページ先頭

©2009-2025 Movatter.jp