On Sun, Apr 22, 2012 at 22:54, Ollie Wild <a...@google.com> wrote:
> Add new option, -Wreserved-user-defined-literal.
>
> This option, which is enabled by default, causes the preprocessor to warn
> when a string or character literal is followed by a ud-suffix which does
> not begin with an underscore.  According to [lex.ext]p10, this is
> ill-formed.
>
> Also modifies the preprocessor to treat such ill-formed suffixes as separate
> preprocessing tokens.  This is consistent with the Clang front end (see
> http://llvm.org/viewvc/llvm-project?view=rev&revision=152287), and enables
> backwards compatibility with code that uses formatting macros from
> <inttypes.h>, as in the following code block:
>
>  int main() {
>    int64_t i64 = 123;
>    printf("My int64: %"PRId64"\n", i64);
>  }
>
> Google ref b/6377711.
>
> 2012-04-22   Ollie Wild  <a...@google.com>
>
>        * gcc/c-family/c-common.c:
>        * gcc/c-family/c-opts.c (c_common_handle_option):
>        * gcc/c-family/c.opt:
>        * gcc/doc/invoke.texi (struct A):
>        * gcc/testsuite/g++.dg/cpp0x/Wreserved-user-defined-literal.C (test):
>        (main):
>        * libcpp/include/cpplib.h (struct cpp_options):
>        * libcpp/init.c (cpp_create_reader):
>        * libcpp/lex.c (lex_raw_string):
>        (lex_string):

This would be for google/main, right?  It does not seem fit for
google/integration.


Diego.

Reply via email to