summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-07-03 10:12:24 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-07-03 10:12:24 +0000
commit6c9af50cc815df58ed18a0a17225a41745f0107f (patch)
tree887fa08e52be6044db81d59b37488f511d629a2c /clang/test/FixIt
parenta020d3487e0c89b905d770811a5bf5c8c4c6114d (diff)
downloadbcm5719-llvm-6c9af50cc815df58ed18a0a17225a41745f0107f.tar.gz
bcm5719-llvm-6c9af50cc815df58ed18a0a17225a41745f0107f.zip
Add a fixit for -Wobjc-protocol-property-synthesis
rdar://32132756 Differential Revision: https://reviews.llvm.org/D34886 llvm-svn: 307014
Diffstat (limited to 'clang/test/FixIt')
-rw-r--r--clang/test/FixIt/fixit-add-synthesize-to-property.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-add-synthesize-to-property.m b/clang/test/FixIt/fixit-add-synthesize-to-property.m
new file mode 100644
index 00000000000..19b2f4b73f0
--- /dev/null
+++ b/clang/test/FixIt/fixit-add-synthesize-to-property.m
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
+
+@protocol P1
+
+@property int prop;
+
+@end
+
+@interface I <P1>
+
+@end
+
+@implementation I
+@end // CHECK: fix-it:{{.*}}:{[[@LINE]]:1-[[@LINE]]:1}:"@synthesize prop;\n\n"
OpenPOWER on IntegriCloud