Commit Graph

239 Commits

Author SHA1 Message Date
Hartmut Kaiser
9a56d46717 Added the support_option_insert_whitespace language option.
[SVN r36211]
2006-11-30 13:22:39 +00:00
Hartmut Kaiser
8debee3187 Wave: Fixed a subtle bug.
[SVN r36204]
2006-11-29 23:54:52 +00:00
Hartmut Kaiser
26563d403c Changed the list_includes sample to use a lexer which is based on the lexertl library written by Ben Hanson (http://www.benhanson.net/lexertl.html).
[SVN r36170]
2006-11-23 22:24:03 +00:00
Hartmut Kaiser
8895b44419 Wave: Added token_statistics sample.
[SVN r36157]
2006-11-23 02:01:33 +00:00
Hartmut Kaiser
068ed18ae1 Factored out the pure lex_input_interface to simplify writing different lexer types for Wave.
[SVN r36141]
2006-11-22 02:33:45 +00:00
Hartmut Kaiser
2e422497bc Wave: modified the real_positions example to use a new tokentype carrying both positions, the original and the corrected one.
[SVN r35950]
2006-11-09 14:35:26 +00:00
Hartmut Kaiser
8373f59803 Added new pp hook: generated_token().
[SVN r35910]
2006-11-08 03:41:09 +00:00
Hartmut Kaiser
6bd6cd8ef7 Wave: Added error handler hook.
[SVN r35630]
2006-10-16 14:39:59 +00:00
Hartmut Kaiser
c791f7edec Minor tweaks in Wave.
[SVN r35422]
2006-09-29 16:03:14 +00:00
Hartmut Kaiser
fd49e19ccd Fixed the wave applet not to report an error of a missing #ifdef interactive mode.
[SVN r35209]
2006-09-19 16:27:20 +00:00
Hartmut Kaiser
2536de0389 Wave: improved error handling and some diagnostics, added corresponding tests.
[SVN r35186]
2006-09-18 23:24:30 +00:00
Hartmut Kaiser
2693461aa0 Improved cfg file handling in the wave driver applet.
[SVN r34949]
2006-08-25 17:37:00 +00:00
Hartmut Kaiser
473b69e6fe Wave: Improved error handling and error recovery for conditional expressions.
[SVN r34931]
2006-08-23 19:37:31 +00:00
Hartmut Kaiser
61758d08ec Wave: Fixed a bug resulting in a crash if a macro was redefined with a shorter expansion list as it was defined initially. Added a corresponding test case.
[SVN r34926]
2006-08-23 01:40:23 +00:00
Hartmut Kaiser
1f5d628c14 Another try to fix the Wave related SunPro compilation problem.
[SVN r34737]
2006-07-26 01:41:37 +00:00
Hartmut Kaiser
99c014af40 Another try to fix the SunPro issue.
[SVN r34459]
2006-07-04 20:04:32 +00:00
Hartmut Kaiser
010a1459ed Appplied RTTI Jamfile.v2 fixes for VC7.1
[SVN r34445]
2006-07-02 18:30:47 +00:00
Hartmut Kaiser
705dacbd48 Added new preprocessing hook function: found_line_directive() to be called when a #line directive is encountered.
[SVN r34393]
2006-06-25 17:17:28 +00:00
Hartmut Kaiser
ed8761fe72 Stripped leading and trailing whitespace for all lines in a config file (Wave driver tool).
[SVN r34389]
2006-06-24 21:47:45 +00:00
Hartmut Kaiser
5cfd4d3beb Fixed predefined macros to appear to be defined at a position referring to a file named '<built-in>'.
[SVN r34387]
2006-06-24 20:46:14 +00:00
Hartmut Kaiser
8d6b92ca19 Fixed predefined macros to appear to be defined at a position referring to a file named '<built-in>'.
[SVN r34386]
2006-06-24 20:44:47 +00:00
Hartmut Kaiser
55305c69cd Fixed exception specifications to catch exceptions as const&.
[SVN r34385]
2006-06-24 17:00:22 +00:00
Hartmut Kaiser
a673b06695 Fixed a missing #define BOOST_WAVE_SOURCE 1 in wave_config_constant.cpp.
[SVN r34379]
2006-06-23 15:43:15 +00:00
Hartmut Kaiser
a7a18c3563 Wave: Fixed a problem in get_tokenname().
[SVN r34377]
2006-06-22 23:51:18 +00:00
Hartmut Kaiser
9145802cc6 Added found_warning_directive() and found_error_directive() pp hook functions.
[SVN r34326]
2006-06-17 15:48:01 +00:00
Hartmut Kaiser
8074dd7a09 Fixed a problem, where non-evaluated #elif directives never got passed to the
skippen_token() pp hook (thanks to Andreas Sæbjornsen for reporting).


[SVN r34322]
2006-06-16 23:51:53 +00:00
Hartmut Kaiser
fe211736d3 Fixed main Wave iterator to return a T_EOF token at the very end of the input.
[SVN r34320]
2006-06-16 21:55:11 +00:00
Hartmut Kaiser
86418bd398 Added optional import keyword support.
[SVN r34314]
2006-06-15 22:01:09 +00:00
Hartmut Kaiser
ff02969b74 Fixed usability of true/false as macro names.
[SVN r34075]
2006-05-24 01:34:24 +00:00
Hartmut Kaiser
e96accdd01 Added the new pp hooks to Wave.
[SVN r34072]
2006-05-23 18:17:58 +00:00
Hartmut Kaiser
20d9781876 Fixed a subtle preprocessing bug.
[SVN r34045]
2006-05-20 18:49:51 +00:00
Hartmut Kaiser
ffa652f870 Updated Changelog.
[SVN r33972]
2006-05-15 15:10:29 +00:00
Hartmut Kaiser
e6f381b277 Richard Guenther fixed another buffer overrun problem in the Re2C scanner.
[SVN r33966]
2006-05-15 12:41:58 +00:00
Hartmut Kaiser
56006e45fd Changed 'evaluated_conditional_expression()' pp hook.
[SVN r33962]
2006-05-14 16:41:00 +00:00
Hartmut Kaiser
fc74d27d88 Fixed the Wave tool to return the number of errors occured.
[SVN r33910]
2006-05-02 23:07:57 +00:00
Hartmut Kaiser
a1771f5c00 Fixed Wave Jamfile.v2 to correctly disable RTTI for VC7.1
[SVN r33909]
2006-05-02 15:19:49 +00:00
Hartmut Kaiser
67f5150480 Added the name of the generating compiler (BOOST_COMPILER) to the full Wave version info.
[SVN r33902]
2006-05-02 02:44:03 +00:00
Hartmut Kaiser
fae4ff52b1 Fixed Wave tool startup crash when compiled with VC8.
[SVN r33901]
2006-05-02 02:17:29 +00:00
Hartmut Kaiser
cb3925b4dc Updated Wave change log.
[SVN r33856]
2006-04-29 01:36:11 +00:00
Hartmut Kaiser
16a77bd582 Fixed a nasty Wave bug, improved performance a lot.
[SVN r33854]
2006-04-28 23:32:04 +00:00
Hartmut Kaiser
10e07023a5 Added due credit to the Changelog.
[SVN r33832]
2006-04-26 21:00:17 +00:00
Hartmut Kaiser
646163b7fe Fixed a rare memory corruption bug in the Wave Re2C scanner buffer management code.
[SVN r33831]
2006-04-26 20:51:54 +00:00
Hartmut Kaiser
8620cf875d Fixed memory leak in the flex_string copy on write code.
[SVN r33817]
2006-04-25 17:21:01 +00:00
Hartmut Kaiser
01e4a5ff83 Added proper versioning support to the serialization of state.
[SVN r33410]
2006-03-20 18:04:09 +00:00
Hartmut Kaiser
c959794650 Wave V1.2.4
[SVN r33362]
2006-03-17 22:40:02 +00:00
Hartmut Kaiser
cb793b0c57 Wave: Fixed a dynaload compilation problem with VC7.1 of the re2c lexer tests.
[SVN r33192]
2006-03-01 18:33:45 +00:00
Hartmut Kaiser
add21dc6e5 Fixed a problem in the expression parser value type.
[SVN r33166]
2006-02-28 03:57:03 +00:00
Hartmut Kaiser
b79287fa42 Fixed two bugs related to file inclusion.
[SVN r33130]
2006-02-27 02:28:24 +00:00
Hartmut Kaiser
cd344b9dd7 Added comment for Boost V1.34.0.
[SVN r33106]
2006-02-25 18:27:22 +00:00
Hartmut Kaiser
a493efd766 [Wave] Moved token_id query functions to a separate source file.
[SVN r32378]
2006-01-23 17:03:16 +00:00
Hartmut Kaiser
e84efe1220 Wave now correctly recognizes pp-number tokens.
[SVN r32374]
2006-01-23 03:45:35 +00:00
Hartmut Kaiser
a3f6f97ae1 Added a diagnostic message to the wave driver if a #pragma wave system() is found without the -x command line option.
[SVN r32346]
2006-01-18 01:53:24 +00:00
Hartmut Kaiser
be57d3db18 Added -x [--extended] command line argument to enable the #pragma wave system() directive.
[SVN r32345]
2006-01-18 00:01:38 +00:00
Hartmut Kaiser
95d803df7b Made the wave::context<> type noncopyable.
[SVN r32331]
2006-01-16 02:57:05 +00:00
Hartmut Kaiser
7ddd9e92a6 Added missing calls to the skipped_token() pp hook function.
[SVN r32314]
2006-01-13 18:17:30 +00:00
Hartmut Kaiser
f09d7d60c7 Fixed Boost bug 1395857.
[SVN r32212]
2006-01-03 15:24:09 +00:00
Hartmut Kaiser
8b87cd0211 Added a missing throw() specification.
[SVN r32200]
2006-01-01 21:38:43 +00:00
Hartmut Kaiser
5115faf51e Updated the Wave copyright notice to include the year 2006.
[SVN r32154]
2005-12-24 19:50:47 +00:00
Hartmut Kaiser
00fa5bd6cf Fixed a (Windows specific) problem in Wave which sometimes throwed a boost::file_system exception.
[SVN r32105]
2005-12-19 17:16:13 +00:00
Hartmut Kaiser
5839df80a9 Fixed a bogus assertion in Wave.
[SVN r32095]
2005-12-18 21:11:41 +00:00
Hartmut Kaiser
5f110486a9 Fixed missing #pragma warning(pop) directives in Wave.
[SVN r32057]
2005-12-15 02:15:57 +00:00
Hartmut Kaiser
cd419d7475 Added config support for Wave #pragma command directives.
[SVN r31980]
2005-12-11 00:15:17 +00:00
Hartmut Kaiser
bb62cfffc5 Changed in the Wave library all throw's to boost::throw_exception().
[SVN r31950]
2005-12-08 03:33:38 +00:00
Hartmut Kaiser
5f7593b525 Added the -E option to the Wave driver.
[SVN r31947]
2005-12-08 01:43:20 +00:00
Hartmut Kaiser
fbc913d155 Fixed a error recovery problem in Wave.
[SVN r31935]
2005-12-06 16:04:56 +00:00
Hartmut Kaiser
a8db57d4e6 Added partial error recovery support to Wave.
[SVN r31924]
2005-12-06 00:17:59 +00:00
Hartmut Kaiser
5e458d3eee Fixed a CW9.4 issue.
[SVN r31889]
2005-12-03 17:18:50 +00:00
Hartmut Kaiser
a8880c23de Merged the new whitespca handling policy with the existing preprocessing hooks.
[SVN r31864]
2005-12-01 17:58:43 +00:00
Hartmut Kaiser
e47b8234ef Added the whitespace handling policy to the wave library.
[SVN r31839]
2005-11-30 21:30:24 +00:00
Hartmut Kaiser
58558f08d4 Added dll support to Wave.
[SVN r31729]
2005-11-21 20:27:02 +00:00
Hartmut Kaiser
71ca605c97 Added the <vc-7_1-stlport><*><rtti>off directive to all of the Wave V1 Jamfiles.
[SVN r31714]
2005-11-20 22:44:11 +00:00
Hartmut Kaiser
db2f382f90 Fixed Wave test suite to handle correctly the new BOOST_WAVE_USE_STRICT_LEXER mode.
[SVN r31710]
2005-11-20 01:20:46 +00:00
Hartmut Kaiser
d4636c6ea0 Wave: added optional '$' to the basic source character set.
[SVN r31700]
2005-11-19 18:31:32 +00:00
Hartmut Kaiser
ab39c8897a Updated Changelog.
[SVN r31693]
2005-11-18 20:21:34 +00:00
Hartmut Kaiser
93e881b703 Tweaked the advanced_hooks sample.
[SVN r31575]
2005-11-05 22:08:11 +00:00
Hartmut Kaiser
b8f7bdeef4 Updated Changelog.
[SVN r31560]
2005-11-05 02:38:13 +00:00
Hartmut Kaiser
1742c69fd2 Added advanced hooks and a new sample.
[SVN r31551]
2005-11-04 02:34:17 +00:00
Hartmut Kaiser
e16179c92f Fixed an iterator issue reported by the gcc debug stl.
[SVN r31229]
2005-10-07 22:52:14 +00:00
Hartmut Kaiser
e027416fb0 Fixed error handling for passive #if/#elif branches.
[SVN r31184]
2005-10-03 15:15:30 +00:00
Hartmut Kaiser
e152ad4269 Fixed line numbering inside the generated tokens.
[SVN r30921]
2005-09-12 17:17:42 +00:00
Hartmut Kaiser
e9c45298ca Fixed missing namespace specifiers in token definition macros.
[SVN r30910]
2005-09-11 18:43:05 +00:00
Hartmut Kaiser
5499feab59 Updated ChangeLog.
[SVN r30830]
2005-09-06 16:23:05 +00:00
Hartmut Kaiser
51a168fae0 Fixed Sourceforge bug 1274584.
[SVN r30707]
2005-08-28 03:16:56 +00:00
Hartmut Kaiser
4a23d29c68 Applied a CodeWarrior workaround for the slex lexer.
[SVN r29268]
2005-05-29 18:35:42 +00:00
Hartmut Kaiser
a6a4504703 Added special handling of the eof tokens inside the lexer iterator classes for Comeau
[SVN r29241]
2005-05-27 10:25:45 +00:00
Hartmut Kaiser
17be5a75d9 Fixed lexer tests on platforms others than windows.
[SVN r29054]
2005-05-19 06:00:19 +00:00
Hartmut Kaiser
a847b2aefa Fixed test cases to scale to 64 bit platforms.
[SVN r29026]
2005-05-18 06:10:11 +00:00
Hartmut Kaiser
e71c4b41e7 Added lexer testcases to the regression tests.
[SVN r28990]
2005-05-17 12:56:11 +00:00
Hartmut Kaiser
7d2ab5017f Unified lexer interface, adjusted namespaces.
[SVN r28989]
2005-05-17 12:32:11 +00:00
Hartmut Kaiser
b5577098d0 Applied a change which hopefully fixes the issues on CW8.x.
[SVN r28981]
2005-05-17 06:08:31 +00:00
Hartmut Kaiser
c86e4352bf Fixed a bug where Wave emitted the found C++ comments in --preserve mode even if these were found inside of disabled #if/#endif blocks.
[SVN r28957]
2005-05-16 14:25:12 +00:00
Hartmut Kaiser
54c512ccfd Fixed a whitespace eater bug.
[SVN r28948]
2005-05-16 09:36:01 +00:00
Hartmut Kaiser
2ed503a7fb Fixed the found_include_directive preprocessing hook to carry the information about #include_next directives as well.
[SVN r28910]
2005-05-14 20:53:13 +00:00
Hartmut Kaiser
f138a64807 Added column handling to the default re2c based lexer. Fixed documentation.
[SVN r28837]
2005-05-12 07:41:20 +00:00
Hartmut Kaiser
77ba54763e Yet another trigraph token id fix.
[SVN r28816]
2005-05-11 12:11:28 +00:00
Hartmut Kaiser
3f382f24b1 Fixed a bug in the lexer which falsly recognised #include_next statements under certain circumstances.
[SVN r28806]
2005-05-11 06:20:47 +00:00
Hartmut Kaiser
6efa3a6b8d Fixed compilation when BOOST_WAVE_DUMP_PARSE_TREE is defined.
[SVN r28786]
2005-05-10 16:44:51 +00:00
Hartmut Kaiser
e26d617e67 Wave V1.1.17.
[SVN r28744]
2005-05-08 17:58:57 +00:00
Hartmut Kaiser
a0c585ca45 Fixed a bug in the slex regex specifications.
[SVN r28712]
2005-05-07 12:45:09 +00:00
Hartmut Kaiser
189861d0ec Made the True64 compiler happy, fixed a 'LL' suffix bug.
[SVN r28695]
2005-05-06 09:10:19 +00:00
Hartmut Kaiser
795fbd663f Fixed almost all problems diagnosed by the Boost inspection report.
[SVN r28650]
2005-05-04 07:24:44 +00:00
Hartmut Kaiser
66225a8915 Fixed parsing of long character literals (such as '\x1234').
[SVN r28589]
2005-05-02 18:35:07 +00:00
Hartmut Kaiser
a2df95b74c Improved error handling for out of range character literals, added several new test cases.
[SVN r28557]
2005-05-01 21:01:23 +00:00
Hartmut Kaiser
a4d0ea235e Fixed error reporting for a specific use case, added corresponding testcase.
[SVN r28536]
2005-04-29 20:08:34 +00:00
Hartmut Kaiser
c747965903 Fixed token comparision for the True64 platform.
[SVN r28534]
2005-04-29 16:55:26 +00:00
Hartmut Kaiser
bab9d3bfbe Fixed error reported by the True64 toolset.
[SVN r28526]
2005-04-29 12:07:49 +00:00
Hartmut Kaiser
a78b2746c9 The T_EOF token doesn't carry the value of the previous token anymore.
[SVN r28503]
2005-04-27 10:27:20 +00:00
Hartmut Kaiser
51ec83e6d1 Fixed several como --a warnings.
[SVN r28501]
2005-04-27 07:55:57 +00:00
Hartmut Kaiser
f631c8d512 Switched to the most recent version of re2c (V0.9.7.dev).
[SVN r28491]
2005-04-26 19:21:49 +00:00
Hartmut Kaiser
1ef3c6b46e updated Wave to reflect the recent changes in the program_options library.
[SVN r28490]
2005-04-26 18:44:37 +00:00
Hartmut Kaiser
01eb24fc84 Changed the test application to return a value != zero if one of the given config files were not found.
[SVN r28444]
2005-04-23 23:09:00 +00:00
Hartmut Kaiser
ef93298acb Enforced that #if/#endif are balanced file wise.
[SVN r28084]
2005-04-10 18:26:34 +00:00
Hartmut Kaiser
96aef5d5cc Added workaround for gcc3.3.x bug.
[SVN r28082]
2005-04-10 13:45:18 +00:00
Hartmut Kaiser
fb009e5b39 Bumped Wave to V1.1.16.
[SVN r28039]
2005-04-07 08:21:19 +00:00
Hartmut Kaiser
93fac3a3b0 Added even more std:: namespace qualifiers for functions from the CRT lib.
[SVN r28009]
2005-04-06 11:07:37 +00:00
Hartmut Kaiser
ddf3523acf Added the first part of the MCPP validation suite to the Wave unit tests.
[SVN r28005]
2005-04-06 07:28:34 +00:00
Hartmut Kaiser
81365f8d42 Added a compiler workaround.
[SVN r27968]
2005-04-05 06:06:55 +00:00
Hartmut Kaiser
b043597c61 Fixed a error reporting problem.
[SVN r27962]
2005-04-04 20:32:54 +00:00
Hartmut Kaiser
d449562045 Added more unit tests.
[SVN r27959]
2005-04-04 19:40:32 +00:00
Hartmut Kaiser
1c2ca265ea Added lot of unit tests, fixed a couple of minor bugs.
[SVN r27950]
2005-04-04 11:03:51 +00:00
Hartmut Kaiser
ae1695fc49 Fixed a problem in the whitespace eating component.
[SVN r27945]
2005-04-03 16:54:38 +00:00
Hartmut Kaiser
bbf85da3ea Wave test application now properly supports config files. Fixed minor issues.
[SVN r27944]
2005-04-03 15:22:13 +00:00
Hartmut Kaiser
c044c227e7 Added a missing header. Fixed a compilation error.
[SVN r27927]
2005-04-02 08:36:53 +00:00
Hartmut Kaiser
d103a70b04 Fixed an unescaping bug.
[SVN r27910]
2005-04-01 20:48:20 +00:00
Hartmut Kaiser
5878452514 Updated Wave.
[SVN r27905]
2005-04-01 17:46:06 +00:00
Hartmut Kaiser
b7ef274181 Adjusted copyrights to reflect Boost adoption. Several minor fixes.
[SVN r27885]
2005-03-30 15:32:57 +00:00
Hartmut Kaiser
d01b4f4a90 FIxed issues wrt the include search path handling.
[SVN r27817]
2005-03-25 19:08:42 +00:00
Hartmut Kaiser
7db49ef710 Added a 'preserve comments' option.
[SVN r27766]
2005-03-22 13:58:30 +00:00
Hartmut Kaiser
7bfd3819fe Fixed problems where alternative bit oriented keywords (or, and bit_and etc.) were not recognised as valid identifiers.
[SVN r27755]
2005-03-22 06:52:01 +00:00
Hartmut Kaiser
97a3639744 Fixed a include path problem when relative paths were used.
[SVN r27748]
2005-03-20 18:42:47 +00:00
Hartmut Kaiser
0eb9ff25f0 Fixed relative path given to the opened_include_file() function.
[SVN r27724]
2005-03-17 16:48:31 +00:00
Hartmut Kaiser
427ea0ca02 Fixed the include file name conventions used during calling the preprocessing hooks.
[SVN r27711]
2005-03-16 19:52:39 +00:00
Hartmut Kaiser
48a37ec6c2 Fixed a bug in the #include_next handling code.
[SVN r27684]
2005-03-16 06:56:37 +00:00
Hartmut Kaiser
37d9f9fbcb Fixed a bug in the handling of #include_next directives inside of non-evaluated #if blocks.
[SVN r27673]
2005-03-15 17:59:10 +00:00
Hartmut Kaiser
5dedb3c93f Fixed the undefined_macro preproceesing hook to get passed the full token instead of the macro name only.
[SVN r27655]
2005-03-14 20:57:37 +00:00
Hartmut Kaiser
29fc1f71ac Fixed handling of #include_next.
[SVN r27654]
2005-03-14 19:20:20 +00:00
Hartmut Kaiser
22a6fff4cc Updated the Wave library.
[SVN r27638]
2005-03-14 10:16:13 +00:00
Hartmut Kaiser
b1be4d0622 __BASE_FILE__ now defined in C99 and variadics modes as well.
[SVN r27620]
2005-03-12 11:12:11 +00:00
Hartmut Kaiser
d588f4f77f Added Wave V1.1.14 to the Boost CVS.
[SVN r27458]
2005-02-21 08:54:23 +00:00