]> granicus.if.org Git - clang/commitdiff
Fix copy/paste to refer to the relevant type (ProgramPoint instead of TypeLoc).
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 21 Feb 2013 23:35:03 +0000 (23:35 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 21 Feb 2013 23:35:03 +0000 (23:35 +0000)
Post commit review feedback on r175812 from Jordan Rose.

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

include/clang/Analysis/ProgramPoint.h

index 27d4ff13f05047c790cb605efc843565aacd603d..3fbe8e1a4131121a2086b4c62719877c8c5a3035 100644 (file)
@@ -110,8 +110,8 @@ public:
                         getLocationContext(), tag);
   }
 
-  /// \brief Convert to the specified TypeLoc type, asserting that this TypeLoc
-  /// is of the desired type.
+  /// \brief Convert to the specified ProgramPoint type, asserting that this
+  /// ProgramPoint is of the desired type.
   template<typename T>
   T castAs() const {
     assert(T::isKind(*this));
@@ -121,8 +121,8 @@ public:
     return t;
   }
 
-  /// \brief Convert to the specified TypeLoc type, returning a null TypeLoc if
-  /// this TypeLoc is not of the desired type.
+  /// \brief Convert to the specified ProgramPoint type, returning None if this
+  /// ProgramPoint is not of the desired type.
   template<typename T>
   Optional<T> getAs() const {
     if (!T::isKind(*this))