Improve comment for TypeDecl::getTypeForDecl(), from Sean Silva!

llvm-svn: 160405
This commit is contained in:
Douglas Gregor 2012-07-17 23:09:36 +00:00
parent 6bdb8daa76
commit 4b12ba0ce6
1 changed files with 4 additions and 1 deletions

View File

@ -2316,7 +2316,10 @@ protected:
: NamedDecl(DK, DC, L, Id), TypeForDecl(0), LocStart(StartL) {}
public:
// Low-level accessor
// Low-level accessor. If you just want the type defined by this node,
// check out ASTContext::getTypeDeclType or one of
// ASTContext::getTypedefType, ASTContext::getRecordType, etc. if you
// already know the specific kind of node this is.
const Type *getTypeForDecl() const { return TypeForDecl; }
void setTypeForDecl(const Type *TD) { TypeForDecl = TD; }