r197972 - Support and use token kinds as diagnostic arguments

Faisal Vali faisalv at gmail.com
Tue Dec 24 16:49:56 PST 2013


Hi Alp,
    This patch prevents clang from compiling in VS2010 (which supports
strong enums) - that's because forward declared enums (which are being used
in Diagnostic.h) aren't supported till VS2013.

Below, LLVM_HAS_STRONG_ENUMS is being used to assume support for forward
declared enums:

#if LLVM_HAS_STRONG_ENUMS
  namespace tok {
  enum TokenKind : unsigned;
  }
#endif


See: http://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx

Thanks!

Faisal Vali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131224/387f6d4e/attachment.html>


More information about the cfe-commits mailing list