diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-09-23 23:18:46 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-09-23 23:18:46 +0000 |
| commit | c71eb6adc30cbb28e467e5145bb0a6ee13ebb0f3 (patch) | |
| tree | a187bb68886368f3a503e9ce6dd2c8bfd31609f3 /clang/lib | |
| parent | 6d0f1e683addaba9b2dfa124f8969a306cec7a60 (diff) | |
| download | bcm5719-llvm-c71eb6adc30cbb28e467e5145bb0a6ee13ebb0f3.tar.gz bcm5719-llvm-c71eb6adc30cbb28e467e5145bb0a6ee13ebb0f3.zip | |
ObjectiveC migrator. When migrating to property declaration
use Cocoa's naming convention for properties of ObjC
object type. // rdar://15045005
llvm-svn: 191240
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/ARCMigrate/ObjCMT.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/ARCMigrate/ObjCMT.cpp b/clang/lib/ARCMigrate/ObjCMT.cpp index c29a2de46b5..1dd8b0dfbd3 100644 --- a/clang/lib/ARCMigrate/ObjCMT.cpp +++ b/clang/lib/ARCMigrate/ObjCMT.cpp @@ -304,7 +304,9 @@ static bool rewriteToObjCProperty(const ObjCMethodDecl *Getter, } PropertyString += " "; PropertyString += RT.getAsString(Context.getPrintingPolicy()); - PropertyString += " "; + char LastChar = PropertyString[PropertyString.size()-1] ; + if (LastChar != '*') + PropertyString += " "; if (LengthOfPrefix > 0) { // property name must strip off "is" and lower case the first character // after that; e.g. isContinuous will become continuous. |

