]> granicus.if.org Git - clang/commitdiff
PointerLoc does not exist anymore.
authorYaron Keren <yaron.keren@gmail.com>
Mon, 7 Jul 2014 09:52:31 +0000 (09:52 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Mon, 7 Jul 2014 09:52:31 +0000 (09:52 +0000)
SourceLocation is available from TypeLoc member functions.

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

include/clang/AST/Decl.h

index 978c3c85cef4291f1444b0b19280f63b6fa3af2d..ce8b8b7dbcd6ffd71ca99086245cd4374a442f8b 100644 (file)
@@ -52,8 +52,7 @@ class VarTemplateDecl;
 /// A client can read the relevant info using TypeLoc wrappers, e.g:
 /// @code
 /// TypeLoc TL = TypeSourceInfo->getTypeLoc();
-/// if (PointerLoc *PL = dyn_cast<PointerLoc>(&TL))
-///   PL->getStarLoc().print(OS, SrcMgr);
+/// TL.getStartLoc().print(OS, SrcMgr);
 /// @endcode
 ///
 class TypeSourceInfo {