r206826 - Allow adding a value to a flag in diagnostics.

Dmitri Gribenko gribozavr at gmail.com
Tue Apr 22 00:58:21 PDT 2014


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>*/



More information about the cfe-commits mailing list