-
-
Notifications
You must be signed in to change notification settings - Fork 384
clang-tidy: check and fix cppcoreguidelines-virtual-class-destructor #3029
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
base: develop
Are you sure you want to change the base?
clang-tidy: check and fix cppcoreguidelines-virtual-class-destructor #3029
Conversation
WalkthroughThe PR removes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (7)
🧰 Additional context used🧠 Learnings (3)📚 Learning: 2026-01-06T20:27:43.082ZApplied to files:
📚 Learning: 2025-12-30T19:45:24.426ZApplied to files:
📚 Learning: 2025-12-30T19:45:40.183ZApplied to files:
⏰ 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). (1)
🔇 Additional comments (7)
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 |
Description
This PR enables the
cppcoreguidelines-virtual-class-destructorcheck in.clang-tidyand fixes the warnings currently present in the codebase.Changes
.clang-tidyto enable the check.virtual ~ClassName() = default;to the following classes:Pgr_bdAstarininclude/bdAstar/bdAstar.hppPgr_bdDijkstraininclude/bdDijkstra/bdDijkstra.hppPgr_bidirectionalininclude/cpp_common/bidirectional.hppPgr_kruskalininclude/spanningTree/kruskal.hppPgr_mstininclude/spanningTree/mst.hppPgr_primininclude/spanningTree/prim.hppVerification
Built locally with
clang-tidyenabled using:CXX=clang++ CC=clang cmake -DUSE_CLANG_TIDY=ON ..Result: Build completed successfully with no warnings generated for this check.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.