]> granicus.if.org Git - clang/commitdiff
Type::isIntegerType() returns true for types between Bool and LongLong.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 17 Aug 2008 13:24:01 +0000 (13:24 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 17 Aug 2008 13:24:01 +0000 (13:24 +0000)
Put WChar between them to make it integer type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54882 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h
test/SemaCXX/wchar_t.cpp

index 502b387ac2c2cd0de11054fce7ff8b763968cb48..73cf7ca4dba1423e93c549f26ef6643b2a4ea383 100644 (file)
@@ -471,14 +471,13 @@ public:
     
     Char_S,   // This is 'char' for targets where char is signed.
     SChar,    // This is explicitly qualified signed char.
+    WChar,    // This is 'wchar_t' for C++.
     Short,
     Int,
     Long,
     LongLong,
     
-    Float, Double, LongDouble,
-
-    WChar     // This is 'wchar_t' for C++.
+    Float, Double, LongDouble
   };
 private:
   Kind TypeKind;
index 43dd6ee994298ed28eb97ec1b0dd4a96965ea0ae..e3cd77a195fa18c004eccc97a3c17f6f082b9ae1 100644 (file)
@@ -5,4 +5,5 @@ void f(wchar_t p) {
   wchar_t x;
   unsigned wchar_t y; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
   signed wchar_t z; // expected-warning {{'wchar_t' cannot be signed or unsigned}}
+  ++x;
 }