mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 11:33:20 +02:00
Deprecated duplicate mechanism to configure keyword restrict, related to bug 228826.
This commit is contained in:
parent
b9a45c92b7
commit
066a527c96
2 changed files with 2 additions and 7 deletions
|
@ -81,7 +81,9 @@ public interface ICPPParserExtensionConfiguration {
|
||||||
*
|
*
|
||||||
* @return <code>true</code> if support for the extension should be
|
* @return <code>true</code> if support for the extension should be
|
||||||
* enabled
|
* enabled
|
||||||
|
* @deprecated configure extra keywords, via {@link IScannerExtensionConfiguration#getAdditionalKeywords()}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public boolean supportRestrictKeyword();
|
public boolean supportRestrictKeyword();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1833,8 +1833,6 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
|
|
||||||
private final boolean supportComplex;
|
private final boolean supportComplex;
|
||||||
|
|
||||||
private final boolean supportRestrict;
|
|
||||||
|
|
||||||
private final boolean supportLongLong;
|
private final boolean supportLongLong;
|
||||||
|
|
||||||
private final IIndex index;
|
private final IIndex index;
|
||||||
|
@ -1873,7 +1871,6 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
allowCPPRestrict = config.allowRestrictPointerOperators();
|
allowCPPRestrict = config.allowRestrictPointerOperators();
|
||||||
supportExtendedTemplateSyntax = config.supportExtendedTemplateSyntax();
|
supportExtendedTemplateSyntax = config.supportExtendedTemplateSyntax();
|
||||||
supportMinAndMaxOperators = config.supportMinAndMaxOperators();
|
supportMinAndMaxOperators = config.supportMinAndMaxOperators();
|
||||||
supportRestrict = config.supportRestrictKeyword();
|
|
||||||
supportComplex = config.supportComplexNumbers();
|
supportComplex = config.supportComplexNumbers();
|
||||||
supportLongLong = config.supportLongLongs();
|
supportLongLong = config.supportLongLongs();
|
||||||
this.index= index;
|
this.index= index;
|
||||||
|
@ -2968,10 +2965,6 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
||||||
last = consume();
|
last = consume();
|
||||||
break;
|
break;
|
||||||
case IToken.t_restrict:
|
case IToken.t_restrict:
|
||||||
if (!supportRestrict) {
|
|
||||||
IToken la = LA(1);
|
|
||||||
throwBacktrack(la.getOffset(), la.getEndOffset() - la.getOffset());
|
|
||||||
}
|
|
||||||
isRestrict = true;
|
isRestrict = true;
|
||||||
last = consume();
|
last = consume();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue