Commit d7e47571 authored by David Gobbi's avatar David Gobbi

Store "override" for use by the wrappers

parent 5caea543
......@@ -6447,7 +6447,14 @@ yyuserAction (yyRuleNum yyn, size_t yyrhslen, yyGLRStackItem* yyvsp,
{
postSig(" "); postSig((((yyGLRStackItem const *)yyvsp)[YYFILL (0)].yystate.yysemantics.yysval.str));
if (strcmp((((yyGLRStackItem const *)yyvsp)[YYFILL (0)].yystate.yysemantics.yysval.str), "final") == 0) { currentFunction->IsFinal = 1; }
if (strcmp((((yyGLRStackItem const *)yyvsp)[YYFILL (0)].yystate.yysemantics.yysval.str), "final") == 0)
{
currentFunction->IsFinal = 1;
}
else if (strcmp((((yyGLRStackItem const *)yyvsp)[YYFILL (0)].yystate.yysemantics.yysval.str), "override") == 0)
{
currentFunction->IsOverride = 1;
}
}
break;
......
......@@ -2563,7 +2563,14 @@ virt_specifier:
ID
{
postSig(" "); postSig($<str>1);
if (strcmp($<str>1, "final") == 0) { currentFunction->IsFinal = 1; }
if (strcmp($<str>1, "final") == 0)
{
currentFunction->IsFinal = 1;
}
else if (strcmp($<str>1, "override") == 0) {
{
currentFunction->IsOverride = 1; }
}
}
opt_body_as_trailer:
......
......@@ -152,6 +152,7 @@ void vtkParse_InitFunction(FunctionInfo *func)
func->IsConst = 0;
func->IsDeleted = 0;
func->IsFinal = 0;
func->IsOverride = 0;
func->IsExplicit = 0;
func->IsLegacy = 0;
......@@ -235,6 +236,7 @@ void vtkParse_CopyFunction(FunctionInfo *func, const FunctionInfo *orig)
func->IsConst = orig->IsConst;
func->IsDeleted = orig->IsDeleted;
func->IsFinal = orig->IsFinal;
func->IsOverride = orig->IsOverride;
func->IsExplicit = orig->IsExplicit;
func->IsLegacy = orig->IsLegacy;
......
......@@ -192,6 +192,7 @@ struct _FunctionInfo
int IsConst; /* methods only */
int IsDeleted; /* methods only */
int IsFinal; /* methods only */
int IsOverride; /* methods only */
int IsExplicit; /* constructors only */
#ifndef VTK_PARSE_LEGACY_REMOVE
int NumberOfArguments; /* legacy */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment