[cfe-commits] r112759 - /cfe/trunk/include/clang/AST/DeclFriend.h

Craig Silverstein csilvers2000 at yahoo.com
Wed Sep 1 15:55:38 PDT 2010


Author: csilvers
Date: Wed Sep  1 17:55:38 2010
New Revision: 112759

URL: http://llvm.org/viewvc/llvm-project?rev=112759&view=rev
Log:
Make some docstring clarifications, after discussion with dgregor.

Modified:
    cfe/trunk/include/clang/AST/DeclFriend.h

Modified: cfe/trunk/include/clang/AST/DeclFriend.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclFriend.h?rev=112759&r1=112758&r2=112759&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclFriend.h (original)
+++ cfe/trunk/include/clang/AST/DeclFriend.h Wed Sep  1 17:55:38 2010
@@ -68,16 +68,16 @@
                             SourceLocation FriendL);
   static FriendDecl *Create(ASTContext &C, EmptyShell Empty);
 
-  /// If this friend declaration names an (untemplated but
-  /// possibly dependent) type, return the type;  otherwise
-  /// return null.  This is used only for C++0x's unelaborated
-  /// friend type declarations.
+  /// If this friend declaration names an (untemplated but possibly
+  /// dependent) type, return the type; otherwise return null.  This
+  /// is used for elaborated-type-specifiers and, in C++0x, for
+  /// arbitrary friend type declarations.
   TypeSourceInfo *getFriendType() const {
     return Friend.dyn_cast<TypeSourceInfo*>();
   }
 
-  /// If this friend declaration doesn't name an unelaborated
-  /// type, return the inner declaration.
+  /// If this friend declaration doesn't name a type, return the inner
+  /// declaration.
   NamedDecl *getFriendDecl() const {
     return Friend.dyn_cast<NamedDecl*>();
   }





More information about the cfe-commits mailing list