Commit graph

18,963 commits

Author SHA1 Message Date
Vadim Zeitlin
658f92a993 Use correct separator in Java class path under Windows.
A semicolon must be used there and not a colon as under Unix.
2015-07-28 00:05:55 +02:00
Vadim Zeitlin
b472a01ae8 Remove executable permission from appveyor.yml.
This is not an executable file.
2015-07-28 00:05:55 +02:00
Vadim Zeitlin
03d5ea426a Use JAVA_HOME value in configure to detect Java.
This is simpler than having to use --with-java, --with-javac and
--with-javaincl options and, even more importantly, will usually just work by
default.
2015-07-28 00:05:55 +02:00
Vadim Zeitlin
e80d9eead6 Display JAVA_HOME value in "make java_version".
This can be useful for diagnostic purposes when using automated build systems.
2015-07-27 04:35:31 +02:00
Vadim Zeitlin
86531935b5 Fix harmless MSVC warning in DoxygenTranslator code.
Explicitly compare pointer with NULL instead of implicitly converting it to
bool as this resulted in MSVS "warning C4800: forcing value to bool 'true' or
'false' (performance warning)".
2015-07-27 04:29:46 +02:00
Vadim Zeitlin
68492869fd Reset "_last" for all but first enum elements.
There is an implicit assumption (see TypePass::enumvalueDeclaration()) that
only the first enum element has a non-null "_last" attribute, but this was
broken by the latest enum-related grammar changes as the second enum element
also had "_last" set, coming from the new "enumlist_tail" production. This
resulted in wrong values being used for the second (only) element.

Fix this by explicitly resetting "_last" of enumlist_tail to NULL when
building the semantic value associated with it.
2015-07-27 04:25:48 +02:00
Vadim Zeitlin
dc23904408 Don't duplicate Javadoc from global enum Doxygen comments twice.
The commit d52de0f36f did fix the bug with
missing Javadoc comments for the nested enums, but it also resulted in the
Javadoc being generated twice for global enums, remove the code outputting the
same Javadoc for the second time to fix this.
2015-07-27 01:14:48 +02:00
Vadim Zeitlin
4884f8cb3c Move Doxygen comments concatenation from the parser to the lexer.
This allows to write the grammar in a simpler way without running into
shift/reduce conflicts all the time because a Doxygen post comment can often
be either reduced with the preceding token or shifted if there is another
Doxygen post comment after it.

Just take care of concatenating the comments in the lexer, which makes it
handling of comment tokens slightly more complex as it now needs to look ahead
at the next tokens, but it's worse the simplifications in the parser.

No changes in behaviour.
2015-07-27 01:14:48 +02:00
Vadim Zeitlin
864945ba2e Fix shift/reduce conflicts in Doxygen pre/post comment parsing.
Don't accept both pre- and post-comments for the same declaration (a function
parameter or a class member), this didn't work before neither as the
pre-comment overrode the post-one due to the default shift/reduce resolution
preferring to shift, but it happened silently whereas now it will result in a
parse error.

In the future we could complicate the grammar to detect this and give a
warning about one of the comments being ignored instead, but for now keep
things simple.
2015-07-27 01:14:47 +02:00
Vadim Zeitlin
bc2ee1b130 Rewrote part of the grammar dealing with Doxygen comments for enums.
This brings down the number of yacc shift/reduce conflicts from 16 to 8 and
eliminates all 4 of the previously existing reduce/reduce conflicts.
2015-07-27 01:14:47 +02:00
Vadim Zeitlin
9ab3f2e232 No changes, just remove spurious white space only differences.
Whitespace-only changes to decrease the diff with master.
2015-07-25 18:37:03 +02:00
Vadim Zeitlin
dc9cecb943 Move Doxygen comment mangling from the parser to the lexer.
This is a more logical place to do this and it also simplifies the parser
code, e.g. the parser doesn't get the ignored (called "structural" for some
reason in the code) Doxygen comments from the lexer at all any more instead of
having to ignore them on its own. It also allows to define doxygen_comment and
doxygen_post_comment rules in a simpler way and avoid shift/reduce conflicts
for the sequences of Doxygen [post] comments by specifying their associativity.

In principle, the lexer could also take care of concatenating the subsequent
Doxygen comments in a single one, as this would also seem to belong to it
rather than the parser, but this doesn't seem to provide any immediate gains
and so isn't done by this commit.
2015-07-25 18:37:03 +02:00
Vadim Zeitlin
e191360c9f Merge "-builtin" autodoc bugs workarounds from master into test.
Although some of the bugs (e.g. missing "self") in the autodoc doc strings
when using "-builtin" option were fixed in the Doxygen branch, others are
still present, so we still need to skip some of the tests in "-builtin" case.
2015-07-20 16:17:06 +02:00
Vadim Zeitlin
b908a9b430 Quote JAVA_HOME variable value in Java test suite makefile.
This should fix problem with JAVA_HOME containing spaces, as it happens in
the AppVeyor build.
2015-07-20 15:43:23 +02:00
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
54aef6686a Octave 4.0 fails in Travis
Mark as failing in Travis due to gcc 4.6 internal compiler error
2015-07-19 15:10:10 +01:00
William S Fulton
a00ab42f80 Merge branch 'm7thon-issue-445-python-class-docstrings'
* m7thon-issue-445-python-class-docstrings:
  Add changes note for Python tp_doc slot and docstring
  Set class docstring in tp_doc slot for python -builtin

Conflicts:
	CHANGES.current
2015-07-18 00:14:37 +01:00
William S Fulton
484077088c Add changes note for Python tp_doc slot and docstring
Issue #461
2015-07-18 00:09:31 +01:00
Anbiru Shouta
977240b3f4 Clearer variable name in Java director generated code
Closes #463
2015-07-17 22:34:08 +01:00
William S Fulton
64652523d5 warning fixes 2015-07-17 18:18:44 +01: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
Karl Wette
8261fc7fc4 Update CHANGES.current and Octave.html to indicate Octave 4.0.0 support 2015-07-17 09:49:44 +02:00
Karl Wette
53feb8ee3a Merge pull request #462 from mtmiller/fix-mkoctfile
Octave: use correct mkoctfile executable
2015-07-17 09:32:49 +02:00
Karl Wette
695b88f1ac Merge pull request #460 from opoplawski/octave4
Support for octave 4.0.0
2015-07-17 09:32:28 +02:00
Mike Miller
5ab9563c2a Octave: use correct mkoctfile executable
Allow a versioned Octave executable to be configured via --with-octave
and the correct corresponding mkoctfile executable to be used.
2015-07-11 19:05:30 -04:00
Orion Poplawski
68e833a5b9 Add octave 4.0 to travis 2015-07-10 22:37:43 -06:00
William S Fulton
d49267ca3f Fix compile flags for Travis C++11 testing 2015-07-11 00:02:10 +01:00
William S Fulton
f815209c7d Travis testing c++11 and gcc5
Modify testflags.py to control the -std= option passed to gcc
Install new boost for c++11 with gcc5 testing
2015-07-10 22:02:14 +01:00
William S Fulton
5a282f3ac3 c++11 test case fixes 2015-07-10 21:50:35 +01:00
Orion Poplawski
1d5d224328 Fix default_constructor_runme.m test 2015-07-10 11:59:45 -06:00
Orion Poplawski
5a6a39a4ee Add #include <climits> for INT_MAX 2015-07-10 08:24:09 -06:00
Orion Poplawski
350c410d4b Update print() signature for octave 4.0 2015-07-09 19:20:46 -06:00
Michael Thon
7ed63b11d7 Set class docstring in tp_doc slot for python -builtin 2015-07-09 02:05:33 +02:00
William S Fulton
9244621827 Travis testing extended to test c++11 and c++14 with gcc-5
- SWIG executable compiled with gcc-5 using both c++11 and c++14 standards
- cpp11 tests enabled using c++11 standard
- Add clang compile using c++11
2015-07-09 00:12:42 +01:00
William S Fulton
701f8d4bae Configuring C++11 compiler flags for testing fix 2015-07-09 00:12:28 +01:00
Orion Poplawski
248890aad0 Support for octave 4.0.0 2015-07-08 13:26:36 -06:00
William S Fulton
3718b810c7 Don't generate constructor wrappers if a base class has a private constructor
g++-5 errors out with this now with errors such as:

default_constructor_wrap.cxx:665:27: error: use of deleted function ‘FFF::FFF()’
   result = (FFF *)new FFF();
                           ^
default_constructor_wrap.cxx:314:7: note: ‘FFF::FFF()’ is implicitly deleted because the default definition would be ill-formed:
 class FFF : public F {
       ^
default_constructor_wrap.cxx:301:4: error: ‘F::~F()’ is private
    ~F() { }
    ^
default_constructor_wrap.cxx:314:7: error: within this context
2015-07-07 20:15:55 +01:00
William S Fulton
1514e19efb Test-suite fixes for c++11 compilation by g++-5.1 2015-07-06 20:07:23 +01:00
William S Fulton
d325eeee84 Fix incorrect test case code 2015-07-06 19:50:22 +01:00
William S Fulton
55686fbe56 Bump version to 3.0.7 2015-07-06 06:55:43 +01:00
William S Fulton
4e23595704 Unused method warning suppression for Javascript v8 2015-07-05 17:59:41 +01:00
William S Fulton
d9bfccfc4e Add 3.0.6 release notes and release date 2015-07-05 17:16:38 +01:00
William S Fulton
3b859ab539 Html doc fixes 2015-07-05 17:16:37 +01:00
William S Fulton
fea1bbb188 Testcase workaround for Solaris 2015-07-05 17:16:37 +01:00
William S Fulton
af5906f915 parent_class testcase name warning fixes for PHP 2015-07-05 09:29:47 +01:00
William S Fulton
81f0050135 Perl5 carrays testcase fix
Number of loops is different since seg fault fix in e543299
2015-07-04 23:23:57 +01:00
William S Fulton
41fd7c17e0 Merge branch 'appveyor-check-test-suite'
* appveyor-check-test-suite:
  Appveyor testing expanded
  Fix array overrun in li_carrays testcase
  Warning fixes in generated Python code for 64bit Visual C++ on Windows.
  Warning fixes in generated C# code for 64bit Visual C++ on Windows.
  Warning fixes for 64bit visual c++ on Windows
  Warning fixes in generated Java code for 64bit Visual C++ on Windows.
  Warning fixes for 64bit visual c++ on Windows
  C# gc tests failure fix
  Add a space between literal and string macro
2015-07-04 21:34:42 +01:00
William S Fulton
5dce99751c Appveyor testing expanded
- New variable to control version of Visual Studio to use on appveyor
- Enable VS2015 (14.0) for C#
- Run full check-test-suite and not just partialcheck-test-suite since
  Appveyor performance improvements since using dedicated Hyper-V
  instead of Azure.
- Allow 64 bit Python 2.7 to fail on Appveyor as a vector container
  slicing bug needs fixing.
2015-07-04 21:01:28 +01:00