From f579acd381f834d9c69047ae0f67b555f56d9c66 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Tue, 16 May 2017 18:35:35 -0400 Subject: [PATCH] Add some more commonly used types to SemanticTestBase.CommonCPPTypes Change-Id: Ifec1e26f9e5a31651229e50002dfcb2d67b1379d --- .../eclipse/cdt/core/parser/tests/ast2/SemanticTestBase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/SemanticTestBase.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/SemanticTestBase.java index 27ad1d7cfdd..fccc174b5d2 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/SemanticTestBase.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/SemanticTestBase.java @@ -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);