diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-07-17 23:09:36 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-07-17 23:09:36 +0000 |
commit | 8c77758b6546a61b7cc9b71d05049aa0fad3d841 (patch) | |
tree | cc67a4aadc8353adb96054e16fe7867bed463193 | |
parent | d47bc514d49e3707063dc30b166d28e954b338f1 (diff) |
Improve comment for TypeDecl::getTypeForDecl(), from Sean Silva!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160405 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Decl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 82f3c597d1..e9f25b368a 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -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; } |