[cfe-commits] r84169 - /cfe/trunk/include/clang/AST/TypeLoc.h

John McCall rjmccall at apple.com
Wed Oct 14 21:01:48 PDT 2009


Author: rjmccall
Date: Wed Oct 14 23:01:40 2009
New Revision: 84169

URL: http://llvm.org/viewvc/llvm-project?rev=84169&view=rev
Log:
Complete some unfinished comments.


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

Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=84169&r1=84168&r2=84169&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Wed Oct 14 23:01:40 2009
@@ -179,11 +179,13 @@
 
 
 /// A metaprogramming base class for TypeLoc classes which correspond
-/// to a particular Type subclass.
+/// to a particular Type subclass.  It is accepted for a single
+/// TypeLoc class to correspond to multiple Type classes.
 ///
 /// \param Base a class from which to derive
 /// \param Derived the class deriving from this one
-/// \param TypeClass the concrete Type subclass which this 
+/// \param TypeClass the concrete Type subclass associated with this
+///   location type
 /// \param LocalData the structure type of local location data for
 ///   this type
 ///
@@ -194,7 +196,9 @@
 /// getExtraLocalDataSize(); getExtraLocalData() will then point to
 /// this extra memory.
 ///
-/// TypeLocs with an inner type should override ha
+/// TypeLocs with an inner type should override hasInnerType() and
+/// getInnerType(); getInnerTypeLoc() will then point to this inner
+/// type's location data.
 template <class Base, class Derived, class TypeClass, class LocalData>
 class ConcreteTypeLoc : public Base {
 





More information about the cfe-commits mailing list