1
/*******************************************************************************
2
* Copyright (c) 2002, 2008 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Rational Software - Initial API and implementation
11
* Markus Schorn (Wind River Systems)
12
*******************************************************************************/
13
package org.eclipse.cdt.core.dom.parser.cpp;
15
import org.eclipse.cdt.core.dom.parser.IBuiltinBindingsProvider;
16
import org.eclipse.cdt.core.parser.ParserLanguage;
17
import org.eclipse.cdt.internal.core.dom.parser.GCCBuiltinSymbolProvider;
20
* Configures the parser for c++-sources as accepted by g++.
22
public class GPPParserExtensionConfiguration extends AbstractCPPParserExtensionConfiguration {
23
private static GPPParserExtensionConfiguration sInstance= new GPPParserExtensionConfiguration();
27
public static GPPParserExtensionConfiguration getInstance() {
32
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#allowRestrictPointerOperators()
35
public boolean allowRestrictPointerOperators() {
40
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportTypeofUnaryExpressions()
43
public boolean supportTypeofUnaryExpressions() {
48
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportAlignOfUnaryExpression()
51
public boolean supportAlignOfUnaryExpression() {
56
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportExtendedTemplateSyntax()
59
public boolean supportExtendedTemplateSyntax() {
64
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportMinAndMaxOperators()
67
public boolean supportMinAndMaxOperators() {
72
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportStatementsInExpressions()
75
public boolean supportStatementsInExpressions() {
80
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportComplexNumbers()
83
public boolean supportComplexNumbers() {
88
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportRestrictKeyword()
91
public boolean supportRestrictKeyword() {
96
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportLongLongs()
99
public boolean supportLongLongs() {
104
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportKnRC()
107
public boolean supportKnRC() {
112
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportAttributeSpecifiers()
115
public boolean supportAttributeSpecifiers() {
120
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#supportDeclspecSpecifiers()
123
public boolean supportDeclspecSpecifiers() {
128
* @see org.eclipse.cdt.core.dom.parser.cpp.AbstractCPPParserExtensionConfiguration#getBuiltinBindingsProvider()
131
public IBuiltinBindingsProvider getBuiltinBindingsProvider() {
132
return new GCCBuiltinSymbolProvider(ParserLanguage.CPP);