Add an accessor to extra the type directly from a DeclaratorInfo

without an opaque call.

llvm-svn: 84277
This commit is contained in:
John McCall 2009-10-16 21:42:04 +00:00
parent 12524fd2e5
commit ff47031601
1 changed files with 3 additions and 0 deletions

View File

@ -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;
};