mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +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
|
||||
* enabled
|
||||
* @deprecated configure extra keywords, via {@link IScannerExtensionConfiguration#getAdditionalKeywords()}
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean supportRestrictKeyword();
|
||||
|
||||
/**
|
||||
|
|
|
@ -1833,8 +1833,6 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
|
||||
private final boolean supportComplex;
|
||||
|
||||
private final boolean supportRestrict;
|
||||
|
||||
private final boolean supportLongLong;
|
||||
|
||||
private final IIndex index;
|
||||
|
@ -1873,7 +1871,6 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
allowCPPRestrict = config.allowRestrictPointerOperators();
|
||||
supportExtendedTemplateSyntax = config.supportExtendedTemplateSyntax();
|
||||
supportMinAndMaxOperators = config.supportMinAndMaxOperators();
|
||||
supportRestrict = config.supportRestrictKeyword();
|
||||
supportComplex = config.supportComplexNumbers();
|
||||
supportLongLong = config.supportLongLongs();
|
||||
this.index= index;
|
||||
|
@ -2968,10 +2965,6 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
last = consume();
|
||||
break;
|
||||
case IToken.t_restrict:
|
||||
if (!supportRestrict) {
|
||||
IToken la = LA(1);
|
||||
throwBacktrack(la.getOffset(), la.getEndOffset() - la.getOffset());
|
||||
}
|
||||
isRestrict = true;
|
||||
last = consume();
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue