summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-03-17 19:29:45 (GMT)
committerGitHub <noreply@github.com>2020-03-17 19:29:45 (GMT)
commit39ba759f4dba837818f07451314b3612d438a1bd (patch)
tree6d10f007a4107613446f308e7bf2107144e5b11b /src/util.cpp
parent0f9075aefb620bbef4609111289ff6255ac15cd3 (diff)
downloadDoxygen-39ba759f4dba837818f07451314b3612d438a1bd.zip
Doxygen-39ba759f4dba837818f07451314b3612d438a1bd.tar.gz
Doxygen-39ba759f4dba837818f07451314b3612d438a1bd.tar.bz2
Doxygen version information (#7645)
- add doxygen version to rtf, comment, output - remove duplicate code (getFullVersion) - more clear name to get doxygen version (getVersion becomes getrDoxygenVersion). Also to overcomecofusion with the version information for files.
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 97d03c5..7a7d56e 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -4730,7 +4730,7 @@ QCString substituteKeywords(const QCString &s,const char *title,
result = substitute(result,"$datetime",dateToString(TRUE));
result = substitute(result,"$date",dateToString(FALSE));
result = substitute(result,"$year",yearToString());
- result = substitute(result,"$doxygenversion",getVersion());
+ result = substitute(result,"$doxygenversion",getDoxygenVersion());
result = substitute(result,"$projectname",projName);
result = substitute(result,"$projectnumber",projNum);
result = substitute(result,"$projectbrief",projBrief);
@@ -8526,6 +8526,20 @@ void writeLatexSpecialFormulaChars(FTextStream &t)
"\n";
}
+QCString getFullVersion()
+{
+ QCString versionString;
+ if (strlen(getGitVersion())>0)
+ {
+ versionString = QCString(getDoxygenVersion())+" ("+getGitVersion()+")";
+ }
+ else
+ {
+ versionString = getDoxygenVersion();
+ }
+ return versionString;
+}
+
//------------------------------------------------------
static int g_usedTableLevels = 0;