diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-04-30 18:27:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-04-30 18:27:22 +0000 |
commit | 7665a62cf7c466dba702c387fba9809e3a40498f (patch) | |
tree | 5cab687024a8d0ba4b7f412c4c9be8067e66738b /clang/test/FixIt/fixit.cpp | |
parent | f68e809c5e8629a0b2cff8ca726c351c78c31fbf (diff) | |
download | bcm5719-llvm-7665a62cf7c466dba702c387fba9809e3a40498f.tar.gz bcm5719-llvm-7665a62cf7c466dba702c387fba9809e3a40498f.zip |
Add FixItHint for -Wnull-conversion to initialize with an appropriate literal.
Reviewed by Doug Gregor.
llvm-svn: 155839
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r-- | clang/test/FixIt/fixit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp index e9b4d75a6aa..86a2dd44754 100644 --- a/clang/test/FixIt/fixit.cpp +++ b/clang/test/FixIt/fixit.cpp @@ -205,7 +205,6 @@ template<template<typename> Foo, // expected-error {{template template parameter template<typename> struct Baz> // expected-error {{template template parameter requires 'class' after the parameter list}} void func(); - namespace ShadowedTagType { class Foo { public: @@ -218,6 +217,9 @@ class Foo { void Foo::SetBar(Bar bar) { bar_ = bar; } // expected-error {{must use 'enum' tag to refer to type 'Bar' in this scope}} } +#define NULL __null +char c = NULL; // expected-warning {{implicit conversion of NULL constant to 'char'}} + namespace arrow_suggest { template <typename T> |