[PATCH] Remove PragmaIntroducerKind?

Renato Golin renato.golin at linaro.org
Sat Dec 14 03:52:11 PST 2013


On 14 December 2013 10:12, Kim Gräsman <kim.grasman at gmail.com> wrote:

> John Thompson built a tool like that a few weeks back:
> https://github.com/llvm-mirror/clang-tools-extra/tree/master/pp-trace
>
> for the specific purpose of testing PPCallbacks. He's been trying to
> call attention to getting it into Clang core.
>

Hi Kim,

An alternative would be to make it to the test-suite, so we're sure it gets
at least tested once every few commits.

There's a Regression directory which contains very quick tests that you
(him) could include there.


I'm still on the fence whether it's a good idea to build a separate
> tool to test PPCallbacks, because failures would signal problems with
> the tool, not with PPCallbacks. Intuitively, I think unit tests would
> be better, but that was discouraged by someone else in the original
> review.
>

I like unit tests, but not to the point where it makes things harder. Some
of the comments that have been said in this list are very pertinent (and I
had my share of problems with unit tests, code coverage, etc), so I won't
defend any strategy in specific.

If you could get your tests somewhere, it'd be already great. The
test-suite seems like a good compromise, even if just temporarily.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131214/3e7fbc31/attachment.html>


More information about the cfe-commits mailing list