Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Meaning and purpose of IPointerType.isConst()?

What is the meaning of IPointerType.isConst()?

If I have an IPointerType with getType() = int and isConst() = true, do I have a 'const int *' or a 'int * const' ?

In either case, does IPointerType.isConst() not duplicate the functionality of IQualifierType (as 'const int*' can be represented as an IPointerType whose getType() is an IQualifierType whose isConst() is true and whose getType() is int, and 'int * const' can be represneted as an IQualifierType whose isConst() is true and whose getType() is an IPointerType whose getType() is int)?

Thanks,
Nate

Back to the top