[cfe-commits] r160612 - in /cfe/trunk: include/clang/Basic/TokenKinds.def lib/Basic/IdentifierTable.cpp test/SemaCXX/MicrosoftCompatibility.cpp

Francois Pichet pichet2000 at gmail.com
Sun Jul 22 20:58:39 PDT 2012


On Sun, Jul 22, 2012 at 4:33 PM, Sean Silva <silvas at purdue.edu> wrote:
> --- cfe/trunk/lib/Basic/IdentifierTable.cpp (original)
> +++ cfe/trunk/lib/Basic/IdentifierTable.cpp Sun Jul 22 06:32:41 2012
> @@ -103,7 +103,8 @@
>      KEYOPENCL = 0x200,
>      KEYC11 = 0x400,
>      KEYARC = 0x800,
> -    KEYALL = 0x0fff
> +    KEYALL = 0x0fff,
> +    KEYNOMS = 0x1000
>    };
>  }
>
> This doesn't look right to me. Isn't KEYALL is supposed to be a
> bitmask of all the keyword flags? KEYALL should be last and have the
> value 0x1fff.

This is intended, KEYNOMS is mean to exclude, it must not be part of
KEYALL otherwise the code wont work.



More information about the cfe-commits mailing list