@@ -421,6 +421,33 @@ Types
421
421
.. note :: This attribute is not usable from within `lto1`; attempting
422
422
to use it there will lead to a `RuntimeError ` exception.
423
423
424
+ Additional attributes for various :py:class: `gcc.Type ` subclasses:
425
+
426
+ .. py :attribute :: const
427
+
428
+ (Boolean) Does this type have the `const ` modifier?
429
+
430
+ .. py :attribute :: const_equivalent
431
+
432
+ The :py:class: `gcc.Type ` for the `const ` version of this type
433
+
434
+ .. py :attribute :: volatile
435
+
436
+ (Boolean) Does this type have the `volatile ` modifier?
437
+
438
+ .. py :attribute :: volatile_equivalent
439
+
440
+ The :py:class: `gcc.Type ` for the `volatile ` version of this type
441
+
442
+ .. py :attribute :: restrict
443
+
444
+ (Boolean) Does this type have the `restrict ` modifier?
445
+
446
+ .. py :attribute :: restrict_equivalent
447
+
448
+ The :py:class: `gcc.Type ` for the `restrict ` version of this type
449
+
450
+
424
451
The standard C types are accessible via class methods of :py:class: `gcc.Type `.
425
452
They are only created by GCC after plugins are loaded, and so they're
426
453
only visible during callbacks, not during the initial run of the code.
@@ -549,33 +576,6 @@ Types
549
576
550
577
The :py:class: `gcc.Type ` that this type points to
551
578
552
- Additional attributes for various :py:class: `gcc.Type ` subclasses:
553
-
554
- .. py :attribute :: const
555
-
556
- (Boolean) Does this type have the `const ` modifier?
557
-
558
- .. py :attribute :: const_equivalent
559
-
560
- The :py:class: `gcc.Type ` for the `const ` version of this type
561
-
562
- .. py :attribute :: volatile
563
-
564
- (Boolean) Does this type have the `volatile ` modifier?
565
-
566
- .. py :attribute :: volatile_equivalent
567
-
568
- The :py:class: `gcc.Type ` for the `volatile ` version of this type
569
-
570
- .. py :attribute :: restrict
571
-
572
- (Boolean) Does this type have the `restrict ` modifier?
573
-
574
- .. py :attribute :: restrict_equivalent
575
-
576
- The :py:class: `gcc.Type ` for the `restrict ` version of this type
577
-
578
-
579
579
.. py :class :: gcc.FunctionType
580
580
581
581
Subclass of :py:class: `gcc.Type ` representing the type of a given function
0 commit comments