]> granicus.if.org Git - clang/commitdiff
add some missing type predicates.
authorChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 19:29:18 +0000 (19:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 19:29:18 +0000 (19:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67474 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 4451186934dacf8aae0ecd26a48bb2d43489ea1c..580f78c2972911c18dc2618afcc4d4f78782f043 100644 (file)
@@ -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;