From 377b9c84d01a954c9f39221e66b5f109b2a21662 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 22 Mar 2009 19:29:18 +0000 Subject: add some missing type predicates. llvm-svn: 67474 --- clang/include/clang/AST/Type.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang') diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index 4451186934d..580f78c2972 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -343,6 +343,8 @@ public: // Type Predicates: Check to see if this type is structurally the specified // type, ignoring typedefs and qualifiers. bool isFunctionType() const; + bool isFunctionNoProtoType() const { return getAsFunctionNoProtoType() != 0; } + bool isFunctionProtoType() const { return getAsFunctionProtoType() != 0; } bool isPointerType() const; bool isBlockPointerType() const; bool isReferenceType() const; -- cgit v1.2.3