aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/ASTContext.h
diff options
context:
space:
mode:
authorEnea Zaffanella <zaffanella@cs.unipr.it>2013-01-26 17:08:37 +0000
committerEnea Zaffanella <zaffanella@cs.unipr.it>2013-01-26 17:08:37 +0000
commit9677eb864f7354f140cd1bf59557843851e65de4 (patch)
treea539421999e558f1126947a9847a86aabd076c48 /include/clang/AST/ASTContext.h
parentadeb7822cb7947194fef0e12d2d6583ccb8240b5 (diff)
downloadclang-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.h8
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;