Skip to content
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

treewide: default/delete constructors #311

Merged
merged 1 commit into from
Feb 11, 2025
Merged

treewide: default/delete constructors #311

merged 1 commit into from
Feb 11, 2025

Conversation

neheb
Copy link
Contributor

@neheb neheb commented Feb 8, 2025

Moves to modern C++11 standards. Deleted functions should be public.

Moves to modern C++11 standards. Deleted functions should be public.

Signed-off-by: Rosen Penev <[email protected]>
Copy link

@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)

uint32_t m_chunkSize;
int m_prot;
uint32_t m_chunkSize{};
int m_prot{~0};
};

inline Chunk::iterator
Copy link

Choose a reason for hiding this comment

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

⚠️ clang-diagnostic-error ⚠️
Chunk is not a class, namespace, or enumeration

~partial_queue() { disable(); }
partial_queue(const partial_queue&) = delete;
partial_queue& operator=(const partial_queue&) = delete;

bool is_full() const { return m_ceiling == 0; }
bool is_layer_full(size_type l) const { return m_layers[l].second >= m_maxLayerSize; }
Copy link

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 private member m_maxLayerSize

Suggested change
bool is_layer_full(size_type l) const { return m_layers[l].second >= m_maxLayerSize; }
bool is_layer_full(size_type l) const { return m_layers[l].second >= m_max_layer_size; }

mapped_type* m_data;
size_type m_maxLayerSize;
mapped_type* m_data{};
size_type m_maxLayerSize{};
Copy link

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 private member m_maxLayerSize

Suggested change
size_type m_maxLayerSize{};
size_type m_max_layer_size{};

@rakshasa rakshasa merged commit c500b2f into rakshasa:master Feb 11, 2025
2 checks passed
@neheb neheb deleted the 1 branch February 11, 2025 07:49
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