Skip to content

Conversation

@hugooole
Copy link
Contributor

No description provided.

@bazel-io
Copy link
Member

Hello @vtsao-openai, modules you maintain (libdwarf) have been updated in this PR.
Please review the changes. You can view a diff against the previous version in the "Generate module diff" check.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds version 2.2.0 of libdwarf. The changes are well-structured and generally follow the Bazel Central Registry guidelines. I've identified one issue in the BUILD.bazel file where source files are incorrectly included in the hdrs attribute of a cc_library, which should be corrected.

Comment on lines +90 to +95
hdrs = glob(
[
"src/bin/dwarfdump/*.h",
"src/bin/dwarfdump/*.c",
],
),
Copy link
Contributor

Choose a reason for hiding this comment

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

high

Source files (.c) should not be included in the hdrs attribute of a cc_library. The hdrs attribute is for header files that are part of the library's public interface. Including source files can lead to multiple definition errors and unnecessarily exposes implementation details. These source files are already correctly listed in the srcs attribute.

    hdrs = glob(["src/bin/dwarfdump/*.h"]),

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.

2 participants