summaryrefslogtreecommitdiffstats
path: root/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
commitb9181e93ed98cd03533ebb9fa135ce59f5d9e46a (patch)
tree9f70eeb50ccd24c29e9ed23e47187ff4ec8e086f /test/FixIt
parentae6cb8d28c844a6d45b3c64ae7338e9d1653784c (diff)
Add a fixit for -Wobjc-protocol-property-synthesis
rdar://32132756 Differential Revision: https://reviews.llvm.org/D34886 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt')
-rw-r--r--test/FixIt/fixit-add-synthesize-to-property.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/FixIt/fixit-add-synthesize-to-property.m b/test/FixIt/fixit-add-synthesize-to-property.m
new file mode 100644
index 0000000000..19b2f4b73f
--- /dev/null
+++ b/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"