🎨 Sort includes by category (backport #1543)#1595
Merged
mergify[bot] merged 1 commit intov3.xfrom Mar 30, 2026
Merged
Conversation
Author
|
Cherry-pick of df4c12f has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
8 tasks
## Description This PR configures `clang-format` to sort the C++ includes by category. The main change is that standard-library headers now appear in a separate section. ## Checklist: - [x] The pull request only contains commits that are focused and relevant to this change. - [x] ~~I have added appropriate tests that cover the new/changed functionality.~~ - [x] ~~I have updated the documentation to reflect these changes.~~ - [x] ~~I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.~~ - [x] ~~I have added migration instructions to the upgrade guide (if needed).~~ - [x] The changes follow the project's style guidelines and introduce no new warnings. - [x] The changes are fully tested and pass the CI checks. - [x] I have reviewed my own code changes. --------- Signed-off-by: Daniel Haag <121057143+denialhaag@users.noreply.github.com> Co-authored-by: Lukas Burgholzer <burgholzer@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> (cherry picked from commit df4c12f) Signed-off-by: burgholzer <burgholzer@me.com> # Conflicts: # include/mqt-core/dd/UniqueTable.hpp # mlir/include/mlir/Compiler/CompilerPipeline.h # mlir/include/mlir/Dialect/QC/Builder/QCProgramBuilder.h # mlir/include/mlir/Dialect/QC/IR/QCInterfaces.h # mlir/include/mlir/Dialect/QC/IR/QCOps.h # mlir/include/mlir/Dialect/QCO/Builder/QCOProgramBuilder.h # mlir/include/mlir/Dialect/QCO/IR/QCOInterfaces.h # mlir/include/mlir/Dialect/QCO/IR/QCOOps.h # mlir/include/mlir/Dialect/QCO/Utils/WireIterator.h # mlir/include/mlir/Dialect/QIR/Builder/QIRProgramBuilder.h # mlir/include/mlir/Dialect/QIR/Utils/QIRUtils.h # mlir/include/mlir/Dialect/Utils/Utils.h # mlir/lib/Compiler/CompilerPipeline.cpp # mlir/lib/Conversion/QCOToQC/QCOToQC.cpp # mlir/lib/Conversion/QCToQCO/QCToQCO.cpp # mlir/lib/Conversion/QCToQIR/QCToQIR.cpp # mlir/lib/Dialect/QC/Builder/QCProgramBuilder.cpp # mlir/lib/Dialect/QC/IR/Modifiers/CtrlOp.cpp # mlir/lib/Dialect/QC/IR/Modifiers/InvOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/BarrierOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/GPhaseOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/POp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/ROp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RXOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RXXOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RYOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RYYOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RZOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RZXOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/RZZOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/U2Op.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/UOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/XXMinusYYOp.cpp # mlir/lib/Dialect/QC/IR/Operations/StandardGates/XXPlusYYOp.cpp # mlir/lib/Dialect/QC/Translation/TranslateQuantumComputationToQC.cpp # mlir/lib/Dialect/QCO/Builder/QCOProgramBuilder.cpp # mlir/lib/Dialect/QCO/IR/Modifiers/CtrlOp.cpp # mlir/lib/Dialect/QCO/IR/Modifiers/InvOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/BarrierOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/ECROp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/GPhaseOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/HOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/POp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/ROp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RXOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RXXOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RYOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RYYOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RZOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RZXOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/RZZOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/SOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/SXOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/SXdgOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/SdgOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/TOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/TdgOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/U2Op.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/UOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/XXMinusYYOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/XXPlusYYOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/YOp.cpp # mlir/lib/Dialect/QCO/IR/Operations/StandardGates/iSWAPOp.cpp # mlir/lib/Dialect/QCO/IR/SCF/IfOp.cpp # mlir/lib/Dialect/QCO/Utils/WireIterator.cpp # mlir/lib/Dialect/QIR/Builder/QIRProgramBuilder.cpp # mlir/lib/Dialect/QIR/Utils/QIRUtils.cpp # mlir/lib/Support/IRVerification.cpp # mlir/lib/Support/PrettyPrinting.cpp # mlir/tools/mqt-cc/mqt-cc.cpp # mlir/unittests/Compiler/test_compiler_pipeline.cpp # mlir/unittests/Conversion/QCOToQC/test_qco_to_qc.cpp # mlir/unittests/Conversion/QCToQCO/test_qc_to_qco.cpp # mlir/unittests/Conversion/QCToQIR/test_qc_to_qir.cpp # mlir/unittests/Dialect/QC/IR/test_qc_ir.cpp # mlir/unittests/Dialect/QC/Translation/test_quantum_computation_translation.cpp # mlir/unittests/Dialect/QCO/IR/test_qco_ir.cpp # mlir/unittests/Dialect/QCO/IR/test_qco_ir_matrix.cpp # mlir/unittests/Dialect/QCO/Utils/test_wireiterator.cpp # mlir/unittests/Dialect/QIR/IR/test_qir_ir.cpp # mlir/unittests/Dialect/Utils/test_utils.cpp # mlir/unittests/TestCaseUtils.h # mlir/unittests/programs/qco_programs.cpp # test/dd/test_edge_functionality.cpp
1fc589f to
a4e1590
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR configures
clang-formatto sort the C++ includes by category. The main change is that standard-library headers now appear in a separate section.Checklist:
I have added appropriate tests that cover the new/changed functionality.I have updated the documentation to reflect these changes.I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.I have added migration instructions to the upgrade guide (if needed).This is an automatic backport of pull request #1543 done by [Mergify](https://mergify.com).