diff options
author | albert-github <albert.tests@gmail.com> | 2019-03-03 11:24:37 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-03-03 11:24:37 (GMT) |
commit | 1a59f6deaf110cb21062f2c6bf32ef27a5d2635c (patch) | |
tree | a69af5cfcbc8b28960159d8df0984bcac8e6ba07 /src/docparser.cpp | |
parent | d4243bc66fc911012c8222514d5b33a222993ae5 (diff) | |
download | Doxygen-1a59f6deaf110cb21062f2c6bf32ef27a5d2635c.zip Doxygen-1a59f6deaf110cb21062f2c6bf32ef27a5d2635c.tar.gz Doxygen-1a59f6deaf110cb21062f2c6bf32ef27a5d2635c.tar.bz2 |
Warning if no file specified for special reading commands
Create a warning in case no `\include` or `\dontinclude` command has been given before using `\skip`, `\line`, `\skipline` or `\utnil`
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index f1ac262..ff253e5 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -2048,6 +2048,29 @@ void DocInclude::parse() void DocIncOperator::parse() { + if (g_includeFileName.isEmpty()) + { + QCString cmd; + switch(type()) + { + case Line: + cmd = "\\line"; + break; + case SkipLine: + cmd = "\\skipLine"; + break; + case Skip: + cmd = "\\skip"; + break; + case Until: + cmd = "\\until"; + break; + } + warn_doc_error(g_fileName,doctokenizerYYlineno, + "No previous '\\include' or \\dontinclude' command for '%s' present", + cmd.data()); + } + m_includeFileName = g_includeFileName; const char *p = g_includeFileText; uint l = g_includeFileLength; |