From: Chris Lattner Date: Sun, 22 Mar 2009 19:29:18 +0000 (+0000) Subject: add some missing type predicates. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26d1a40edc612f4c53399427480592101acb0dbe;p=clang add some missing type predicates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67474 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 4451186934..580f78c297 100644 --- a/include/clang/AST/Type.h +++ b/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;