Commit Graph

645 Commits

Author SHA1 Message Date
Peter Dimov
8bd1c3a856 Use boost::core::invoke_swap instead of the deprecated boost::swap 2023-09-30 02:52:51 +03:00
Peter Dimov
484dfd20b1 Add missing include 2023-09-30 02:13:18 +03:00
Nikita Kniazev
353ac8047b src/parsers.hpp: Workaround bogus C4709 warning
\quickbook\src\parsers.hpp(81): warning C4709: comma operator within array index expression

Details: https://developercommunity.visualstudio.com/t/buggy-warning-c4709/471956
2022-09-28 02:17:03 +03:00
Andrey Semashev
944d881de7 Workaround gcc 9-12 code miscompilation that broke section link ids.
gcc 9.2 through 12.1 has a code generation bug that result in incorrect
link ids for some sections in the generated XML.

This commit applies a workaround as suggested by Nikita Kniazev in:

https://github.com/boostorg/spirit/issues/737#issuecomment-1256830393

Fixes https://github.com/boostorg/quickbook/issues/11.
2022-09-24 15:40:14 +03:00
Peter Dimov
40f6f9ede7 Update file_path_to_url_impl to account for Filesystem changes in 1.77 (refs https://github.com/boostorg/filesystem/issues/259) 2022-09-05 12:23:56 +03:00
Peter Dimov
071a58488d Add missing include 2022-08-31 18:51:14 +03:00
Peter Dimov
5f2e8c24cb Update uses of boost/bind.hpp 2020-09-04 01:31:52 +03:00
Peter Dimov
60ecc01fc7 Replace granular includes with <boost/filesystem.hpp>, because <boost/filesystem/directory.hpp> is not present in old Boost releases 2019-08-05 21:28:44 +03:00
Peter Dimov
207d447488 Add missing #include 2019-08-05 19:05:16 +03:00
Daniel James
7b188740c6 Bump version, and update change log 2018-04-15 22:10:03 +01:00
Daniel James
39e649bf41 Avoid msvc unused parameter warning
Might be better to have a macro for `[[maybe_unused]]` style attributes?
2018-04-10 21:24:32 +01:00
Daniel James
bda4c334d6 Merge branch 'release-notes' into develop 2018-03-07 14:53:14 +00:00
Daniel James
6d5dbf1ce1 Changelog for 1.67.0 + bump version
Pretty minor release, as I didn't merge most of my changes to master in time.
2018-03-07 14:51:59 +00:00
Daniel James
33b8df87bf Fix some inspect errors 2018-01-10 13:58:10 +00:00
Daniel James
ff6add59d1 Starting to implement docinfo 2018-01-08 17:43:25 +00:00
Daniel James
711bba1b36 Warn about missing links 2017-12-31 15:13:11 +00:00
Daniel James
fd1efeba6e Support absolute paths or URLs in html options 2017-12-31 15:13:11 +00:00
Daniel James
0bc12c6bc6 Add -boost-root parameter 2017-12-31 15:13:11 +00:00
Daniel James
38c03a35ba Generate HTML output 2017-12-31 14:20:22 +00:00
Daniel James
eaf71fa9c8 Extract parse methods from id_xml.cpp 2017-12-30 21:10:58 +00:00
Daniel James
c55b7ccc9f Decode basic xml markup
Doesn't support things like custom entities, but should be good enough
for the boostbook/docbook that quickbook generates.
2017-12-30 21:10:58 +00:00
Daniel James
168b9370a1 Fix post-processor for empty output
Doesn't normally happen, but useful when developing.
2017-12-30 21:10:58 +00:00
Daniel James
20bd499215 Support pretty printing html 2017-12-30 21:10:58 +00:00
Daniel James
04c3e253e6 Extra methods for string_view
Append to strings, and make string_view hashable
2017-12-30 21:10:58 +00:00
Daniel James
980da90619 More specific range includes 2017-12-30 18:01:06 +00:00
Daniel James
92053837ca Remove use of boost::find_first_of
Getting a constexpr related error on old versions of gcc, so for compatibility,
just use string_view's find_first_of instead.
2017-12-30 17:56:17 +00:00
Daniel James
cb59bea0d8 Rename printer to pretty_printer 2017-12-28 18:14:09 +00:00
Daniel James
919d845a5c Put docinfo variables in struct, and factor out header code 2017-12-28 18:14:08 +00:00
Daniel James
c65d2bc7c3 Use QUICKBOOK_FOR in a few places 2017-12-28 17:04:34 +00:00
Daniel James
9085d2e95a Macro for C++11 range based for loop 2017-12-28 17:04:34 +00:00
Daniel James
6c836e24dd Include guards for glob.hpp 2017-12-28 17:04:34 +00:00
Daniel James
19ccdd6cbd Reformat 2017-12-24 12:46:59 +00:00
Daniel James
f83bc0fcf6 Prep for clang-format 2017-12-24 12:46:59 +00:00
Daniel James
8c3b8aaf89 Trim trailing whitespace from escaped docbook in post processor
Because of the whitespace skipper, the spirit grammar used to only parse
up to the whitespace at the end of escaped markup, but a recent change
to spirit causes it to include the whitespace. Trim it in the action so
that it will work with both the old and new versions of spirit.
2017-12-23 20:15:40 +00:00
Daniel James
f5fe0d7c13 Move boost build project to top level
So it affects all build files.
2017-12-18 17:16:25 +00:00
Peter Dimov
a5dc4f1e53 Replace remaining scoped_ptr use with scoped_array 2017-12-02 16:31:59 +02:00
Daniel James
b5e8c8a6bb Use scoped_array for array 2017-11-21 18:38:01 +00:00
Daniel James
f1cc90ee1e Fix some Visual C++ warnings 2017-10-15 11:53:12 +01:00
Daniel James
20ebef75a2 Fix checking parent path 2017-10-13 13:15:10 +01:00
Daniel James
8d4fb2f7e8 Missing newline on error messages 2017-10-13 13:14:27 +01:00
Daniel James
98d9605d06 Remove TODO about generated ids 2017-10-04 18:58:03 +01:00
Daniel James
ee461e3af8 in_list_save will do 2017-10-04 18:57:12 +01:00
Daniel James
33dffe7402 The characters are fine in escape_uri are fine for now 2017-10-04 18:51:09 +01:00
Daniel James
916f106afa Use string_view instead of silly string rvalue optimisation
And lightly test the functions.
2017-10-04 18:49:33 +01:00
Daniel James
476aa61984 Improved file_path_to_url for windows edge cases
Really not sure about this, but filesystem doesn't have great support
anyway[1], and this handles some unusual cases better.

[1]: https://svn.boost.org/trac10/ticket/5448
2017-10-04 18:05:00 +01:00
Daniel James
e0ec41683d Deal with xinclude == xmlbase
It's a silly edge case as you can't xinclude directories, but might as well
make it a little more sane.
2017-10-04 03:08:21 +01:00
Daniel James
c5b8ad6d38 Fix xmlbase when it's the same as current xinclude base 2017-10-04 02:11:35 +01:00
Daniel James
074895ab80 Remove some TODO notes
Has been working fine, and not really a worry in retrospect.
2017-10-03 19:44:00 +01:00
Daniel James
8bad86f81c Throw an exception for invalid globs in 'glob'
Before the idea was that check_glob would throw out any invalid globs, and then
if they somehow got through glob would just fail to match. I now feel it would
be better if it also complained on finding an invalid glob, although it will
only detect an invalid glob if the pattern matches up to that point.
2017-10-03 19:44:00 +01:00
Daniel James
70270de9c5 Call this 1.7.0
Plan is to have a "release" that is the last version to compile with C++03.
Not a proper release as I'll try to add some more features before the
next Boost release.
2017-09-23 19:53:25 +01:00