diff options
author | albert-github <albert.tests@gmail.com> | 2019-08-02 09:40:00 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-08-02 09:40:00 (GMT) |
commit | 7a10b6e784bf1ed882157471038e174df850b06c (patch) | |
tree | d6af0bbe791ca3c30a300e74b0ff04f18a9ac2af /src/docgroup.cpp | |
parent | f16a63d6d5d9fd11a2f1c57bdfad7f1d4b175f0e (diff) | |
download | Doxygen-7a10b6e784bf1ed882157471038e174df850b06c.zip Doxygen-7a10b6e784bf1ed882157471038e174df850b06c.tar.gz Doxygen-7a10b6e784bf1ed882157471038e174df850b06c.tar.bz2 |
Regression: unbalanced grouping commands
Regression on #7122 (and #7115 / #7116).
When having multiple consecutive `\name` sections the warning "unbalanced grouping commands" appears
Analogous to the open command also the close command needs an implicit argument.
Diffstat (limited to 'src/docgroup.cpp')
-rw-r--r-- | src/docgroup.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/docgroup.cpp b/src/docgroup.cpp index 2dcca70..1f4fb6d 100644 --- a/src/docgroup.cpp +++ b/src/docgroup.cpp @@ -119,15 +119,18 @@ void DocGroup::open(Entry *e,const char *,int, bool implicit) } } -void DocGroup::close(Entry *e,const char *fileName,int line,bool foundInline) +void DocGroup::close(Entry *e,const char *fileName,int line,bool foundInline,bool implicit) { - if (m_openCount < 1) + if (!implicit) { - warn(fileName,line,"unbalanced grouping commands"); - } - else - { - m_openCount--; + if (m_openCount < 1) + { + warn(fileName,line,"unbalanced grouping commands"); + } + else + { + m_openCount--; + } } //printf("==> closeGroup(name=%s,sec=%x,file=%s,line=%d) m_autoGroupStack=%d\n", // e->name.data(),e->section,fileName,line,m_autoGroupStack.count()); |