Trait

de.fosd.typechef.typesystem

CTypes

Related Doc: package typesystem

Permalink

trait CTypes extends COptionProvider

helper functions

Linear Supertypes
COptionProvider, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CTypes
  2. COptionProvider
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type PtrEnv = Set[String]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def arrayType(t: CType): Boolean

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def coerce(expectedType: CType, foundType: CType): Option[String]

    Permalink

    determines whether types are compatible in assignements etc

    determines whether types are compatible in assignements etc

    for "a=b;" with a:type1 and b:type2

    returns None if there is an error, Some("") if it passes and Some(msg) if there is a warning

  8. def converse(a: CType, b: CType): CType

    Permalink

    ansi c conversion rules of two arithmetic types (if called on other types, it just returns the first type; hence the pattern if cocerce(x,y) return converse(x,y) should yield the default behavior )

    ansi c conversion rules of two arithmetic types (if called on other types, it just returns the first type; hence the pattern if cocerce(x,y) return converse(x,y) should yield the default behavior )

    default is int. if either operand has a higher priority, it is preferred over int

    according to specification: http://techpubs.sgi.com/library/manuals/0000/007-0701-150/pdf/007-0701-150.pdf

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. def isAnonymousStruct(t: CType): Boolean

    Permalink
  15. def isArithmetic(t: CType): Boolean

    Permalink
  16. def isArray(t: CType): Boolean

    Permalink
  17. def isCharSignCoercion(a: AType, b: AType): Boolean

    Permalink

    are both types char but with different signage?

    are both types char but with different signage?

    Attributes
    protected
  18. def isCompound(t: CType): Boolean

    Permalink
  19. def isFloatingPoint(t: CType): Boolean

    Permalink
  20. def isForcedCoercion(expectedType: AType, foundType: AType): Boolean

    Permalink

    we can report as a warning if both types are number, but they are not the same width or signed

  21. def isFunction(t: CType): Boolean

    Permalink
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isIntegral(t: CType): Boolean

    Permalink
  24. def isPointer(t: CType): Boolean

    Permalink
  25. def isScalar(t: CType): Boolean

    Permalink
  26. def isStruct(t: CType): Boolean

    Permalink
  27. def isVoid(t: CType): Boolean

    Permalink
  28. def isZero(t: CType): Boolean

    Permalink
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def normalize(t: AType): AType

    Permalink
    Attributes
    protected
  31. def normalize(t: CType): CType

    Permalink

    normalize types for internal comparison in coerce (do not return this to the outside)

    normalize types for internal comparison in coerce (do not return this to the outside)

    * function -> pointer to function

    * pointer to pointer to function -> pointer to function

    * remove any CObj within the type

    * regard arrays as pointers

    * pointer to ignore equals ignore

    * CVoid in function parameters is removed

    Attributes
    protected
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def opts: ICTypeSysOptions

    Permalink
    Attributes
    protected
    Definition Classes
    COptionProvider
  35. def promote(x: CType): CType

    Permalink

    promotion is what happens internally during conversion

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. implicit def toCType(x: CLong): AType

    Permalink
  38. implicit def toCType(x: CShort): AType

    Permalink
  39. implicit def toCType(x: CChar): AType

    Permalink
  40. implicit def toCType(x: CInt): AType

    Permalink
  41. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from COptionProvider

Inherited from AnyRef

Inherited from Any

Ungrouped