Boost logo

Boost :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-07-27 14:38:46


Gennaro Prota wrote:
> On Thu, 27 Jul 2006 18:48:12 +0100, "John Maddock"
> <john_at_[hidden]> wrote:
>
>> Gennaro Prota wrote:
>>> Hi,
>>>
>>> I'd like to point your attention toward the current status of our
>>> regression testing. I'll not express opinions, but these are some
>>> facts about 1.34:
>>> The list is not exhaustive.
>> Nope, my pet hate at present is http://tinyurl.com/jqe7j where the results
>>from one test (an expected failure, marked up) are being listed under a
>> completely different test :-(
>
> Argh :-(
>
> John, while you are here, I saw that you didn't reply about
> identifying min/max guideline violations in comments being difficult
> via regexes. That made me think twice, as I supposed it was pretty
> easy to do with sub_matches or alternation. The basis seems to be
> "//.*$" for single-line comments and "/\*.*?\*/" for multi-line ones.
> What am I missing? :-)

Comment looking substring embedded in string constants:

const char *x = "/* something";
/* whatever */

And comments within comments:

/**/ something /*/ another /**/

/**
something();
//*/
another();
/**/

/* something
/* another
*/

Probably more combinations possible :-)

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk