projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
889c71e
)
PointerLoc does not exist anymore.
author
Yaron Keren
<yaron.keren@gmail.com>
Mon, 7 Jul 2014 09:52:31 +0000
(09:52 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Mon, 7 Jul 2014 09:52:31 +0000
(09:52 +0000)
SourceLocation is available from TypeLoc member functions.
llvm-svn: 212447
clang/include/clang/AST/Decl.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/Decl.h
b/clang/include/clang/AST/Decl.h
index
978c3c8
..
ce8b8b7
100644
(file)
--- a/
clang/include/clang/AST/Decl.h
+++ b/
clang/include/clang/AST/Decl.h
@@
-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 {