From 57819fc809d1a72e253233930bbd06f13fb9bae6 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 15 Mar 2016 20:56:38 +0000 Subject: 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 --- clang/test/SemaObjC/format-strings-objc.m | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/test/SemaObjC/format-strings-objc.m') 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}} -- cgit v1.2.3