]> granicus.if.org Git - clang/commitdiff
Unpack enums in CodeCompletetionResult.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 21 May 2012 10:42:01 +0000 (10:42 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 21 May 2012 10:42:01 +0000 (10:42 +0000)
In theory they should be wide enough even when the enum type is signed, but it
looks like MSVC9 still has problems with it.

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

include/clang/Sema/CodeCompleteConsumer.h

index 56260760e8888952e2b8217f956dc20caba6da74..001beca9053a29ba3472f3dafe843b84073646fb 100644 (file)
@@ -669,13 +669,13 @@ public:
   unsigned StartParameter;
 
   /// \brief The kind of result stored here.
-  ResultKind Kind : 3;
+  ResultKind Kind;
 
   /// \brief The cursor kind that describes this result.
-  CXCursorKind CursorKind : 16;
+  CXCursorKind CursorKind;
 
   /// \brief The availability of this result.
-  CXAvailabilityKind Availability : 8;
+  CXAvailabilityKind Availability;
 
   /// \brief Whether this result is hidden by another name.
   bool Hidden : 1;