27c1d97a7b
Add VirtualConstructor, the coolest toy ever written.
Ciaran McCreesh2006-01-21 00:16:47 +00:00
7b72a5fd69
Change the output for failed tests to produce 'filename:line: message' on a line of its own so that Vim quickfix can parse and locate errors without assistance.
Ciaran McCreesh2006-01-20 20:11:55 +00:00
9f3537b147
Fix attribute support on GCC 3.3. Don't try to use the weak linkage trick unless our compiler is known to provide a working __attribute__((weak)).
Ciaran McCreesh2006-01-20 03:34:34 +00:00
9ded15bf77
Create an AcceptVisitor class and accept_visitor convenience function to simplify calling accept on each item in a container of pointers to nodes. Use them.
Ciaran McCreesh2006-01-20 01:21:17 +00:00
f606692f39
Shorten as-needed description so that it doesn't wrap in an 80 column terminal.
Ciaran McCreesh2006-01-20 00:56:40 +00:00
14cf958649
Converted --help output to use a visitor, and handle EnumArg better
Stephen P. Bennett2006-01-20 00:43:06 +00:00
f76ef486ea
Use the Visitor Doxygen group. Add file and test Doxygen comments.
Ciaran McCreesh2006-01-20 00:34:01 +00:00
4f59c11d5c
Add Doxygen comments to visitor. Move Visits into visitor_internals since the unwashed masses shouldn't be touching it directy.
Ciaran McCreesh2006-01-20 00:26:36 +00:00
f162820c7f
Rename to TransformInsertIterator etc. rather from TranslateInsertIterator.
Ciaran McCreesh2006-01-20 00:07:04 +00:00
867d2b7dfb
Regenerate m4-created files where needed. Should only affect SVN users who don't rerun ./autogen.bash after every update. Normal users (if we ever get any) shouldn't ever hit this, and so won't need the GNU m4 dependency.
Ciaran McCreesh2006-01-19 23:47:58 +00:00
ebe3297f03
Add in GPL headers where missing. Add KeyValueConfigFileError and use it rather than InternalError. Make DefaultConfigError and KeyValueConfigFileError descend from ConfigurationError rather than Exception.
Ciaran McCreesh2006-01-19 22:21:09 +00:00
b3bee5ca17
Switch to using PALUDIS_HERE rather than __PRETTY_FUNCTION__. Make the test framework print out more exception information where it is available. We use a linker trick to avoid having libpaludistest.a require libpaludis.a.
Ciaran McCreesh2006-01-19 19:16:26 +00:00
ceed973f97
Add tests for KeyValueConfigFile. Fix off by one error with unbraced variables.
Ciaran McCreesh2006-01-19 19:15:37 +00:00
a239211d9e
We don't need -Wno-overloaded-virtual with the new visitor code.
Ciaran McCreesh2006-01-19 19:14:37 +00:00
f399ff1a78
StripAdapter's member is no longer a reference. Add testcases for StripAdapter as well
Mark Loeser2006-01-19 04:35:21 +00:00
816a7e4485
Remove composite_visitor, we don't use it any more.
Ciaran McCreesh2006-01-19 02:46:32 +00:00
4f672a6d76
Fixes for icc: define and use next() rather than ++ to advance pointers, add in a few new includes.
Ciaran McCreesh2006-01-19 02:29:55 +00:00
21ed2b404c
EnumArg changes. Added description fields for each allowed arg, and allow for a default arg if it's not specified.
Stephen P. Bennett2006-01-17 18:57:23 +00:00
e9caa13092
Add setup/cleanup scripts for is_file_with_extension_TEST rather than using the source file so that distcheck works.
Ciaran McCreesh2006-01-17 18:08:47 +00:00