summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-10-15 04:01:40 +0000
committerJohn McCall <rjmccall@apple.com>2009-10-15 04:01:40 +0000
commit9f49103ece4f88843d892e793fdd45a6ed10ee83 (patch)
treec48b522d7e219acc31a75fa4b619c50f27cb0799
parent33815690af25a41f6739ff9a5cc71bde389f2363 (diff)
downloadbcm5719-llvm-9f49103ece4f88843d892e793fdd45a6ed10ee83.tar.gz
bcm5719-llvm-9f49103ece4f88843d892e793fdd45a6ed10ee83.zip
Complete some unfinished comments.
llvm-svn: 84169
-rw-r--r--clang/include/clang/AST/TypeLoc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/include/clang/AST/TypeLoc.h b/clang/include/clang/AST/TypeLoc.h
index ab23a7985c3..3735eee4762 100644
--- a/clang/include/clang/AST/TypeLoc.h
+++ b/clang/include/clang/AST/TypeLoc.h
@@ -179,11 +179,13 @@ public:
/// 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 @@ public:
/// 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 {
OpenPOWER on IntegriCloud