Skip to content

clang-tidy: resolve readability-redundant-access-specifiers - #757

Merged
knoepfel merged 2 commits into
Framework-R-D:mainfrom
knoepfel:readability-redundant-access-specifiers
Jul 23, 2026
Merged

clang-tidy: resolve readability-redundant-access-specifiers#757
knoepfel merged 2 commits into
Framework-R-D:mainfrom
knoepfel:readability-redundant-access-specifiers

Conversation

@knoepfel

@knoepfel knoepfel commented Jul 22, 2026

Copy link
Copy Markdown
Member

Resolve readability-redundant-access-specifiers clang-tidy warnings.

  • Code quality: Resolved readability-redundant-access-specifiers clang-tidy warnings by removing redundant access specifiers in persistence reader/writer headers and test code.
  • Tests: Updated replicated_node’s data-member section to use private access.
  • Documentation: Marked the clang-tidy check as completed and recorded PR #757 in the fixes documentation.
  • API impact: No public API signatures or persistence behavior changed.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d361b2e9-a7cf-4f94-a25d-2cd26be7e165

📥 Commits

Reviewing files that changed from the base of the PR and between 7b7fd8d and 9994d70.

📒 Files selected for processing (4)
  • docs/dev/clang-tidy-fixes-2026-04.md
  • form/persistence/persistence_reader.hpp
  • form/persistence/persistence_writer.hpp
  • test/replicated.cpp
💤 Files with no reviewable changes (2)
  • form/persistence/persistence_writer.hpp
  • form/persistence/persistence_reader.hpp
📜 Recent review details
🧰 Additional context used
📓 Path-based instructions (3)
**/*.md

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/*.md: All Markdown files must follow markdownlint rule MD012: no multiple consecutive blank lines (never more than one blank line in a row)
All Markdown files must follow markdownlint rule MD022: headings must be surrounded by exactly one blank line before and after
All Markdown files must follow markdownlint rule MD031: fenced code blocks must be surrounded by exactly one blank line before and after
All Markdown files must follow markdownlint rule MD032: lists must be surrounded by exactly one blank line before and after (including after headings and code blocks)
All Markdown files must follow markdownlint rule MD034: no bare URLs (use markdown link syntax like [text](destination) instead of plain URLs)
All Markdown files must follow markdownlint rule MD036: use # headings for titles, not Bold:
All Markdown files must follow markdownlint rule MD040: always specify code block language (for example, use 'bash', 'python', '```text', etc.)

**/*.md: Do not use multiple consecutive blank lines in Markdown (MD012)
Surround Markdown headings with exactly one blank line (MD022)
Surround Markdown fenced code blocks with exactly one blank line (MD031)
Surround Markdown lists with exactly one blank line (MD032)
Do not use bare URLs in Markdown; use [text](url) syntax instead (MD034)
Use # headings in Markdown, not **Bold** for section titles (MD036)
Always specify language on fenced code blocks in Markdown (MD040)

Files:

  • docs/dev/clang-tidy-fixes-2026-04.md
**/*.{cpp,cc,cxx,h,hpp}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

**/*.{cpp,cc,cxx,h,hpp}: Use clang-format tool for all C++ code formatting (VS Code auto-formats on save); configuration defined in .clang-format with 100-character line limit and 2-space indentation
Follow clang-tidy recommendations defined in .clang-tidy

Files:

  • test/replicated.cpp
**/*.{hpp,cpp}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{hpp,cpp}: Use .hpp for header files, .cpp for implementation, and *_test.cpp for test files in C++
Enforce 100-character line limit and 2-space indentation in C++ code via .clang-format
Use QualifierAlignment: Right (east-const) style: int const x not const int x in C++
Use PointerAlignment: Left in C++ (pointer * attached to type, not variable name)
All C++ identifiers must use lower_case naming: namespaces, classes, structs, enums, functions, variables, parameters, members, and constants
Exception to C++ naming: template parameters use CamelCase
Exception to C++ naming: macros use UPPER_CASE
Private, protected, and constant members in C++ must have a trailing underscore (_), no trailing underscore on anything else
Use enum class preferred over plain enum in C++
Use std::shared_ptr for shared ownership, std::unique_ptr for exclusive ownership, raw pointers for non-owning references only in C++
Use functors with agent-noun pattern: ModelEvaluator evaluate_model(...) in C++
Apply .clang-tidy checks for bugprone, cert, clang-analyzer, concurrency, cppcoreguidelines, misc, modernize, performance, portability, and readability as defined in the .clang-tidy configuration file
Use phlex:: namespace for core code, phlex::experimental:: for experimental features in C++

Files:

  • test/replicated.cpp

📝 Walkthrough

Walkthrough

The changes remove redundant C++ access-specifier structure, make replicated_node data members private, and mark the corresponding clang-tidy check as resolved with a PR reference.

Changes

Access Specifier Cleanup

Layer / File(s) Summary
C++ access section updates
form/persistence/persistence_reader.hpp, form/persistence/persistence_writer.hpp, test/replicated.cpp
Persistence class sections are simplified, and replicated_node’s subsequent member fields become private.
Clang-tidy tracking update
docs/dev/clang-tidy-fixes-2026-04.md
The redundant-access-specifiers item is marked resolved and linked to PR #757.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: greenc-fnal

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: resolving clang-tidy readability-redundant-access-specifiers warnings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@knoepfel

Copy link
Copy Markdown
Member Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@knoepfel
knoepfel merged commit a2cca50 into Framework-R-D:main Jul 23, 2026
35 checks passed
@knoepfel
knoepfel deleted the readability-redundant-access-specifiers branch July 23, 2026 21:24
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