Enforce east const via clang-format QualifierAlignment - #22834
Conversation
|
Historically we did not enable this for some discovered reason, but I do not recall the details. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (69)
✅ Files skipped from review due to trivial changes (44)
🚧 Files skipped from review as they are similar to previous changes (24)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR adds ChangesQualifierAlignment Right sweep
Estimated code review effort: 3 (Moderate) | ~30 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ast-grep (0.44.0)cpp/benchmarks/common/ndsh_data_generator/ndsh_data_generator.cppast-grep exited with code unknown cpp/benchmarks/common/ndsh_data_generator/random_column_generator.hppast-grep exited with code unknown cpp/benchmarks/common/nvbench_utilities.cppast-grep exited with code unknown
Comment |
Probably the new version is better now. We should enforce that and workaround if there issue with it. |
|
The last similar attempt was quite early, e.g. #13493 where the bulk east-const conversion via clang-format's The upstream caveat is still there as of clang-format 20 but I reviewed the generated diff, and on our codebase it comes out clean: Pointer and |
|
IIRC @karthikeyann ended up using multiple tools to generate his old PRs, not just clang-format, because all of them tripped up in different ways. If everything is clean now that's great. |
|
clang-format missed a lot of places in previous attempt. Even after fixing with it, other tools found more instances.
|
…clang-format # Conflicts: # cpp/libcudf_streaming/benchmarks/bench_shuffle.cpp # cpp/libcudf_streaming/include/cudf_streaming/detail/device_bloom_filter.hpp # cpp/libcudf_streaming/tests/streaming/test_shuffler.cpp # cpp/libcudf_streaming/tests/test_shuffler.cpp
|
It looks like the only cases |
vyasr
left a comment
There was a problem hiding this comment.
All the changes look correct (as expected, it is also changing other qualifiers like volatile, which is fine). Let's merge it and see how it holds up for a while.
|
/merge |
|
Nice work 🎉 |
Description
This PR updates the
clang-formatconfiguration to consistently enforce east const formatting across the codebase.Checklist