[cfe-commits] r162641 - /cfe/trunk/lib/Frontend/InitPreprocessor.cpp

Will Wilson will at indefiant.com
Sat Aug 25 13:04:55 PDT 2012


Weirdly I had to undo this locally for compiling against VS2010 headers! It
seems r113126 introduced it to "Tell the VS headers that char16_t and
char32_t are keywords, so yvals.h doesn't try to define them as typedefs."

I can only assume something else has changed in the meantime...?

- Will.

On 25 August 2012 17:32, João Matos <ripzonetriton at gmail.com> wrote:

> This fixed some parsing problems with VS 2012 headers for me.
>
> Anyone remember why this was added in the first place? I don't have VS
> 2010 installed, so I can't test if it breaks something there.
>
>
> On Sat, Aug 25, 2012 at 6:27 AM, Francois Pichet <pichet2000 at gmail.com>wrote:
>
>> Author: fpichet
>> Date: Sat Aug 25 00:27:04 2012
>> New Revision: 162641
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=162641&view=rev
>> Log:
>> _HAS_CHAR16_T_LANGUAGE_SUPPORT is not predefined MSVC macro.
>>
>> Modified:
>>     cfe/trunk/lib/Frontend/InitPreprocessor.cpp
>>
>> Modified: cfe/trunk/lib/Frontend/InitPreprocessor.cpp
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/InitPreprocessor.cpp?rev=162641&r1=162640&r2=162641&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/lib/Frontend/InitPreprocessor.cpp (original)
>> +++ cfe/trunk/lib/Frontend/InitPreprocessor.cpp Sat Aug 25 00:27:04 2012
>> @@ -429,10 +429,6 @@
>>        Builder.append("#define __identifier(x) x");
>>        Builder.append("class type_info;");
>>      }
>> -
>> -    if (LangOpts.CPlusPlus0x) {
>> -      Builder.defineMacro("_HAS_CHAR16_T_LANGUAGE_SUPPORT", "1");
>> -    }
>>    }
>>
>>    if (LangOpts.Optimize)
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>
>
>
> --
> João Matos
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120825/122e946f/attachment.html>


More information about the cfe-commits mailing list