Configure clang-format include ordering with IncludeCategories#820
Conversation
WalkthroughUpdated .clang-format to regroup and prioritize include categories and to add several attribute/statement-macro names; applied mechanical include-order changes and minor whitespace tweaks across a few source and test files. No API or functional changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
🔇 Additional comments (4)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (6)
.clang-format(1 hunks)art_internal.cpp(1 hunks)benchmark/micro_benchmark.cpp(1 hunks)qsbr.cpp(1 hunks)test/db_test_utils.hpp(1 hunks)test/qsbr_gtest_utils.cpp(0 hunks)
💤 Files with no reviewable changes (1)
- test/qsbr_gtest_utils.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (4)
test/db_test_utils.hpp (1)
31-37: Include reordering is fineMoving
"gtest_utils.hpp"after"assert.hpp"keeps project headers consistently grouped and should not affect semantics.qsbr.cpp (1)
17-26: qsbr.hpp include move is benignIncluding
"qsbr.hpp"after the standard headers but before other project headers is consistent with the new style and should not change behavior as long asqsbr.hppis self-contained.benchmark/micro_benchmark.cpp (1)
16-21: node_type.hpp include reorder onlyPlacing
"node_type.hpp"after the micro_benchmark headers keeps local includes sorted and doesn’t alter dependencies in this TU.art_internal.cpp (1)
8-14: Project headers correctly grouped after std headersAdding
"art_common.hpp"and"art_internal.hpp"after the std headers matches the new include policy and still provides the needed declarations (e.g.unodb::value_view) for this implementation.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #820 +/- ##
=======================================
Coverage 98.34% 98.34%
=======================================
Files 35 35
Lines 6480 6480
=======================================
Hits 6373 6373
Misses 107 107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
38d7e6c to
62afd2f
Compare
Change IncludeBlocks from Preserve to Regroup and define priority categories to enforce consistent include ordering: global.hpp first, then standard library headers, then third-party headers, then project headers. 🤖 Commit message by [Claude Code](https://claude.com/claude-code)
62afd2f to
13db9dd
Compare
|



Change IncludeBlocks from Preserve to Regroup and define priority
categories to enforce consistent include ordering: global.hpp first,
then standard library headers, then third-party headers, then project
headers.
🤖 Commit message by Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.