Commit Graph

75 Commits

Author SHA1 Message Date
Nikita Kniazev
5cb2193662 CI: Run MSVC with /W4 2019-09-27 22:20:04 +03:00
Nikita Kniazev
d24ac7ce5c Classic.Tests: Run file_iterator_tests only once
There is nothing to test with BOOST_SPIRIT_DEBUG.
2019-03-18 01:38:51 +03:00
Nikita Kniazev
2fa4c5c913 Revert "Classic: file_iterator_tests: Fixed temp file race"
This reverts commit 3e0be04eab.
2019-03-18 01:36:51 +03:00
Nikita Kniazev
3e0be04eab Classic: file_iterator_tests: Fixed temp file race
We have multiple runs of the test and sometimes it fails because of a race.
2019-03-17 02:13:26 +03:00
Nikita Kniazev
2bda35f0fd Classic.Test: ast_calc_tests: Fixed unreachable code warning on VS2015
libs\spirit\classic\test\ast_calc_tests.cpp(209) : warning C4702: unreachable code
2019-03-01 20:11:19 +03:00
Nikita Kniazev
449c25c796 Classic.Tests: grammar_tests: Fixed comma at end of enumerator list warning
libs\spirit\classic\test\grammar_tests.cpp:38:21: warning: comma at end of enumerator list [-Wpedantic]
2019-03-01 01:12:00 +03:00
Nikita Kniazev
f171f07e30 Classic.Tests: Suppress self-assignment warnings 2019-02-26 21:16:37 +03:00
Nikita Kniazev
e46e58f4cd Tests: Added precompiled headers
Not intrusive. Significantly speeds up tests on MSVC (for about 3 times).
Finally solves exceeding build time limits on CI with MSVC compilers.

Did not set up PCH for X3, it is fast as-is (tooks only about 2 minutes).
Repository tests reuse PCH from Qi/Karma tests.
2019-01-21 02:59:45 +03:00
Nikita Kniazev
c8c42c006a Classic.Tests: Boost.System header only follow-up 2019-01-07 22:50:50 +03:00
Nikita Kniazev
d3e14ccf04 Classic: Fixed position_iterator forming reference to local
When underlying iterator returns by value the corresponding position_iterator
was providing iterator_adaptor with a reference type what lead to returning
a reference to a local variable in dereference operator.

Made a custom trait because it is a way more elegant than:
```cpp
    typedef typename boost::mpl::if_c<
        boost::is_reference<reference>::value,
        typename boost::add_reference<
            typename boost::add_const<
                typename boost::remove_reference<reference>::type
            >::type
        >::type,
        typename boost::add_const<reference>::type
    >::type const_reference_type;
```

Fixes https://svn.boost.org/trac10/ticket/9737.
2018-11-23 03:19:03 +03:00
Romain Geissler
5e10e84031 Prepare for C++20 and remove "throw()" usage. 2018-11-11 23:14:05 +00:00
Nikita Kniazev
bb3c55e860
Classic.Tests: traverse_tests: The right fix for buffer overflow 2018-10-08 14:24:04 +03:00
Nikita Kniazev
d47c84e87d Classic.Tests: ast_calc_tests: Fixed may fall through warnings 2018-10-02 03:14:18 +03:00
Nikita Kniazev
11e414737c Classic.Tests: traverse_tests: Fixed an off by one error 2018-07-08 17:12:15 +03:00
Brian Kuhl
19fa9074d7
toupper() may not be a macro
.. and in the Dinkum STL shipped with VxWorks it's an inline function.
2018-01-16 10:09:48 -05:00
Daniela Engert
8edbebe8b3
Inheriting std::iterator is deprecated in c++17
Boost's iterator.hpp is deprecated, too. It does nothing but pulling std::iterator into namespace boost and including standard headers 'iterator' and 'cstddef'. Therefore get rid of all of that and replace inheritance by lifting std::iterator's members into the derived class.
2017-12-29 19:35:56 +01:00
Nikita Kniazev
2d7dcd9f6e Classic: Fix compilation with BOOST_DISABLE_THREADS defined
Closes https://svn.boost.org/trac10/ticket/12639
2017-12-14 21:26:53 +03:00
Nikita Kniazev
b360b5f4ed Classic.Tests: mix_and_match_trees: ‘begin’ and ‘end’ are used uninitialized 2017-11-21 19:49:37 +03:00
Nikita Kniazev
2641b567de Classic.Tests: tree_to_xml: Fixed bug in container_device::write 2017-11-21 19:49:37 +03:00
Nikita Kniazev
9b341b391d Classic.Tests: switch_problem: Fixed unused parameter self warning 2017-11-21 19:49:36 +03:00
Nikita Kniazev
27d63eb270 Classic.Tests: ast_calc_tests: Fixed iterator_t shadowing warning 2017-11-21 19:49:36 +03:00
Nikita Kniazev
9bf993abfa Classic: Fixed iter_policy_t and scanner_policies_t shadowing problem
`iter_policy_t` and `scanner_policies_t` declared at Spirit's namespace scope.
2017-11-21 19:49:36 +03:00
Nikita Kniazev
4130a9d041 Classic.Tests: owi_mt_tests: Fixed conversion warning 2017-11-21 19:49:36 +03:00
Nikita Kniazev
5c44ac5af5 Classic: Fixed unused parameter warnings 2017-11-21 19:49:36 +03:00
Nikita Kniazev
d9564895c6 Fixed unused argc/argv 2017-11-21 19:49:36 +03:00
Nikita Kniazev
6e3c97484d Classic.Tests: escape_char_parser_tests: Fixed unused variable warnings 2017-11-21 19:49:36 +03:00
Nikita Kniazev
c7d1560bc9 Classic.Tests: bug_fixes: Fixed MSVC c++17 compile problem 2017-11-14 21:40:45 +03:00
Nikita Kniazev
bb878087f7 Classic.Tests: traverse_tests: Fixed ambiguous optional 2017-11-14 00:35:43 +03:00
Nikita Kniazev
29281c68bb Classic.Tests: fundamental_tests: Fixed ambiguous optional 2017-11-14 00:35:43 +03:00
Nikita Kniazev
661c4319bd Classic.Tests: parser_traits_tests: Fixed ambiguous optional 2017-11-13 22:18:24 +03:00
Nikita Kniazev
24d7461950 Classic.Tests: scanner_value_type_tests: Fixed unused function warning 2017-11-12 18:59:53 +03:00
Nikita Kniazev
e21a75993d Classic.Tests: sf_bug_742038: Fixed temp file removing 2017-11-12 17:48:19 +03:00
Nikita Kniazev
66acd18baa Classic.Tests: multi_pass_compile_tests: Fixed deprecated unlink usage 2017-11-12 17:48:19 +03:00
Nikita Kniazev
3cfd69606c Classic.Tests: file_iterator_tests: Workarounded MSVC fopen warning 2017-11-12 17:48:19 +03:00
Nikita Kniazev
28a8dd0240 Classic.Tests: tree_to_xml: Fix implicit type conversion 2017-11-12 17:48:17 +03:00
Nikita Kniazev
5b2ab34506 Classic.Tests: symbols_add_null: Fixed unused typedef scanner 2017-11-12 17:28:58 +03:00
Nikita Kniazev
ffccc28780 Classic.Tests: parser_traits_tests: Fixed unused typedef plain_t 2017-11-12 17:28:00 +03:00
Nikita Kniazev
3de1c4bdaa Classic.Tests: tree_to_xml: Fixed unused typedefs 2017-11-12 17:28:00 +03:00
Joel de Guzman
547076384a Merge pull request #136 from akumta/patch-3
Update grammar_tests.cpp
2015-10-23 05:32:23 +08:00
Kohei Takahashi
95822caff7 Fix link error on classic's regression test. 2015-10-08 11:58:43 +09:00
Joel de Guzman
9c5dd09880 Merge branch 'master' into develop 2015-07-15 06:38:56 +08:00
MaksimMyasnikov
f99fcf76c0 https://svn.boost.org/trac/boost/ticket/9456
https://svn.boost.org/trac/boost/ticket/9457
2015-07-14 00:48:19 +03:00
Marcel Raad
a9131015e6 Compile fix
Now that the "using namespace std" has been removed, endl has to be qualified with "std::".
2015-07-11 22:53:00 +02:00
Joel de Guzman
c9a142b014 Merge pull request #137 from akumta/ticket-10975
Ticket 10975
2015-07-10 09:53:31 +08:00
akumta
79c017af70 Update switch_tests_wo_default.cpp
update per ticket 10975
2015-07-09 18:06:28 -07:00
akumta
031b888429 Update switch_tests_single.cpp
update for ticket 10975
2015-07-09 18:05:13 -07:00
akumta
37842e3ccb Update switch_tests_general_def.cpp
updte for ticket 10975
2015-07-09 18:04:06 -07:00
akumta
4b7e9bfb35 Update switch_tests_eps_default.cpp
update for ticket 10975
2015-07-09 18:02:33 -07:00
akumta
f54fe7dc1d Update subrule_tests.cpp
update for ticket 10975
2015-07-09 18:01:26 -07:00
akumta
0d4b209d7a Update scanner_tests.cpp
update for ticket 10975
2015-07-09 17:59:28 -07:00