diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-21 23:35:03 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-21 23:35:03 +0000 |
commit | 3c16431cb973079d178338833dafd6b483bf8c8d (patch) | |
tree | 58ecde79f12367a40ad3a85b02e4532c2887eaed /include/clang/Analysis/ProgramPoint.h | |
parent | 1c885a58891ae4421b2f4f9e63808c06fea020ee (diff) |
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
Diffstat (limited to 'include/clang/Analysis/ProgramPoint.h')
-rw-r--r-- | include/clang/Analysis/ProgramPoint.h | 8 |
1 files 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<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)) |