parent
779d5cf57a
commit
1aeaa2a644
6 changed files with 33 additions and 5 deletions
|
|
@ -7,6 +7,9 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
|
||||||
Version 4.1.0 (in progress)
|
Version 4.1.0 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2022-04-07: olly
|
||||||
|
#1750 SWIG now recognises and ignores Doxygen group commands `@{` and `@}`.
|
||||||
|
|
||||||
2022-04-06: wsfulton
|
2022-04-06: wsfulton
|
||||||
./configure now enables C++11 and later C++ standards testing by default (when
|
./configure now enables C++11 and later C++ standards testing by default (when
|
||||||
running: 'make check').
|
running: 'make check').
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,15 @@ struct SomeAnotherStruct
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Foo1750
|
||||||
|
{
|
||||||
|
/// @name Group name
|
||||||
|
/// @{
|
||||||
|
int a;
|
||||||
|
/// @}
|
||||||
|
int b;
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef SWIGPYTHON_BUILTIN
|
#ifdef SWIGPYTHON_BUILTIN
|
||||||
bool is_python_builtin() { return true; }
|
bool is_python_builtin() { return true; }
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,14 @@ public class doxygen_parsing_runme {
|
||||||
wantedComments.put("doxygen_parsing.doxygen_parsingConstants.CONSTANT_VALUE",
|
wantedComments.put("doxygen_parsing.doxygen_parsingConstants.CONSTANT_VALUE",
|
||||||
"The constant comment \n" +
|
"The constant comment \n" +
|
||||||
"");
|
"");
|
||||||
|
wantedComments.put("doxygen_parsing.Foo1750.getA()",
|
||||||
|
"");
|
||||||
|
wantedComments.put("doxygen_parsing.Foo1750.getB()",
|
||||||
|
"");
|
||||||
|
wantedComments.put("doxygen_parsing.Foo1750.setA(int)",
|
||||||
|
"");
|
||||||
|
wantedComments.put("doxygen_parsing.Foo1750.setB(int)",
|
||||||
|
"");
|
||||||
|
|
||||||
// and ask the parser to check comments for us
|
// and ask the parser to check comments for us
|
||||||
System.exit(CommentParser.check(wantedComments));
|
System.exit(CommentParser.check(wantedComments));
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,8 @@ const int sectionIndicatorsSize = sizeof(sectionIndicators) / sizeof(*sectionInd
|
||||||
const char *simpleCommands[] = {
|
const char *simpleCommands[] = {
|
||||||
// the first line are escaped chars, except \~, which is a language ID command.
|
// the first line are escaped chars, except \~, which is a language ID command.
|
||||||
"n", "$", "@", "\\", "&", "~", "<", ">", "#", "%", "\"", ".", "::",
|
"n", "$", "@", "\\", "&", "~", "<", ">", "#", "%", "\"", ".", "::",
|
||||||
|
// Member groups, which we currently ignore.
|
||||||
|
"{", "}",
|
||||||
"endcond",
|
"endcond",
|
||||||
"callgraph", "callergraph", "showinitializer", "hideinitializer", "internal",
|
"callgraph", "callergraph", "showinitializer", "hideinitializer", "internal",
|
||||||
"nosubgrouping", "public", "publicsection", "private", "privatesection",
|
"nosubgrouping", "public", "publicsection", "private", "privatesection",
|
||||||
|
|
|
||||||
|
|
@ -238,7 +238,7 @@ private:
|
||||||
* Method for Adding a Simple Command
|
* Method for Adding a Simple Command
|
||||||
* Format: @command
|
* Format: @command
|
||||||
* Plain commands, such as newline etc, they contain no other data
|
* Plain commands, such as newline etc, they contain no other data
|
||||||
* \n \\ \@ \& \$ \# \< \> \%
|
* \n \\ \@ \& \$ \# \< \> \% \{ \}
|
||||||
*/
|
*/
|
||||||
void addSimpleCommand(const std::string &theCommand, DoxygenEntityList &doxyList);
|
void addSimpleCommand(const std::string &theCommand, DoxygenEntityList &doxyList);
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -5053,8 +5053,11 @@ public:
|
||||||
Printv(f_shadow, tab4, symname, variable_annotation, " = property(", module, ".", getname, NIL);
|
Printv(f_shadow, tab4, symname, variable_annotation, " = property(", module, ".", getname, NIL);
|
||||||
if (assignable)
|
if (assignable)
|
||||||
Printv(f_shadow, ", ", module, ".", setname, NIL);
|
Printv(f_shadow, ", ", module, ".", setname, NIL);
|
||||||
if (have_docstring(n))
|
if (have_docstring(n)) {
|
||||||
Printv(f_shadow, ", doc=", docstring(n, AUTODOC_VAR, tab4), NIL);
|
String *s = docstring(n, AUTODOC_VAR, tab4);
|
||||||
|
if (Len(s))
|
||||||
|
Printv(f_shadow, ", doc=", s, NIL);
|
||||||
|
}
|
||||||
Printv(f_shadow, ")\n", NIL);
|
Printv(f_shadow, ")\n", NIL);
|
||||||
Delete(variable_annotation);
|
Delete(variable_annotation);
|
||||||
Delete(mname);
|
Delete(mname);
|
||||||
|
|
@ -5121,8 +5124,11 @@ public:
|
||||||
Printv(f_shadow, tab4, symname, " = property(", module, ".", getname, NIL);
|
Printv(f_shadow, tab4, symname, " = property(", module, ".", getname, NIL);
|
||||||
if (assignable)
|
if (assignable)
|
||||||
Printv(f_shadow, ", ", module, ".", setname, NIL);
|
Printv(f_shadow, ", ", module, ".", setname, NIL);
|
||||||
if (have_docstring(n))
|
if (have_docstring(n)) {
|
||||||
Printv(f_shadow, ", doc=", docstring(n, AUTODOC_VAR, tab4), NIL);
|
String *s = docstring(n, AUTODOC_VAR, tab4);
|
||||||
|
if (Len(s))
|
||||||
|
Printv(f_shadow, ", doc=", s, NIL);
|
||||||
|
}
|
||||||
Printv(f_shadow, ")\n", NIL);
|
Printv(f_shadow, ")\n", NIL);
|
||||||
}
|
}
|
||||||
String *getter = Getattr(n, "pybuiltin:getter");
|
String *getter = Getattr(n, "pybuiltin:getter");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue