summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-31 09:44:01 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-12-31 09:44:01 (GMT)
commit1985472e028d985caa7de06b045e6aa5cd270216 (patch)
treef1f8d49222d5373c8bd72aff9147c3d5da270b4e
parent86a75ee26cee5ea3e40dea57665f534f319cfc5d (diff)
parent2e7f397d782106363caea089d40d51e456b175b0 (diff)
downloadDoxygen-1985472e028d985caa7de06b045e6aa5cd270216.zip
Doxygen-1985472e028d985caa7de06b045e6aa5cd270216.tar.gz
Doxygen-1985472e028d985caa7de06b045e6aa5cd270216.tar.bz2
Merge branch 'master' of github.com:doxygen/doxygen
-rw-r--r--src/clangparser.cpp12
-rw-r--r--src/config.xml25
-rw-r--r--src/latexdocvisitor.cpp21
3 files changed, 46 insertions, 12 deletions
diff --git a/src/clangparser.cpp b/src/clangparser.cpp
index 934da31..2593d27 100644
--- a/src/clangparser.cpp
+++ b/src/clangparser.cpp
@@ -163,6 +163,7 @@ void ClangTUParser::parse()
//printf("ClangTUParser::ClangTUParser(fileName=%s,#filesInSameTU=%d)\n",
// qPrint(fileName),(int)p->filesInSameTU.size());
bool clangAssistedParsing = Config_getBool(CLANG_ASSISTED_PARSING);
+ bool clangIncludeInputPaths = Config_getBool(CLANG_INCLUDE_INPUT_PATHS);
bool filterSourceFiles = Config_getBool(FILTER_SOURCE_FILES);
const StringVector &includePath = Config_getList(INCLUDE_PATH);
const StringVector &clangOptions = Config_getList(CLANG_OPTIONS);
@@ -211,11 +212,14 @@ void ClangTUParser::parse()
else
{
// add include paths for input files
- for (const std::string &path : Doxygen::inputPaths)
+ if (clangIncludeInputPaths)
{
- QCString inc = QCString("-I")+path.data();
- argv[argc++]=qstrdup(inc.data());
- //printf("argv[%d]=%s\n",argc,argv[argc]);
+ for (const std::string &path : Doxygen::inputPaths)
+ {
+ QCString inc = QCString("-I")+path.data();
+ argv[argc++]=qstrdup(inc.data());
+ //printf("argv[%d]=%s\n",argc,argv[argc]);
+ }
}
// add external include paths
for (size_t i=0;i<includePath.size();i++)
diff --git a/src/config.xml b/src/config.xml
index 3f0d406..811a3db 100644
--- a/src/config.xml
+++ b/src/config.xml
@@ -982,14 +982,14 @@ Go to the <a href="commands.html">next</a> section or return to the
<docs>
<![CDATA[
With the correct setting of option \c CASE_SENSE_NAMES doxygen will better be able to match the
- capabilities of the underlying filesystem.
+ capabilities of the underlying filesystem.
- In case the filesystem is case sensitive (i.e. it supports files in the same directory
+ In case the filesystem is case sensitive (i.e. it supports files in the same directory
whose names only differ in casing), the option must be set to \c YES to properly deal with such files
- in case they appear in the input.
-
- For filesystems that are not case sensitive the option should be be set to \c NO to properly
- deal with output files written for symbols that only differ in casing, such as for two classes,
+ in case they appear in the input.
+
+ For filesystems that are not case sensitive the option should be be set to \c NO to properly
+ deal with output files written for symbols that only differ in casing, such as for two classes,
one named \c CLASS and the other named \c Class, and to also support references to files without
having to specify the exact matching casing.
@@ -1740,6 +1740,15 @@ to disable this feature.
]]>
</docs>
</option>
+ <option type='bool' id='CLANG_INCLUDE_INPUT_PATHS' setting='USE_LIBCLANG' defval='1'>
+ <docs>
+<![CDATA[
+ If clang assisted parsing is enabled and the \c CLANG_INCLUDE_INPUT_PATHS tag
+ is set to \c YES then doxygen will add the directory of each input to the
+ include path.
+]]>
+ </docs>
+ </option>
<option type='list' id='CLANG_OPTIONS' format='string' setting='USE_LIBCLANG' depends='CLANG_ASSISTED_PARSING'>
<docs>
<![CDATA[
@@ -2429,7 +2438,7 @@ The \c DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
<option type='string' id='FORMULA_MACROFILE' format='file' defval=''>
<docs>
<![CDATA[
- The \c FORMULA_MACROFILE can contain \f$\mbox{\LaTeX}\f$ `\newcommand` and
+ The \c FORMULA_MACROFILE can contain \f$\mbox{\LaTeX}\f$ `\newcommand` and
`\renewcommand` commands to create new \f$\mbox{\LaTeX}\f$ commands to be used
in formulas as building blocks.
See the section \ref formulas for details.
@@ -2863,7 +2872,7 @@ or
<option type='string' id='LATEX_EMOJI_DIRECTORY' format='dir' defval='' depends='GENERATE_LATEX'>
<docs>
<![CDATA[
- The \c LATEX_EMOJI_DIRECTORY tag is used to specify the (relative or absolute)
+ The \c LATEX_EMOJI_DIRECTORY tag is used to specify the (relative or absolute)
path from which the emoji images will be read.
If a relative path is entered, it will be relative to the \ref cfg_latex_output "LATEX_OUTPUT"
directory. If left blank the \ref cfg_latex_output "LATEX_OUTPUT" directory will be used.
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp
index fbb6530..e6c9363 100644
--- a/src/latexdocvisitor.cpp
+++ b/src/latexdocvisitor.cpp
@@ -951,6 +951,26 @@ void LatexDocVisitor::visitPost(DocHtmlListItem *)
// m_t << "\\end{alltt}\\normalsize " << endl;
//}
+static bool listIsNested(const DocNode *n)
+{
+ bool isNested=false;
+ if (n)
+ {
+ if (n->kind()==DocNode::Kind_HtmlDescList && ((DocHtmlDescList *)n)->attribs().find("class") == "reflist") return false;
+ n = n->parent();
+ }
+ while (n && !isNested)
+ {
+ if (n->kind()==DocNode::Kind_HtmlDescList)
+ {
+ QCString val = ((DocHtmlDescList *)n)->attribs().find("class");
+ isNested = (val!="reflist");
+ }
+ n = n->parent();
+ }
+ return isNested;
+}
+
void LatexDocVisitor::visitPre(DocHtmlDescList *dl)
{
if (m_hide) return;
@@ -961,6 +981,7 @@ void LatexDocVisitor::visitPre(DocHtmlDescList *dl)
}
else
{
+ if (listIsNested(dl)) m_t << "\n\\hfill";
m_t << "\n\\begin{DoxyDescription}";
}
}