Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Rename #169

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Rename #169

merged 2 commits into from
Aug 26, 2024

Conversation

RichLogan
Copy link
Contributor

@RichLogan RichLogan commented Aug 21, 2024

This renames all of libtransport to match the project's now declared style guide, and enforces naming via clang-tidy.

Note that cmd/ is not currently linted, so I will fix that up subsequently.

I also added this commit to .git-blame-ignore-revs, to mitigate at least some of the pain of having a diff on practically every line.

I will setup the format harness, and run it, immediately after this PR.

I don't expect anyone to read this entire diff, but you should be able to reproduce it mostly by using the same clang-tidy file and running clang-apply-replacements clang-tidy-fixes from the build folder when building with -DLINT=ON, and then correcting the API changes in cmd/.

There was also a name clash on GCC for typedefs matching class names (e.g using TimeQueue = TimeQueue).

Otherwise, nothing functional.

include/transport/priority_queue.h Outdated Show resolved Hide resolved
cmd/client.cc Show resolved Hide resolved
cmd/client.cc Show resolved Hide resolved
include/transport/priority_queue.h Show resolved Hide resolved
include/transport/span.h Outdated Show resolved Hide resolved
@RichLogan RichLogan merged commit af1915b into main Aug 26, 2024
2 checks passed
@RichLogan RichLogan deleted the rename branch August 26, 2024 15:45
@@ -13,7 +13,7 @@ namespace qtransport {
template<typename T, class Allocator = std::allocator<T>>
class StreamBuffer
{
using buffer_t = std::deque<T, Allocator>;
using BufferT = std::deque<T, Allocator>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Might have been better to call it BufferType.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants