diff options
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index fdd8b93..00fa3b4 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -2317,6 +2317,18 @@ NONLopt [^\n]* } yyextra->current->name=yyextra->current->name.mid(6); } + else if (yyextra->current->name.left(9)=="volatile ") + { + if (yyextra->current->type.isEmpty()) + { + yyextra->current->type="volatile"; + } + else + { + yyextra->current->type+="volatile "; + } + yyextra->current->name=yyextra->current->name.mid(9); + } } QCString tmp=yytext; if (nameIsOperator(tmp)) |