diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-09 14:34:35 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-03-09 14:38:25 (GMT) |
commit | 208c689e4c13cc065045a6f6b1ff685eda5a3cd6 (patch) | |
tree | 7acb4e2952e920991e88d915ed6f786d717ac73d /src/xmldocvisitor.cpp | |
parent | 169a67186780c191749b958de0f71a17fa090248 (diff) | |
parent | 0c8bc0e1bae616cab770884864d72d66db953235 (diff) | |
download | Doxygen-208c689e4c13cc065045a6f6b1ff685eda5a3cd6.zip Doxygen-208c689e4c13cc065045a6f6b1ff685eda5a3cd6.tar.gz Doxygen-208c689e4c13cc065045a6f6b1ff685eda5a3cd6.tar.bz2 |
Merge branch 'albert-github-feature/bug_lineno_split_examples'
Diffstat (limited to 'src/xmldocvisitor.cpp')
-rw-r--r-- | src/xmldocvisitor.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index f85a16e..1005719 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -335,6 +335,7 @@ void XmlDocVisitor::visit(DocInclude *inc) m_t << "</programlisting>"; break; case DocInclude::DontInclude: + case DocInclude::DontIncWithLines: break; case DocInclude::HtmlInclude: if (inc->isBlock()) @@ -420,10 +421,25 @@ void XmlDocVisitor::visit(DocIncOperator *op) popEnabled(); if (!m_hide) { + FileDef *fd; + if (!op->includeFileName().isEmpty()) + { + QFileInfo cfi( op->includeFileName() ); + fd = createFileDef( cfi.dirPath().utf8(), cfi.fileName().utf8() ); + } + Doxygen::parserManager->getParser(m_langExt) ->parseCode(m_ci,op->context(), op->text(),langExt,op->isExample(), - op->exampleFile()); + op->exampleFile(), + fd, // fileDef + op->line(), // startLine + -1, // endLine + FALSE, // inline fragment + 0, // memberDef + op->showLineNo() // show line numbers + ); + if (fd) delete fd; } pushEnabled(); m_hide=TRUE; |