summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-01-13 12:15:54 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-01-13 12:15:54 (GMT)
commit6a1b3708a6bc240cea79b3191b0dafacb014fdb6 (patch)
tree26c0f9d2c7f8e328bbab87f4d069c051e2964d65 /src/scanner.l
parent22a83d10db269c4a5d17873936292621eb64811f (diff)
downloadDoxygen-6a1b3708a6bc240cea79b3191b0dafacb014fdb6.zip
Doxygen-6a1b3708a6bc240cea79b3191b0dafacb014fdb6.tar.gz
Doxygen-6a1b3708a6bc240cea79b3191b0dafacb014fdb6.tar.bz2
Added 'constexpr' as attribute label and to XML output
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 ee04dd9..cc497e3 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -1394,6 +1394,18 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
current->virt = Virtual;
lineCount();
}
+<FindMembers>{B}*"constexpr"{BN}+ {
+ if (insideCpp)
+ {
+ current->type += " constexpr ";
+ current->spec |= Entry::ConstExpr;
+ lineCount();
+ }
+ else
+ {
+ REJECT;
+ }
+ }
<FindMembers>{B}*"published"{BN}+ { // UNO IDL published keyword
if (insideIDL)
{