summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-14 15:03:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-14 15:03:02 (GMT)
commitffb2d5de29dfd6a2715eaa6abc3405882067bc9b (patch)
treecbaad720d56d2da31c748cc6106662f46fb8812f
parente82e063bf51b9789d79ee94d5dfe8760f551111e (diff)
parentcdbcb67c28d1f11b086713906afa8e0963065483 (diff)
downloadDoxygen-ffb2d5de29dfd6a2715eaa6abc3405882067bc9b.zip
Doxygen-ffb2d5de29dfd6a2715eaa6abc3405882067bc9b.tar.gz
Doxygen-ffb2d5de29dfd6a2715eaa6abc3405882067bc9b.tar.bz2
Merge pull request #70 from albert-github/feature/developer_usage
usage: make -d print dev doxygen options
-rw-r--r--src/debug.cpp12
-rw-r--r--src/debug.h1
-rw-r--r--src/doxygen.cpp25
3 files changed, 19 insertions, 19 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 1942355..a2b2707 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -21,6 +21,7 @@
#include <qdict.h>
#include "debug.h"
+#include "message.h"
//------------------------------------------------------------------------
@@ -120,3 +121,14 @@ bool Debug::isFlagSet(DebugMask mask)
return (curMask & mask)!=0;
}
+void Debug::printFlags(void)
+{
+ int i;
+ for (i = 0; i < sizeof(s_labels)/sizeof(*s_labels); i++)
+ {
+ if (s_labels[i].name)
+ {
+ msg("\t%s\n",s_labels[i].name);
+ }
+ }
+}
diff --git a/src/debug.h b/src/debug.h
index 29f91bd..e1affab 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -43,6 +43,7 @@ class Debug
static int setFlag(const char *label);
static void clearFlag(const char *label);
static bool isFlagSet(DebugMask mask);
+ static void printFlags(void);
static void setPriority(int p);
private:
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index 65facdf..1fb2e09 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -9775,25 +9775,12 @@ static void dumpSymbolMap()
// print developer options of doxygen
static void devUsage()
{
- msg("developer parameters:\n");
- msg("-m dump symbol map\n");
- msg("-b output to wizard\n");
- msg("-T activates output generation via Django like template\n");
- msg("-d <level> Enable a debug level, such as:\n");
- msg("\tfindmembers\n");
- msg("\tfunctions\n");
- msg("\tvariables\n");
- msg("\tpreprocessor\n");
- msg("\tclasses\n");
- msg("\tcommentcnv\n");
- msg("\tcommentscan\n");
- msg("\tvalidate\n");
- msg("\tprinttree\n");
- msg("\ttime\n");
- msg("\textcmd\n");
- msg("\tmarkdown\n");
- msg("\tfilteroutput\n");
- msg("\tlex\n");
+ msg("Developer parameters:\n");
+ msg(" -m dump symbol map\n");
+ msg(" -b output to wizard\n");
+ msg(" -T activates output generation via Django like template\n");
+ msg(" -d <level> enable a debug level, such as (multiple invocations of -d are possible):\n");
+ Debug::printFlags();
}