r206826 - Allow adding a value to a flag in diagnostics.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Apr 22 01:39:22 PDT 2014
I have updated it as "Val", in r206871.
2014-04-22 16:58 GMT+09:00 Dmitri Gribenko <gribozavr at gmail.com>:
> On Tue, Apr 22, 2014 at 12:16 AM, Diego Novillo <dnovillo at google.com> wrote:
>> @@ -646,6 +654,11 @@ public:
>> /// \param DiagID A member of the @c diag::kind enum.
>> /// \param Loc Represents the source location associated with the diagnostic,
>> /// which can be an invalid location if no position information is available.
>> + /// \param FlagNameValue A string that represents the value that triggered
>> + /// this diagnostic. If given, this value will be emitted as "=value"
>> + /// after the flag name.
>> + inline DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID,
>> + StringRef Val);
>> inline DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID);
>> inline DiagnosticBuilder Report(unsigned DiagID);
>
> Hi Diego,
>
> This triggers a warning:
>
> warning: parameter 'FlagNameValue' not found in the function
> declaration [-Wdocumentation]
> /// \param FlagNameValue A string that represents the value that triggered
> note: did you mean 'Val'?
>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list