]> granicus.if.org Git - clang/commit
Match MSVC's handling of commas during macro argument expansion
authorReid Kleckner <reid@kleckner.net>
Wed, 26 Jun 2013 17:16:08 +0000 (17:16 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 26 Jun 2013 17:16:08 +0000 (17:16 +0000)
commit11be06464a338b7c6e007898a7709498dc456db2
treebdfc8e40b72cf00457716cc0807a3e0b38e445fe
parenteacc92f312086b37e82cb022eca2cb352602dc78
Match MSVC's handling of commas during macro argument expansion

This allows clang to parse the type_traits header in Visual Studio 2012,
which is included widely in practice.

This is a rework of r163022 by João Matos.  The original patch broke
preprocessing of gtest headers, which this patch addresses.

Patch by Will Wilson!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184968 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Token.h
lib/Lex/PPMacroExpansion.cpp
lib/Lex/TokenLexer.cpp
test/Preprocessor/microsoft-ext.c