Repository navigation
cleanup: trim transitive includes from KERNEL and METADATA headers - #8946
Conversation
Remove dead and redundant #include directives from core headers (ExperimentalSettings.h, SpectrumSettings.h, FeatureMap.h, ConsensusMap.h, ProteinIdentification.h) and replace full includes with forward declarations where possible. This breaks deep transitive include chains rooted in MSExperiment.h (~81 includers), reducing the headers dragged in by each consumer. Downstream .cpp files and tests that relied on transitive includes now include the needed headers directly. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (20)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThis pull request reorganizes header dependencies across the OpenMS codebase by replacing full includes with forward declarations where possible, adjusting include locations in header files, and adding missing includes to implementation files to ensure proper type definitions at compile time. Changes
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Add missing changelog entries for: - BREAKING: Qt string API removal from String/DataValue (#8940) - BREAKING: Qt6::Core removed from libOpenMS PUBLIC CMake deps (#8965) - BREAKING: Transitive includes trimmed from KERNEL/METADATA headers (#8946) - Fix: segfault in FeatureLinkerUnlabeledKD with charge_merging=Any (#8944) Co-authored-by: Copilot <[email protected]>
Add missing changelog entries for: - BREAKING: Qt string API removal from String/DataValue (#8940) - BREAKING: Qt6::Core removed from libOpenMS PUBLIC CMake deps (#8965) - BREAKING: Transitive includes trimmed from KERNEL/METADATA headers (#8946) - Fix: segfault in FeatureLinkerUnlabeledKD with charge_merging=Any (#8944) Co-authored-by: GitHub Copilot <[email protected]> Co-authored-by: Copilot <[email protected]>
Summary
#includedirectives from 5 core headers (ExperimentalSettings.h,SpectrumSettings.h,FeatureMap.h,ConsensusMap.h,ProteinIdentification.h) and replace full includes with forward declarations where only references/pointers are usedMSExperiment.h(~81 includers), notably removing the entireProteinIdentification.hchain (25K + 15 transitive includes) from everyMSExperimentconsumer.cpp/test files that previously relied on transitive includesTest plan
cmake --buildwith-j$(nproc)) succeeds — all libraries, TOPP tools, and tests compileLPWrapper_testmissing COIN lib,MRMFeatureSelector_testvector bounds assert)🤖 Generated with Claude Code
Summary by CodeRabbit