r217880 - clang-format: Restructure and add missing tests.

Renato Golin renato.golin at linaro.org
Fri Sep 26 08:54:32 PDT 2014


On 16 September 2014 17:22, Daniel Jasper <djasper at google.com> wrote:
> +  // For backward compatibility:
> +  CHECK_PARSE("DerivePointerBinding: true", DerivePointerAlignment, true);
> +  CHECK_PARSE("DerivePointerBinding: false", DerivePointerAlignment, false);

Hi Daniel,

GCC 4.9.1 gives me this warning for that last line:

src/llvm/tools/clang/unittests/Format/FormatTest.cpp:8387:1132:
warning: converting ‘false’ to pointer type for argument 1 of ‘char
testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’
[-Wconversion-null]
   CHECK_PARSE("DerivePointerBinding: false", DerivePointerAlignment, false);

cheers,
--renato




More information about the cfe-commits mailing list