From 5a5f2c76b6f70c207df50ebb6c7c467cc9e64407 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Tue, 31 Aug 2010 00:36:45 +0000 Subject: Enable inline namespaces in C++03 as an extension. llvm-svn: 112566 --- clang/lib/Parse/Parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Parse/Parser.cpp') diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 54053435322..44bd0fbc0c0 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/lib/Parse/Parser.cpp @@ -484,8 +484,8 @@ Parser::DeclGroupPtrTy Parser::ParseExternalDeclaration(CXX0XAttributeList Attr, } case tok::kw_inline: - if (getLang().CPlusPlus0x && NextToken().is(tok::kw_namespace)) { - // Inline namespaces + if (getLang().CPlusPlus && NextToken().is(tok::kw_namespace)) { + // Inline namespaces. Allowed as an extension even in C++03. SourceLocation DeclEnd; return ParseDeclaration(Declarator::FileContext, DeclEnd, Attr); } -- cgit v1.2.3