Repository navigation
[API,BUILD,TEST] Narrow public header dependencies - #10087
timosachsenberg merged 5 commits into
Conversation
Forward-declare reference-only types, share ToolInfo independently of CTD, and keep Parquet implementation includes in the implementation. Compile eight public headers in separate translation units without unity/PCH. Part of OpenMS#10083, step 3.
…rget Twenty of the TransformationDescription includes and both ProteinIdentification includes added for the narrowed headers were already reached through a header each consumer includes directly. Keep the include in FileHandler.cpp, which implements the narrowed header, and in QualityControl.cpp, which reached the type only through FileHandler.h. Remove the per-header object library from the class-test build: it listed only the eight headers touched here and CI already compiles every consumer.
|
Just cleanup |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (20)
📝 WalkthroughWalkthroughThe change narrows selected public-header dependencies, adds the shared ChangesPublic Header Dependency Cleanup
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
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. A rabbit checks each header line Comment |
Implements step 3 of #10083.
Selected public headers currently expose format dispatchers and implementation-only dependencies through incidental includes. This forward-declares reference-only types in FileHandler, ExperimentalDesign, and SpectrumMetaDataLookup, moves the unchanged ToolInfo aggregate into DATASTRUCTURES/ToolInfo.h, and keeps Parquet reader/writer and concrete Arrow file-I/O headers in the implementation.
Consumers that lose a transitive include gain a direct one. Consumers that already reach a type through another header they include directly are left alone; every remaining added include was checked against this branch's include graph and none is reachable another way. FileHandler.cpp includes TransformationDescription.h as the implementation of the narrowed header, and QualityControl.cpp is the one tool that reached the type only through FileHandler.h. ToolInfo is added to the header installation list and remains available through the existing serializer headers.
Declared signatures and ToolInfo members remain unchanged. Downstream code relying on incidental includes may need to add its own includes; CHANGELOG documents this source-level cleanup.
Validation: source dependency baseline passes; ToolInfo member declarations match the original; install registration and git diff --check pass. Class tests, TOPP consumers, and nanobind consumers are compiled by PR CI; no local OpenMS build was run. Kept draft until CI completes.
Independent of the include-removal PR #10086.
Summary by CodeRabbit
New Features
ToolInfodata structure for parameter-file metadata and serializers.Build System
ToolInfoto a dedicated data-structures header.Documentation
ToolInfochanges.