diff options
author | Bob Wilson <bob.wilson@apple.com> | 2016-03-15 20:56:38 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2016-03-15 20:56:38 +0000 |
commit | 57819fc809d1a72e253233930bbd06f13fb9bae6 (patch) | |
tree | 732cab7e54e904040185c40282a3aea9b90d21b0 /clang/test/SemaCXX/format-strings-0x.cpp | |
parent | 20c1e4e69d05e56d270e8380679c8735bac2c6d2 (diff) | |
download | bcm5719-llvm-57819fc809d1a72e253233930bbd06f13fb9bae6.tar.gz bcm5719-llvm-57819fc809d1a72e253233930bbd06f13fb9bae6.zip |
Move the fixit for -Wformat-security to a note.
r263299 added a fixit for the -Wformat-security warning, but that runs
into complications with our guideline that error recovery should be done
as-if the fixit had been applied. Putting the fixit on a note avoids that.
llvm-svn: 263584
Diffstat (limited to 'clang/test/SemaCXX/format-strings-0x.cpp')
-rw-r--r-- | clang/test/SemaCXX/format-strings-0x.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/format-strings-0x.cpp b/clang/test/SemaCXX/format-strings-0x.cpp index ad57b773e0a..7d37f8276f2 100644 --- a/clang/test/SemaCXX/format-strings-0x.cpp +++ b/clang/test/SemaCXX/format-strings-0x.cpp @@ -15,6 +15,7 @@ void f(char **sp, float *fp) { scanf("%afoobar", fp); printf(nullptr); printf(*sp); // expected-warning {{not a string literal}} + // expected-note@-1{{treat the string as an argument to avoid this}} // PR13099 printf( |