From 3c16431cb973079d178338833dafd6b483bf8c8d Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 21 Feb 2013 23:35:03 +0000 Subject: [PATCH] Fix copy/paste to refer to the relevant type (ProgramPoint instead of TypeLoc). 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index 27d4ff13f0..3fbe8e1a41 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -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 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 Optional getAs() const { if (!T::isKind(*this)) -- 2.40.0