summaryrefslogtreecommitdiffstats
path: root/src/docbookvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-03-09 14:34:17 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-03-09 14:34:17 (GMT)
commit0c8bc0e1bae616cab770884864d72d66db953235 (patch)
tree2780521957182f56829861ac3105317002d41f1a /src/docbookvisitor.cpp
parent169a67186780c191749b958de0f71a17fa090248 (diff)
parent8d13a1a9d0e6a5e4f50563b6d1b6840176e4a5cc (diff)
downloadDoxygen-0c8bc0e1bae616cab770884864d72d66db953235.zip
Doxygen-0c8bc0e1bae616cab770884864d72d66db953235.tar.gz
Doxygen-0c8bc0e1bae616cab770884864d72d66db953235.tar.bz2
Merge branch 'feature/bug_lineno_split_examples' of https://github.com/albert-github/doxygen into albert-github-feature/bug_lineno_split_examples
Diffstat (limited to 'src/docbookvisitor.cpp')
-rw-r--r--src/docbookvisitor.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/docbookvisitor.cpp b/src/docbookvisitor.cpp
index 3e4874d..28f6229 100644
--- a/src/docbookvisitor.cpp
+++ b/src/docbookvisitor.cpp
@@ -408,9 +408,8 @@ DB_VIS_C
m_t << "</computeroutput></literallayout>";
break;
case DocInclude::DontInclude:
- break;
+ case DocInclude::DontIncWithLines:
case DocInclude::HtmlInclude:
- break;
case DocInclude::LatexInclude:
break;
case DocInclude::VerbInclude:
@@ -479,10 +478,25 @@ DB_VIS_C
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;