Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f2debff86f4cac8ab25bc3ad9fb7b26995d7e26c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*******************************************************************************
 * Copyright (c) 2007, 2015 Wind River Systems, Inc. and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Anton Leherbauer (Wind River Systems) - initial API and implementation
 *     Markus Schorn (Wind River Systems)
 *     Richard Eames
 *     Sergey Prigogin (Google)
 *******************************************************************************/
package org.eclipse.cdt.core.dom.parser.cpp;

import java.util.Collections;
import java.util.Map;

import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
import org.eclipse.cdt.core.parser.IToken.ContextSensitiveTokenType;
import org.eclipse.cdt.core.parser.ParserLanguage;
import org.eclipse.cdt.internal.core.dom.parser.GCCBuiltinSymbolProvider;

/**
 * Abstract C++ parser extension configuration to help model C++ dialects.
 *
 * @since 4.0
 */
public abstract class AbstractCPPParserExtensionConfiguration implements ICPPParserExtensionConfiguration {
	@Override
	public boolean allowRestrictPointerOperators() {
		return false;
	}

	@Override
	public boolean supportAlignOfUnaryExpression() {
		return false;
	}

	@Override
	public boolean supportAttributeSpecifiers() {
		return false;
	}

	@Override
	public boolean supportComplexNumbers() {
		return false;
	}

	@Override
	public boolean supportDeclspecSpecifiers() {
		return false;
	}

	@Override
	public boolean supportExtendedTemplateSyntax() {
		return false;
	}

	@Override
	public boolean supportGCCOtherBuiltinSymbols() {
		return false;
	}

	/**
	 * @since 5.12
	 */
	@Override
	public boolean supportGCCStyleDesignators() {
		return false;
	}

	@Override
	public boolean supportKnRC() {
		return false;
	}

	@Override
	public boolean supportLongLongs() {
		return false;
	}

	@Override
	public boolean supportMinAndMaxOperators() {
		return false;
	}

	@Override
	public boolean supportRestrictKeyword() {
		return false;
	}

	@Override
	public boolean supportStatementsInExpressions() {
		return false;
	}

	@Override
	public boolean supportTypeofUnaryExpressions() {
		return false;
	}

	/**
	 * @since 5.1
	 */
	@Override
	public boolean supportParameterInfoBlock() {
		return false;
	}

	/**
	 * @since 5.1
	 */
	@Override
	public boolean supportExtendedSizeofOperator() {
		return false;
	}

	/**
	 * @since 5.1
	 */
	@Override
	public boolean supportFunctionStyleAssembler() {
		return false;
	}

	/**
	 * @since 5.11
	 */
	@Override
	public boolean supportUserDefinedLiterals() {
		return true;
	}

	@Override
	public IBuiltinBindingsProvider getBuiltinBindingsProvider() {
		return new GCCBuiltinSymbolProvider(ParserLanguage.CPP, supportGCCOtherBuiltinSymbols());
	}

	/**
	 * @since 5.9
	 */
	@Override
	public Map<String, ContextSensitiveTokenType> getAdditionalContextSensitiveKeywords() {
		return Collections.emptyMap();
	}
}

Back to the top