Vadim Zeitlin
751dbf2bb7
Remove unused C_COMMENT_STRING terminal from the grammar.
...
This was a leftover from the initial Doxygen GSoC work in 2008 and should have
been removed by 4951d4a900 (GSoC 2012).
2015-07-20 01:03:10 +02:00
Vadim Zeitlin
302955a152
Another merge with master.
...
Updated Doxygen error numbers yet again, as Python errors got added in the
meanwhile, pushing the Doxygen ones further off.
And re-merged PEP8/whitespace-related conflicts in autodoc_runme.py once again
(if anybody is looking for a motivating example about why significant
whitespace is bad, here is a great use case).
2015-07-20 00:44:26 +02:00
William S Fulton
8ccf639f42
String / char * usage in parser fixes
2015-07-17 18:14:25 +01:00
William S Fulton
2e03845be8
const char * fixes in the parser
2015-07-17 17:50:11 +01:00
William S Fulton
edcdaaec16
Warning fixes for 64bit visual c++ on Windows
2015-07-03 20:59:24 +01:00
William S Fulton
05397cf6a2
Fix syntax error when the template keyword is used in types
...
For example:
std::template vector<int> v;
2015-07-02 19:23:37 +01:00
William S Fulton
0b436c65ca
Cosmetic parser change
...
Rename typemap_parameter_declarator as it is no longer just used for typemaps
2015-06-22 07:04:34 +01:00
William S Fulton
6890dfa881
Fix parse errors for C++11 type aliasing
...
Recently introduced by the fix for C++11 type aliasing seg fault - 117f6d00
2015-06-22 07:04:34 +01:00
William S Fulton
117f6d0026
Fix C++11 type aliasing seg fault.
...
Closes #424
2015-06-09 07:59:22 +01:00
William S Fulton
54e2317b24
Fix shared_ptr of classes with private constructors and destructors.
...
Usually these use a custom deleter passed to the shared_ptr.
This also fixes the "unref" feature when used on classes with private destructors.
2015-05-14 19:03:06 +01:00
Olly Betts
b19d506db7
Suppress warning 325 "Nested class not currently supported (Foo
...
ignored)" when Foo has already been explicitly ignored with
"%ignore".
2015-05-05 18:07:49 +12:00
William S Fulton
428b6176df
Add support for friend templates, including operator overloading.
...
Closes #196 .
2015-05-05 06:48:25 +01:00
William S Fulton
463b2a324c
Cosmetic rename COPERATOR to CONVERSIONOPERATOR
...
Was never very obvious what C in COPERATOR was.
2015-05-01 19:26:09 +01:00
William S Fulton
cf29b90a2b
Fix comments and newlines within operator definitions
...
Fix handling of conversion operators where the operator is split over multiple lines or
has comments within the operator type.
Also fix similar problem with normal operators which gave a syntax error if split over
multiple lines or had a comment within the operator declaration.
Closes #401
2015-05-01 19:22:38 +01:00
William S Fulton
fa4223e496
Fix parsing of extern "C" and typedef for example:
...
extern "C" typedef void (*Hook2_t)(int, const char *);
extern "C" typedef int Integer;
Closes #375
2015-04-07 21:34:23 +01:00
Olly Betts
6b6b360093
Fix segfault in handling unknown directives
2015-03-27 18:14:03 +13:00
Vadim Zeitlin
56a6f296b8
Remove unreferenced struct declaration.
...
This was introduced by 774cbc3ef2 , apparently
accidentally.
2015-02-16 23:51:57 +01:00
Vadim Zeitlin
300ccce46c
Another merge with master.
...
Change Doxygen error codes to start at 740 instead of at 720 as the latter was
taken by Scilab in the meanwhile.
Resolve conflicts in autodoc_runme.py once again.
2015-02-16 23:46:39 +01:00
William S Fulton
af43f90484
Wording change for missing semicolon error
2015-01-08 23:37:52 +00:00
Olly Betts
bfa570e404
Handle "constexpr explicit" and "constexpr static"
2015-01-09 11:47:40 +13:00
Olly Betts
87bdaa3910
Allow C++11 "explicit constexpr"
2015-01-08 15:56:50 +13:00
Olly Betts
62670e756e
Improve errors for missing ; and unexpected )
2015-01-08 15:27:57 +13:00
Olly Betts
04715f74e2
Improve error message when an unknown SWIG directive is used
...
This previously gave the cryptic "Error: Syntax error in input(1).", but
now gives "Error: Unknown directive '%foo'."
2015-01-08 12:07:54 +13:00
Vadim Zeitlin
9b857e6cf1
Merge latest master into doxygen branch.
2014-12-15 02:55:26 +01:00
Vladimir Kalinin
274977154f
fix for nested template defined out of class (issue #265 )
2014-11-25 19:38:37 +03:00
Olly Betts
e047d2e2bd
Remove bogus ; after } in documentation
2014-11-07 15:34:43 +13:00
Vladimir Kalinin
8bc38dc007
fixes "flatnested" feature for out-of-scope defined nested classes
2014-11-04 19:30:53 +03:00
William S Fulton
bfde148887
The kwargs feature no longer turns on compactdefaultargs for languages that don't support kwargs.
...
Affects all languages except Python and Ruby.
Closes #242
2014-10-21 07:34:51 +01:00
Johan Hake
de4f30bd3c
Small fixes to the relative import fix.
...
-- Now the tests actually runs
-- Corrected the syntax for the fix in the yacc file
2014-09-29 17:37:41 +02:00
Vadim Zeitlin
cd1f4619d2
Stop completely ignoring many Doxygen comments.
...
For some reason, Doxygen comments such as @class or @enum were considered to
be "structural" (whatever this means) and completely removed during the
parsing time. This is wrong as such comments can be attached to their
corresponding declarations and while it would be arguably better to check that
this is indeed the case (e.g. "@class Foo" really appears before or after the
declaration of this class), throwing them away is definitely not the right
thing to do and keeping them without any further checks is a better alternative.
2014-09-10 21:55:41 +02:00
Vadim Zeitlin
dcdc5fb421
Fix structural Doxygen comment recognition in the parser.
...
The code wrongly recognized something like "@direction" as a structural "@dir"
comment (why is the latter structural is another question).
Add a check that we've really found the entire tag and not just a prefix of
some other tag.
2014-09-10 21:55:41 +02:00
Vadim Zeitlin
306d99f7d6
No changes, just make checking for Doxygen structural tags more sane.
...
Replace an if statement with 33 conditions in it with a table and a loop.
2014-09-10 21:55:41 +02:00
Johan Hake
30e5a79ecb
Fix bug 206 where package information for relative in single file import is not propagated correctly.
2014-08-25 10:09:12 +02:00
Vadim Zeitlin
6cce652762
Merge latest master into doxygen branch again.
...
Update Doxygen-specific Python unit tests to work with the new indentation.
Update one of Doxygen-specific Java tests to still build with the new handling
of srcdir.
2014-08-13 16:11:21 +02:00
William S Fulton
71e72c45ed
Create separate extetnd.c file for handling extensions / %extend
...
This is just a simple code refactor, moving and function renaming to
remove the %extend code out of the parser into its own file now
that it isn't just used in the parser.
2014-05-21 19:16:15 +01:00
Vladimir Kalinin
2aa540b9c0
%extend for nested unnamed C structs
2014-05-14 00:51:36 +04:00
Vladimir Kalinin
55bda53145
C nested classes symbol table should be in global space
2014-05-10 22:16:26 +04:00
Vadim Zeitlin
a1c539ed26
Avoid crash in the parser for two consecutive Doxygen comments.
...
This change fixes the crash which happened when parsing the following code:
/// Description of the section.
//@{
...
//@}
As the second Doxygen item didn't have any associated text in this case.
2014-05-07 18:32:28 +02:00
Vadim Zeitlin
1ebd2334b8
Merge branch 'master' into doxygen
...
Merge with ~3.0.1 sources from master.
2014-04-30 18:37:57 +02:00
Olly Betts
36be36d618
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
William S Fulton
e186dc13b7
C++11 constexpr variables support added
2014-03-14 01:57:14 +00:00
Olly Betts
2f3bf144c6
Fix assorted comment and documentation typos
2014-02-23 17:15:22 +13:00
William S Fulton
d55692c31e
Fix warning suppression using %warnfilter for PHP reserved class names.
...
The features need to be merged in before issuing a warning as
%warnfilter is a %feature.
2014-02-21 08:29:20 +00:00
William S Fulton
c5911cc08d
Add %$isextendmember for %rename of members added via %extend
2014-02-18 23:21:46 +00:00
William S Fulton
9cbd742b66
Fix %$ismember %rename predicate for members added via %extend
...
Bug reported was incorrect renaming of PHP built-in functions, such as
next. See PHPFN in phpkw.swg.
Add some tests for the %rename predicates.
2014-02-18 07:30:55 +00:00
William S Fulton
3518cbfd33
Typo in comment fix
2014-02-08 09:00:52 +00:00
Vladimir Kalinin
e9ecac9298
warnings suppressed for deeply nested classes
2014-02-07 07:39:07 +04:00
Vladimir Kalinin
56cea1821d
warning filter fixed
2014-02-06 23:47:01 +04:00
Vladimir Kalinin
bda9c90e2b
warnfilter fixed
...
scoping for "anonymous forward declaration" fixed
2014-02-03 02:21:44 +04:00
Vladimir Kalinin
4744ea8903
added forward declaration instead of ignored nested class (resurrected old code)
2014-02-03 01:03:37 +04:00