Boost logo

Boost Users :

Subject: Re: [Boost-users] BOOST_FOREACH prevent 100% code coverage.
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2012-10-11 21:31:34


On Thu, Oct 11, 2012 at 12:42 PM, Marcin Zawadzki <zaba.marcin_at_[hidden]>wrote:

> Hi,
> I'm using BOOST_FOREACH in my code. And because it's macro so the whole
> code behind the macro is inserted in place where it's used. So finally when
> generating code coverage using gcc/gcov for my file it says that I have not
> covered branches in line with BOOST_FOREACH.
> And the question is - is it possible to somehow exclude BOOST_FOREACH
> form coverage results?
>

If you find out (maybe by asking the gcov folks?), it might be worthwhile
to submit a trac ticket and/or documentation patch to add this information
to the BOOST_FOREACH documentation.

- Jeff



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net