]> granicus.if.org Git - clang/commitdiff
Rewrite @package (an ObjC 2.0 idiom).
authorSteve Naroff <snaroff@apple.com>
Fri, 4 Apr 2008 22:34:24 +0000 (22:34 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 4 Apr 2008 22:34:24 +0000 (22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49238 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteTest.cpp

index 03b342230f7715548259a79c8f76de862280d7ad..145c766d70d4dade66f4a6949148e6d898036f32 100644 (file)
@@ -2271,6 +2271,7 @@ void RewriteTest::SynthesizeObjCInternalStruct(ObjCInterfaceDecl *CDecl,
         // this transformation as well, which is still correct c-code.
         if (!strncmp(cursor, "public", strlen("public")) ||
             !strncmp(cursor, "private", strlen("private")) ||
+            !strncmp(cursor, "package", strlen("package")) ||
             !strncmp(cursor, "protected", strlen("protected")))
           InsertText(atLoc, "// ", 3);
       }