|
23 | 23 |
|
24 | 24 | #include "mlir-c/Diagnostics.h" |
25 | 25 | #include "mlir-c/IR.h" |
| 26 | +// clang-format off |
26 | 27 | #include "mlir/Bindings/Python/Nanobind.h" |
27 | 28 | #include "mlir-c/Bindings/Python/Interop.h" // This is expected after nanobind. |
| 29 | +// clang-format on |
28 | 30 | #include "llvm/ADT/Twine.h" |
29 | 31 |
|
30 | 32 | // Raw CAPI type casters need to be declared before use, so always include them |
@@ -435,7 +437,7 @@ class mlir_attribute_subclass : public pure_subclass { |
435 | 437 | const nanobind::object &superCls, |
436 | 438 | GetTypeIDFunctionTy getTypeIDFunction = nullptr) |
437 | 439 | : pure_subclass(scope, typeClassName, superCls) { |
438 | | - // Casting constructor. Note that it hard, if not impossible, to properly |
| 440 | + // Casting constructor. Note that it is hard, if not impossible, to properly |
439 | 441 | // call chain to parent `__init__` in nanobind due to its special handling |
440 | 442 | // for init functions that don't have a fully constructed self-reference, |
441 | 443 | // which makes it impossible to forward it to `__init__` of a superclass. |
@@ -516,7 +518,7 @@ class mlir_type_subclass : public pure_subclass { |
516 | 518 | const nanobind::object &superCls, |
517 | 519 | GetTypeIDFunctionTy getTypeIDFunction = nullptr) |
518 | 520 | : pure_subclass(scope, typeClassName, superCls) { |
519 | | - // Casting constructor. Note that it hard, if not impossible, to properly |
| 521 | + // Casting constructor. Note that it is hard, if not impossible, to properly |
520 | 522 | // call chain to parent `__init__` in nanobind due to its special handling |
521 | 523 | // for init functions that don't have a fully constructed self-reference, |
522 | 524 | // which makes it impossible to forward it to `__init__` of a superclass. |
@@ -598,7 +600,7 @@ class mlir_value_subclass : public pure_subclass { |
598 | 600 | IsAFunctionTy isaFunction, |
599 | 601 | const nanobind::object &superCls) |
600 | 602 | : pure_subclass(scope, valueClassName, superCls) { |
601 | | - // Casting constructor. Note that it hard, if not impossible, to properly |
| 603 | + // Casting constructor. Note that it is hard, if not impossible, to properly |
602 | 604 | // call chain to parent `__init__` in nanobind due to its special handling |
603 | 605 | // for init functions that don't have a fully constructed self-reference, |
604 | 606 | // which makes it impossible to forward it to `__init__` of a superclass. |
|
0 commit comments