summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/format-strings-objc.m
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2016-03-15 20:56:38 +0000
committerBob Wilson <bob.wilson@apple.com>2016-03-15 20:56:38 +0000
commit57819fc809d1a72e253233930bbd06f13fb9bae6 (patch)
tree732cab7e54e904040185c40282a3aea9b90d21b0 /clang/test/SemaObjC/format-strings-objc.m
parent20c1e4e69d05e56d270e8380679c8735bac2c6d2 (diff)
downloadbcm5719-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/SemaObjC/format-strings-objc.m')
-rw-r--r--clang/test/SemaObjC/format-strings-objc.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/format-strings-objc.m b/clang/test/SemaObjC/format-strings-objc.m
index 079460cc76c..a1ebf03f8ef 100644
--- a/clang/test/SemaObjC/format-strings-objc.m
+++ b/clang/test/SemaObjC/format-strings-objc.m
@@ -116,6 +116,7 @@ NSString *test_literal_propagation(void) {
NSLog(ns2); // expected-warning {{more '%' conversions than data arguments}}
NSString * ns3 = ns1;
NSLog(ns3); // expected-warning {{format string is not a string literal}}}
+ // expected-note@-1{{treat the string as an argument to avoid this}}
NSString * const ns6 = @"split" " string " @"%s"; // expected-note {{format string is defined here}}
NSLog(ns6); // expected-warning {{more '%' conversions than data arguments}}
OpenPOWER on IntegriCloud