summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-02 09:33:10 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-02 09:33:10 (GMT)
commit77c1e773565b2e464cc19d5e897ff7ba3bfb93fc (patch)
treedc14de1ea2b424b3d0c4244852c56d7e2799ebae /src/scanner.l
parent054e6f10845218f0a39898030830200313261c62 (diff)
parente042aeceae7bb0dbee8e7602d3a20b388b94eb82 (diff)
downloadDoxygen-77c1e773565b2e464cc19d5e897ff7ba3bfb93fc.zip
Doxygen-77c1e773565b2e464cc19d5e897ff7ba3bfb93fc.tar.gz
Doxygen-77c1e773565b2e464cc19d5e897ff7ba3bfb93fc.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l12
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))