diff options
author | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-01-26 17:08:37 +0000 |
---|---|---|
committer | Enea Zaffanella <zaffanella@cs.unipr.it> | 2013-01-26 17:08:37 +0000 |
commit | 9677eb864f7354f140cd1bf59557843851e65de4 (patch) | |
tree | a539421999e558f1126947a9847a86aabd076c48 /include/clang/AST/ASTContext.h | |
parent | adeb7822cb7947194fef0e12d2d6583ccb8240b5 (diff) | |
download | clang-9677eb864f7354f140cd1bf59557843851e65de4.tar.gz |
Added ASTContext methods getIntPtrType and getUIntPtrType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/ASTContext.h')
-rw-r--r-- | include/clang/AST/ASTContext.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index bf0487198d..00af4cb08a 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -1108,6 +1108,14 @@ public: /// defined in <stddef.h> as defined by the target. QualType getWIntType() const { return WIntTy; } + /// \brief Return a type compatible with "intptr_t" (C99 7.18.1.4), + /// as defined by the target. + QualType getIntPtrType() const; + + /// \brief Return a type compatible with "uintptr_t" (C99 7.18.1.4), + /// as defined by the target. + QualType getUIntPtrType() const; + /// \brief Return the unique type for "ptrdiff_t" (C99 7.17) defined in /// <stddef.h>. Pointer - pointer requires this (C99 6.5.6p9). QualType getPointerDiffType() const; |