[cfe-commits] r112762 - /cfe/trunk/include/clang/AST/DeclTemplate.h
Craig Silverstein
csilvers2000 at yahoo.com
Wed Sep 1 16:07:49 PDT 2010
Author: csilvers
Date: Wed Sep 1 18:07:49 2010
New Revision: 112762
URL: http://llvm.org/viewvc/llvm-project?rev=112762&view=rev
Log:
Update the docstring to say FriendTemplateDecl is not actually used.
Based on discussion with rjmccall and dgregor.
Modified:
cfe/trunk/include/clang/AST/DeclTemplate.h
Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=112762&r1=112761&r2=112762&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Wed Sep 1 18:07:49 2010
@@ -1813,8 +1813,11 @@
///
/// template <typename T> class A {
/// friend class MyVector<T>; // not a friend template
-/// template <typename U> friend class B; // friend template
+/// template <typename U> friend class B; // not a friend template
/// template <typename U> friend class Foo<T>::Nested; // friend template
+/// };
+/// NOTE: This class is not currently in use. All of the above
+/// will yield a FriendDecl, not a FriendTemplateDecl.
class FriendTemplateDecl : public Decl {
public:
typedef llvm::PointerUnion<NamedDecl*,TypeSourceInfo*> FriendUnion;
More information about the cfe-commits
mailing list