[cfe-commits] r67474 - /cfe/trunk/include/clang/AST/Type.h

Chris Lattner sabre at nondot.org
Sun Mar 22 12:29:18 PDT 2009


Author: lattner
Date: Sun Mar 22 14:29:18 2009
New Revision: 67474

URL: http://llvm.org/viewvc/llvm-project?rev=67474&view=rev
Log:
add some missing type predicates.

Modified:
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=67474&r1=67473&r2=67474&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Sun Mar 22 14:29:18 2009
@@ -343,6 +343,8 @@
   // 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;





More information about the cfe-commits mailing list