r212447 - PointerLoc does not exist anymore.
Yaron Keren
yaron.keren at gmail.com
Mon Jul 7 02:52:31 PDT 2014
Author: yrnkrn
Date: Mon Jul 7 04:52:31 2014
New Revision: 212447
URL: http://llvm.org/viewvc/llvm-project?rev=212447&view=rev
Log:
PointerLoc does not exist anymore.
SourceLocation is available from TypeLoc member functions.
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=212447&r1=212446&r2=212447&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Jul 7 04:52:31 2014
@@ -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 {
More information about the cfe-commits
mailing list