diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/CanonicalType.h | 1 | ||||
-rw-r--r-- | include/clang/AST/Type.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h index 4afb81dd05..19c9f83370 100644 --- a/include/clang/AST/CanonicalType.h +++ b/include/clang/AST/CanonicalType.h @@ -247,6 +247,7 @@ public: LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isCharType) LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isWideCharType) LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isIntegralType) + LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isIntegralOrEnumerationType) LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isRealFloatingType) LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isComplexType) LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isAnyComplexType) diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 7fa747b62e..93bf9a3991 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -851,6 +851,9 @@ public: bool isAnyCharacterType() const; bool isIntegralType() const; + /// \brief Determine whether this type is an integral or enumeration type. + bool isIntegralOrEnumerationType() const; + /// Floating point categories. bool isRealFloatingType() const; // C99 6.2.5p10 (float, double, long double) /// isComplexType() does *not* include complex integers (a GCC extension). |