Commit Graph

42 Commits

Author SHA1 Message Date
jzmaddock
80559f18f7 Fix regular expressions to find function definitions where the return type is a template.
Test cases are also updated since type_traits has changed.
2015-11-08 19:04:06 +00:00
John Maddock
580822e2f9 Fix bug for situation where no suitable index location is found.
[SVN r84180]
2013-05-07 17:02:39 +00:00
John Maddock
557b5cc2c6 Throw exception on precondition failure.
Fixes #7967.

[SVN r83952]
2013-04-18 12:26:23 +00:00
John Maddock
2830da74d3 Fix build errors from non-C++11 compilers.
Fix scanner to scan refentry's correctly.
Change preferred terms to use bold rather than just emphasis.
Updated tests to match.

[SVN r73144]
2011-07-16 12:13:06 +00:00
John Maddock
ecfb4e7ae3 Fix bad regular expression used for function name scanning.
[SVN r72986]
2011-07-09 17:05:35 +00:00
John Maddock
1a66d863a5 Fix regular expressions used.
[SVN r72974]
2011-07-08 17:50:11 +00:00
John Maddock
2ac83cabba Fix regular expression generator to escape special characters.
[SVN r72777]
2011-06-27 17:19:21 +00:00
John Maddock
4eb79129cf Fix command line options docs.
Change link handling to only link to blocks which can have a title - this avoids a docbook bug.

[SVN r72744]
2011-06-24 17:37:00 +00:00
John Maddock
211c7f4574 Added support for XML processing instructions to exclude sections/blocks from being indexed.
[SVN r72666]
2011-06-18 12:28:00 +00:00
John Maddock
b90862be71 Adjust handing of manually added indexterm's so that identical indexterm's in separate sections generate separate entries. Also allow for tertiary entries. Update tests to match.
[SVN r72637]
2011-06-17 12:35:40 +00:00
John Maddock
4b65298db4 Completely rewrite the internal index generation code - now uses nested unordered lists.
Entries with identical primary and secondary keys are now collapsed into one entry.
Preferred terms are now automatically detected.

[SVN r72614]
2011-06-16 17:48:12 +00:00
John Maddock
d39bffe9e0 Change index generator not to place <para> inside a <simplelist><member> as it's not valid Docbook XML.
[SVN r72532]
2011-06-10 11:54:18 +00:00
John Maddock
81745787bd Minor refactoring of error handling code.
[SVN r72482]
2011-06-08 11:04:21 +00:00
John Maddock
1e5c6c1b4e Change to use program.options.
Fix typos in docs raised by Edward Diener.

[SVN r72470]
2011-06-07 17:19:58 +00:00
John Maddock
669a36b78b Simplify (and delete!) code.
[SVN r72088]
2011-05-22 18:07:56 +00:00
John Maddock
bebb90db6b Change XML handing to pass processing instructions through unchanged, also to make the content available to the client.
Change index generation not to create a secondary list if there's nothing in it.
Change XML formatting to generate <tag/> rather than <tag></tag>.

[SVN r72085]
2011-05-22 17:13:33 +00:00
John Maddock
79c93534cc Tweak scanners used for functions. Update docs to match.
[SVN r71990]
2011-05-16 17:35:58 +00:00
John Maddock
8c4fce697e Test of ID constraint should use regex_match and not regex_search.
Update tests accordingly and change Jamfile.v2 to match current Trunk.

[SVN r71977]
2011-05-16 11:20:27 +00:00
John Maddock
9e6986bdcd Fix Index location.
Fix optional index inclusion in source.
Fix tool to generate an error if no script file exists.
Regenerate docs.

[SVN r68994]
2011-02-18 17:48:14 +00:00
John Maddock
49388c8e5b Escape terms to valid xml.
Print out the number of index entries at the end.
Update docs to match.

[SVN r68459]
2011-01-26 18:51:49 +00:00
John Maddock
c0e5727a80 Add more improved error handling.
Add docs on what containers can hold an index.
Fix tests not to generate bad Docbook!

[SVN r68458]
2011-01-26 18:13:05 +00:00
John Maddock
67a3a0341f Add some error handling for invalid file names.
[SVN r68438]
2011-01-25 18:45:42 +00:00
John Maddock
46573b0780 Add some notes about including optional auto-index support to the docs.
Add (copy) Jamroot etc files so this directory can be used standalone.
Fix GCC compiler warnings.
Streamline Jamfiles a touch.

[SVN r68356]
2011-01-21 18:53:06 +00:00
John Maddock
1d9de07e0d Fix some typos, and break up long lines.
[SVN r68350]
2011-01-21 16:49:03 +00:00
John Maddock
426a513396 Change file scanners to use customisable scanners that can be defined in the script file.
Update docs to match.
Update examples to use the new file scanner definitions.
Regenerate examples.

[SVN r67434]
2010-12-23 18:15:04 +00:00
John Maddock
07bbb7b3eb Refactor to use generic file scanning mechanism, and regenerated some of the example docs.
[SVN r67390]
2010-12-21 18:42:13 +00:00
John Maddock
5758421e85 Only remember the block's title if it has an ID we can link too as well.
[SVN r67363]
2010-12-20 15:33:03 +00:00
John Maddock
ef8ef80d0d Added a debug option.
[SVN r67358]
2010-12-20 13:17:15 +00:00
John Maddock
fa103db9d2 Update to build with Boost.Filesystem v3.
Change indexing operations so that the same term but with different type attributes are treated differently.
Regenerated example docs to match.

[SVN r67349]
2010-12-19 18:20:18 +00:00
John Maddock
dbac250089 Fix sun compiler failures.
[SVN r64267]
2010-07-22 17:06:31 +00:00
John Maddock
67d9bf9d59 Fix up source to reduce the warnings emitted, have better error handling, and better tolerance to scripts with whitespace on the ends of lines.
Change intermediate files to have ".auto_index" extension.

[SVN r64264]
2010-07-22 16:11:24 +00:00
John Maddock
d734cbcef2 Add a couple of new features plus the integer docs as another example.
[SVN r63411]
2010-06-28 18:00:17 +00:00
John Maddock
ee73201935 Adjust which blocks get flattened, and fix bug that allowed a section to be searched more than once.
[SVN r51842]
2009-03-18 18:34:18 +00:00
John Maddock
d77696d6c8 Scan for function declarations, not just definitions.
Locate internal index links to the last seen title if that title has an anchor.
Regenerate examples, and test cases.

[SVN r51796]
2009-03-16 18:26:31 +00:00
John Maddock
da51aa7e19 Change file scanning to search for more targeted regexes, and consolidate XML text when searching for terms.
[SVN r51747]
2009-03-13 10:46:33 +00:00
John Maddock
5a76fd3fc2 Put index entries in bold if they're present in the title of a section.
[SVN r51732]
2009-03-12 12:35:06 +00:00
John Maddock
8137c562e1 Give each XML node a weak_pointer to it's parent, and make use of that, rather than passing an explicit parent in process_node.
Have a list of XML elements which can contain an <indexterm> and make sure we only insert an <indexterm> in a location where it's actually valid XML.

[SVN r51698]
2009-03-11 13:43:55 +00:00
John Maddock
e06540b91a Add limited support for <indexterm>'s in the XML source, and updated the docs accordingly.
Added support for placing indexes inside different XML attributes.

[SVN r51049]
2009-02-06 13:19:22 +00:00
John Maddock
074a4a8123 Fix XML parser to handle <?...?> processing instructions.
Add prefix= command line option, and updated docs to match.
Changed examples to use prefix= option so that files to scan are found relative to boost-root.

[SVN r50994]
2009-02-03 17:17:17 +00:00
John Maddock
990e977ae5 Split up and organise code a bit better.
[SVN r50225]
2008-12-09 18:00:54 +00:00
John Maddock
28bb5e2f5d Added Boost.Build integration and rebuilt type_traits as proof-of-concept.
Fixed a few bugs in the source.

[SVN r50018]
2008-11-29 17:20:03 +00:00
John Maddock
2cc16442de Initial commit of automatic indexing tool.
[SVN r49852]
2008-11-20 18:24:33 +00:00