forked from OSchip/llvm-project
Add an accessor to extra the type directly from a DeclaratorInfo
without an opaque call. llvm-svn: 84277
This commit is contained in:
parent
12524fd2e5
commit
ff47031601
|
@ -47,6 +47,9 @@ class DeclaratorInfo {
|
|||
friend class ASTContext;
|
||||
DeclaratorInfo(QualType ty) : Ty(ty) { }
|
||||
public:
|
||||
/// \brief Return the type wrapped by this type source info.
|
||||
QualType getType() const { return Ty; }
|
||||
|
||||
/// \brief Return the TypeLoc wrapper for the type source info.
|
||||
TypeLoc getTypeLoc() const;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue