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

Revert "Neheb 1" #315

Closed
wants to merge 1 commit into from
Closed

Revert "Neheb 1" #315

wants to merge 1 commit into from

Conversation

rakshasa
Copy link
Owner

Reverts #314

@rakshasa rakshasa closed this Feb 11, 2025
@rakshasa rakshasa deleted the revert-314-neheb-1 branch February 11, 2025 07:47
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)

@@ -59,10 +59,8 @@ class partial_queue {

static const size_type num_layers = 8;

partial_queue() = default;
partial_queue() : m_data(NULL), m_maxLayerSize(0) {}

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
partial_queue() : m_data(NULL), m_maxLayerSize(0) {}
partial_queue() : m_data(NULL), m_max_layer_size(0) {}

~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; }

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;

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;

void operator = (const Chunk&);

uint32_t m_chunkSize;
int m_prot;
};

inline Chunk::iterator

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

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