1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-14 11:45:38 +02:00

Add some more commonly used types to SemanticTestBase.CommonCPPTypes

Change-Id: Ifec1e26f9e5a31651229e50002dfcb2d67b1379d
This commit is contained in:
Nathan Ridge 2017-05-16 18:35:35 -04:00
parent 9aa8aca96b
commit f579acd381

View file

@ -66,10 +66,13 @@ public class SemanticTestBase extends BaseTestCase {
}
protected static class CommonCPPTypes {
public static IType char_ = CPPBasicType.CHAR;
public static IType int_ = CPPBasicType.INT;
public static IType void_ = CPPBasicType.VOID;
public static IType constChar = constOf(char_);
public static IType constInt = constOf(int_);
public static IType pointerToInt = pointerTo(int_);
public static IType pointerToConstChar = pointerTo(constChar);
public static IType pointerToConstInt = pointerTo(constInt);
public static IType referenceToInt = referenceTo(int_);
public static IType referenceToConstInt = referenceTo(constInt);