]> granicus.if.org Git - clang/commitdiff
Default visbility for instance variables is protected.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 29 Apr 2008 23:03:51 +0000 (23:03 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 29 Apr 2008 23:03:51 +0000 (23:03 +0000)
Patch by Emerson Murhpy-Hill.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50452 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseObjc.cpp

index 0c5cf20ef8eb13ef61ca70ffe0bef1168722ca85..d1b1c25c5a716e61c8a508186c68ddea8e987bed 100644 (file)
@@ -758,7 +758,7 @@ void Parser::ParseObjCClassInstanceVariables(DeclTy *interfaceDecl,
 
   SourceLocation LBraceLoc = ConsumeBrace(); // the "{"
   
-  tok::ObjCKeywordKind visibility = tok::objc_private;
+  tok::ObjCKeywordKind visibility = tok::objc_protected;
   // While we still have something to read, read the instance variables.
   while (Tok.isNot(tok::r_brace) && Tok.isNot(tok::eof)) {
     // Each iteration of this loop reads one objc-instance-variable-decl.