diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-14 18:58:12 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-14 18:58:12 (GMT) |
commit | 3901935a5366fa292aa1d3880593b6fb13008b14 (patch) | |
tree | 5ab530f2a8e3f874fc2e925fd8e0bb988de8d3c8 /src/reflist.cpp | |
parent | 341f860ab7ae3e5255891b0984bec8b36e7557ef (diff) | |
download | Doxygen-3901935a5366fa292aa1d3880593b6fb13008b14.zip Doxygen-3901935a5366fa292aa1d3880593b6fb13008b14.tar.gz Doxygen-3901935a5366fa292aa1d3880593b6fb13008b14.tar.bz2 |
issue #7702: test list is always created
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r-- | src/reflist.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index 55e9708..26d20ae 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -20,9 +20,21 @@ #include "ftextstream.h" #include "definition.h" #include "sortdict.h" +#include "config.h" + +bool RefList::isEnabled() const +{ + if (m_listName=="todo" && !Config_getBool(GENERATE_TODOLIST)) return false; + else if (m_listName=="test" && !Config_getBool(GENERATE_TESTLIST)) return false; + else if (m_listName=="bug" && !Config_getBool(GENERATE_BUGLIST)) return false; + else if (m_listName=="deprecated" && !Config_getBool(GENERATE_DEPRECATEDLIST)) return false; + return true; +} void RefList::generatePage() { + if (!isEnabled()) return; + std::sort(m_entries.begin(),m_entries.end(), [](std::unique_ptr<RefItem> &left,std::unique_ptr<RefItem> &right) { return qstricmp(left->title(),left->title()); }); |