[cfe-commits] [Patch] Format string warnings should refer to "%zu" etc by typedef type

Hans Wennborg hans at chromium.org
Fri Dec 2 11:26:30 PST 2011


On Fri, Dec 2, 2011 at 5:24 PM, Matt Beaumont-Gay <matthewbg at google.com> wrote:
> The | notation is a little surprising; I don't recall seeing it
> anywhere else in Clang doxyments. Maybe just:
>
> /// Try to find and return a typedef type named Name whose actual type
> is Underlying.

Fixed. I had to think a while to realize that the | notation is used
in Chromium sometimes; that's probably where I picked it up.

> +++ b/test/Sema/format-strings-int-typedefs.c
> @@ -0,0 +1,30 @@
> +// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
>
> Is the triple necessary here?

Yes, the test has to know what underlying types to expect to see from
the warnings.


Thanks for the review! Landed in r145697.

 - Hans



More information about the cfe-commits mailing list