r175825 - Fix copy/paste to refer to the relevant type (ProgramPoint instead of TypeLoc).

David Blaikie dblaikie at gmail.com
Thu Feb 21 15:35:03 PST 2013


Author: dblaikie
Date: Thu Feb 21 17:35:03 2013
New Revision: 175825

URL: http://llvm.org/viewvc/llvm-project?rev=175825&view=rev
Log:
Fix copy/paste to refer to the relevant type (ProgramPoint instead of TypeLoc).

Post commit review feedback on r175812 from Jordan Rose.

Modified:
    cfe/trunk/include/clang/Analysis/ProgramPoint.h

Modified: cfe/trunk/include/clang/Analysis/ProgramPoint.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/ProgramPoint.h?rev=175825&r1=175824&r2=175825&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/ProgramPoint.h (original)
+++ cfe/trunk/include/clang/Analysis/ProgramPoint.h Thu Feb 21 17:35:03 2013
@@ -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))





More information about the cfe-commits mailing list