Skip to content

clazy fixes#576

Open
neheb wants to merge 3 commits intorakshasa:masterfrom
neheb:clka
Open

clazy fixes#576
neheb wants to merge 3 commits intorakshasa:masterfrom
neheb:clka

Conversation

@neheb
Copy link
Copy Markdown
Contributor

@neheb neheb commented Oct 12, 2025

No description provided.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

Comment thread src/protocol/protocol_base.h
Comment thread src/protocol/protocol_base.h
Comment thread src/protocol/protocol_base.h
Comment thread src/protocol/protocol_base.h
Comment thread src/protocol/protocol_base.h
Comment thread src/torrent/data/block.h
void set_failed_list(BlockFailed* f) { m_failedList = f; }

static void create_dummy(BlockTransfer* transfer, PeerInfo* peerInfo, const Piece& piece);
static void create_dummy(BlockTransfer* transfer, PeerInfo* peerInfo, Piece piece);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for parameter peerInfo

Suggested change
static void create_dummy(BlockTransfer* transfer, PeerInfo* peerInfo, Piece piece);
static void create_dummy(BlockTransfer* transfer, PeerInfo* peer_info, Piece piece);

void clear();

iterator insert(const Piece& piece, uint32_t blockSize);
iterator insert(Piece piece, uint32_t blockSize);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for parameter blockSize

Suggested change
iterator insert(Piece piece, uint32_t blockSize);
iterator insert(Piece piece, uint32_t block_size);

Comment thread src/torrent/peer/connection_list.h Outdated
//
// Clean this up, don't use this many arguments.
PeerConnectionBase* insert(PeerInfo* p, const SocketFd& fd, Bitfield* bitfield, EncryptionInfo* encryptionInfo, ProtocolExtension* extensions) LIBTORRENT_NO_EXPORT;
PeerConnectionBase* insert(PeerInfo* p, SocketFd fd, Bitfield* bitfield, EncryptionInfo* encryptionInfo, ProtocolExtension* extensions) LIBTORRENT_NO_EXPORT;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for parameter encryptionInfo

Suggested change
PeerConnectionBase* insert(PeerInfo* p, SocketFd fd, Bitfield* bitfield, EncryptionInfo* encryptionInfo, ProtocolExtension* extensions) LIBTORRENT_NO_EXPORT;
PeerConnectionBase* insert(PeerInfo* p, SocketFd fd, Bitfield* bitfield, EncryptionInfo* encryption_info, ProtocolExtension* extensions) LIBTORRENT_NO_EXPORT;

using base_type::operator[];

BlockList(const Piece& piece, uint32_t blockLength);
BlockList(Piece piece, uint32_t blockLength);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ readability-identifier-naming ⚠️
invalid case style for parameter blockLength

Suggested change
BlockList(Piece piece, uint32_t blockLength);
BlockList(Piece piece, uint32_t block_length);

@neheb neheb force-pushed the clka branch 4 times, most recently from 9863013 to 07c3100 Compare October 15, 2025 00:55
@neheb
Copy link
Copy Markdown
Contributor Author

neheb commented Oct 15, 2025

Rebased for license removal.

@neheb
Copy link
Copy Markdown
Contributor Author

neheb commented Jan 6, 2026

Rebased.

@neheb neheb force-pushed the clka branch 2 times, most recently from 787b7f9 to 7b333c3 Compare January 6, 2026 22:46
neheb added 3 commits April 11, 2026 16:40
Found with -Wclazy-copyable-polymorphic

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with: -Wclazy-range-loop-reference

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Found with -Wclazy-function-args-by-value

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@neheb
Copy link
Copy Markdown
Contributor Author

neheb commented Apr 11, 2026

Rebased.

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.

1 participant