[cfe-commits] r157182 - /cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h

Douglas Gregor dgregor at apple.com
Mon May 21 10:27:13 PDT 2012


On May 21, 2012, at 3:42 AM, Benjamin Kramer <benny.kra at googlemail.com> wrote:

> Author: d0k
> Date: Mon May 21 05:42:01 2012
> New Revision: 157182
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=157182&view=rev
> Log:
> Unpack enums in CodeCompletetionResult.
> 
> In theory they should be wide enough even when the enum type is signed, but it
> looks like MSVC9 still has problems with it.

How about just making these 'unsigned' and using accessors, rather than bloating this data structure on all platforms?

Also, you'll probably want to turn the 'bool' below into an 'unsigned'.

	- Doug

> Modified:
>    cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h
> 
> Modified: cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h?rev=157182&r1=157181&r2=157182&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h (original)
> +++ cfe/trunk/include/clang/Sema/CodeCompleteConsumer.h Mon May 21 05:42:01 2012
> @@ -669,13 +669,13 @@
>   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;
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list