From 991f64abb257d1a70077ed809cba6c6adca38042 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 20 Apr 2020 14:41:49 +0200 Subject: Add doxygen version information to tag file Add doxygen version information to doxygen tag file. currently this information is not used inside doxygen , but is useful for checking with which version of doxygen is used when debugging problems. --- src/doxygen.cpp | 7 +++++++ src/tagreader.cpp | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/doxygen.cpp b/src/doxygen.cpp index c59b075..f773180 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -10361,6 +10361,13 @@ static void writeTagFile() FTextStream tagFile(&tag); tagFile << "" << endl; tagFile << "" << endl; + tagFile << " 0) + { + tagFile << " gitid=\"" << getGitVersion() << "\""; + } + tagFile << ">" << endl; // for each file for (const auto &fn : *Doxygen::inputNameLinkedMap) diff --git a/src/tagreader.cpp b/src/tagreader.cpp index 3a35a27..db1efd3 100644 --- a/src/tagreader.cpp +++ b/src/tagreader.cpp @@ -860,6 +860,7 @@ class TagFileParser : public QXmlDefaultHandler m_startElementHandlers.insert("tagfile", new StartElementHandler(this,&TagFileParser::startIgnoreElement)); m_startElementHandlers.insert("templarg", new StartElementHandler(this,&TagFileParser::startStringValue)); m_startElementHandlers.insert("type", new StartElementHandler(this,&TagFileParser::startStringValue)); + m_startElementHandlers.insert("doxygen", new StartElementHandler(this,&TagFileParser::startIgnoreElement)); m_endElementHandlers.insert("compound", new EndElementHandler(this,&TagFileParser::endCompound)); m_endElementHandlers.insert("member", new EndElementHandler(this,&TagFileParser::endMember)); @@ -884,6 +885,7 @@ class TagFileParser : public QXmlDefaultHandler m_endElementHandlers.insert("tagfile", new EndElementHandler(this,&TagFileParser::endIgnoreElement)); m_endElementHandlers.insert("templarg", new EndElementHandler(this,&TagFileParser::endTemplateArg)); m_endElementHandlers.insert("type", new EndElementHandler(this,&TagFileParser::endType)); + m_endElementHandlers.insert("doxygen", new EndElementHandler(this,&TagFileParser::endIgnoreElement)); return TRUE; } -- cgit v0.12