Nikita Kniazev
32fb6f6899
V2.Tests: Revise poorly named tests
...
Looking by the commit history they should not have been using classic iterators
2023-04-03 01:26:26 +03:00
Nikita Kniazev
bda34254dc
Tests: fix missing sstream includes
2023-03-18 18:06:07 +03:00
Nikita Kniazev
fe3675ea09
Tests: Suppress C++03 deprecation warnings from other libraries
2023-03-17 22:50:13 +03:00
Nikita Kniazev
e692051e25
Fix Clang 13 -Wdeprecated-copy
2022-09-13 04:13:24 +03:00
djowel
da9968dbdf
Fixes #725
2022-06-01 10:22:27 +08:00
Nikita Kniazev
abd946b00d
Tests: Limit -Wno-deprecated-copy to GCC 9-11
...
To avoid 'unrecognized command line option "-Wno-maybe-uninitialized"' warning
2021-12-17 22:19:40 +03:00
Nikita Kniazev
2a231e81a3
Lex: Fix warning C4458: declaration of 'varname' hides class member
2021-12-17 21:18:18 +03:00
Nikita Kniazev
551d4b6d79
Rework known warning suppression
2021-12-17 04:21:28 +03:00
Nikita Kniazev
4ea7e3a7b7
Deprecate Phoenix transition headers
...
There is no purpose in these transition headers, Phoenix V2 was removed 8 years ago.
2021-09-28 22:24:57 +03:00
Nikita Kniazev
0821b0d877
Improve headers self-sufficiency
...
Closes #695
2021-08-28 23:43:28 +03:00
Nikita Kniazev
f44479bcd3
Remove boost/config/warning_disable.hpp usage
...
It is better to manage warnings on our side to know what warnings we need to fix or suppress, and the only thing that header does is disabling deprecation warnings on MSVC and ICC which we would prefer to not show to users.
2021-08-24 03:14:12 +03:00
Nikita Kniazev
bbb020e221
Remove unused boost/mpl/print.hpp includes
2021-08-23 22:35:47 +03:00
Nikita Kniazev
6a7c758376
Switch to the new location of lightweight test
...
Old location had been deprecated for a long time already.
2021-08-23 21:45:17 +03:00
Nikita Kniazev
62dd237c61
Cease dependence on Foreach
...
I have not touch examples because they are not affecting Spirit usage and testing dependencies, and modernizing them also seems like a waste of time when we encourage to start new projects with X3 instead of Qi.
2021-06-20 23:04:34 +03:00
Nikita Kniazev
705954734d
Workaround bogus MSVC C4709 warning
...
It has been 10+ years since the false-positive was reported to MSVC developers, but still it is not fixed. My bug report in the new MSVC bug tracker https://developercommunity.visualstudio.com/t/buggy-warning-c4709/471956 seen no motion in two years.
2021-05-30 23:46:56 +03:00
Nikita Kniazev
0e15dd13bb
Fix MSVC C4456
2021-05-17 03:01:58 +03:00
Nikita Kniazev
9b3933d15d
Narrow Boost.Range includes
2020-05-28 23:24:34 +03:00
Nikita Kniazev
475877a3da
Fix -Wdeprecated-comma-subscript
2020-04-12 22:13:32 +03:00
Nikita Kniazev
ee9c7214c4
Port to B2 forced-include feature
2020-04-04 15:30:21 +03:00
Nikita Kniazev
156bd18d17
Narrow Proto and Phoenix inclusion
...
Include needed parts at place where they are needed instead of including the
whole Proto library and significant parts of Phoenix in a few places.
Parsing time reported by Clang 9 with default (C++14) std:
was |now |gain|include
----|----|----|----------
4.45|4.22|5.2%|qi
4.52|4.23|7.5%|karma
4.37|3.99|9.7%|lex
3.75|3.47|7.5%|qi_numeric
There were phoenix/limits.hpp inclusion before every Proto inclusion to override
Proto limits with Phoenix limits values. It has no value in C++11+ world, and
poisons code too much as the number of places where Proto headers now included
increased, so I did not replicate it.
2019-11-29 03:20:30 +03:00
Nikita Kniazev
f474ee6b54
Lex: regression_wide suppress signed with unsigned comparison warning
...
Instead of actual token type Lex internally uses `std::size_t` and passes the
token value to semantic actions as-is. Revert the commit once it is fixed.
2019-09-28 21:51:02 +03:00
Romain Geissler
295ad6710a
Explicitly delete all non implemented assignment operators.
...
Commit (almost) automatically generated with the following sed command:
sed -i -ne '1h;1!H;${g;s|\n[[:blank:]]*private:\n\([[:blank:]]*\)// silence MSVC warning C4512: assignment operator could not be generated\n\([[:blank:]]*\)\([^\n]\+\);\n|\n\1// silence MSVC warning C4512: assignment operator could not be generated\n\2BOOST_DELETED_FUNCTION(\3);\n|g;p}' $(git ls-files)
Then all files in the x3 subfolder were reverted to HEAD, and manually
updated to use " = delete" instead of BOOST_DELETED_FUNCTION.
2019-04-16 22:35:52 +00:00
Nikita Kniazev
a0e5817444
Revert to use <dependency> feature
...
This was my fault when I did not mark subfeature `propogated` and after fixing
it I did not retest this thing.
2019-01-27 16:52:47 +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
5e4ab36170
Tests: Include less headers
2018-10-01 02:16:04 +03:00
Nikita Kniazev
160dee1799
Do not use extended initializer lists
2017-12-26 16:25:54 +03:00
Nikita Kniazev
a9eab0ef78
Lex.Tests: token_moretypes: Use optional
...
Simplifies values declaration and fixes warnings.
2017-12-26 15:27:34 +03:00
Nikita Kniazev
596079647b
Tests.Lex: Fixed dependencies race
...
It looks like `<implicit-dependency>` does not actually work.
2017-11-28 03:54:44 +03:00
Nikita Kniazev
0917fca9fd
Tests: Improve tests
...
- Split Spirit v2 tests
- Readd missing v2 tests
- Run X3 tests
- Remove `-p3` suffix
- Use `<c++-template-depth>`
- Automatic adding of subproject name prefix
- Flatten tests declaration
2017-11-28 03:10:20 +03:00
Nikita Kniazev
9c2d6dec93
Revert "Split Spirit v2 tests"
2017-11-26 14:45:39 +03:00
Nikita Kniazev
a21b0b33f5
Split Spirit v2 tests
2017-11-25 14:40:54 +03:00
Nikita Kniazev
ee900333b4
Lex.Tests: set_token_value: Fixed type conversion warning
2017-11-21 19:49:35 +03:00
Nikita Kniazev
d99cdf5bd2
Tests: Removed unused argc and argv parameters
2016-08-29 19:25:23 +03:00
Joel de Guzman
4789aec3d9
Merge pull request #215 from Kojoley/fix-multiple-unsued-variable-warnings
...
Tests: Fixed multiple unused variable warnings
2016-08-26 06:23:44 +08:00
Nikita Kniazev
20e588242e
Lex.Tests: Fixed unused variables warning from tokendedent_handling_phoenix test
2016-08-25 22:31:10 +03:00
Nikita Kniazev
15a0012863
Lex.Tests: Fixed unused variables warnings from token_iterpair test
2016-08-25 22:31:10 +03:00
Nikita Kniazev
532c0e6fbe
Lex.Tests: regression_wide: comparison between signed and unsigned
...
> lex/regression_wide.cpp:70:51: warning: comparison between signed and
> unsigned integer expressions [-Wsign-compare]
> BOOST_TEST(data[sequence_counter].tokenid == tokenid);
^
2016-08-25 21:04:24 +03:00
Nikita Kniazev
894ea490f7
Lex.Tests: regression_wide: Fixed initialization order
...
> lex/regression_wide.cpp:93:11: warning: field 'constant' will be
> initialized after field 'operation' [-Wreorder]
> , constant (L"[0-9]+(\\.[0-9]+)?", ID_CONSTANT)
> ^
2016-08-25 21:04:24 +03:00
Nikita Kniazev
a7927b15ef
Lex.Tests: regression_wide: unused typedef 'iterator_type'
...
> lex/regression_wide.cpp:122:52: warning:
> unused typedef 'iterator_type' [-Wunused-local-typedef]
> typedef mega_tokens<lexer_type>::iterator_type iterator_type;
2016-08-25 21:04:24 +03:00
Nikita Kniazev
10a0fc449e
Lex.Tests: regression_wide: sequence_counter signed and unsigned comparison
...
> lex/regression_wide.cpp:69:37: warning: comparison between signed
> and unsigned integer expressions [-Wsign-compare]
> BOOST_TEST(sequence_counter < sizeof(data)/sizeof(data[0]));
2016-08-25 21:04:24 +03:00
Jeff Trull
4c073d8891
remove excess includes and turn off debugging
2016-05-16 18:13:02 -07:00
Jeff Trull
8ac0d9b98b
Fix plain_token_range and add a test for plain tokens
2016-05-16 18:11:02 -07:00
Joel de Guzman
c0537c8251
Removing phoenix-2 for good ( good bye I will miss you )
2013-12-14 09:52:07 +08:00
Hartmut Kaiser
fc83d23f2a
Fix #8563 : Compilation error with boost::spirit::lex::less actor
...
[SVN r84285]
2013-05-14 23:43:46 +00:00
Ben Hanson
7fbb69518b
Whitespace should be + not *.
...
[SVN r78358]
2012-05-06 14:49:11 +00:00
Ben Hanson
313c1f8d25
Whitespace should be + not *.
...
[SVN r78357]
2012-05-06 14:48:29 +00:00
Ben Hanson
97a91cfe72
Whitespace should be + not *.
...
[SVN r78356]
2012-05-06 14:46:35 +00:00
Ben Hanson
b9f77a7c91
whitespace should be + not *.
...
[SVN r78355]
2012-05-06 14:45:33 +00:00
Hartmut Kaiser
7261177938
Spirit: fixed #6253 : lex::lexertl::generate_static_dfa compiler errors if lexer has wchar_t as underlying stream type
...
[SVN r75910]
2011-12-12 00:48:40 +00:00
Hartmut Kaiser
b5a81660c3
Spirit: copyright fixes
...
[SVN r74246]
2011-09-05 22:32:29 +00:00