[cfe-dev] Question about test show-diag-options.c
Argyrios Kyrtzidis
kyrtzidis at apple.com
Mon Oct 3 11:28:35 PDT 2011
On Sep 30, 2011, at 1:19 AM, John Wiegley wrote:
> I am looking at a test, test/Misc/show-diag-options.c, and I see this line:
>
> // CATEGORY_ID: {{.*}}: warning: {{[a-z ]+}} [2]
>
> Can anyone tell me where this [2] comes from? I see that it refers to a diag
> category index of some kind, but I can't figure out from .td files why the
> category for that particular warning should have an index of "2".
Check DiagnosticCategories.h, the number is the index in the enum list.
-Argyrios
>
> Thanks,
> --
> John Wiegley
> BoostPro Computing, Inc.
> http://www.boostpro.com
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list