-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handle the case where neither public-files nor private-files are present #96
Conversation
aff078f
to
af7df0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@storypku
Thanks for identifying and fixing this bug!
However, please reduce the examples in test/aspect/shared_library/BUILD
. Using alwayslink
or dlopen
is not related to DWYU or the identified bug. Essentially only //test/aspect/shared_library:libfoobar.so
seems relevant, which you correctly use as integration test.
af7df0d
to
cabdeef
Compare
Done. Is it better to keep the What's your opinion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@storypku
I don't think it is important that the example correctly exports symbols. In the end this is only showing that the tool can handle cc_binary targets without srcs attribute.
I just discovered something which I overlooked in my first review. Please remove package(default_visibility = ["//visibility:public"])
. There is no reason to make these targets available outside the example.
cabdeef
to
9c811ef
Compare
Done. It think you are right. Thanks also for pointing my carelessness in the visibility settings. According to Bazel Visibility Best Practices:
|
Hi @martis42
I found some cases w/ neither public-files nor private-files. Please help review whether or not it's OK.