diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-31 00:36:45 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-31 00:36:45 +0000 |
commit | 5a5f2c76b6f70c207df50ebb6c7c467cc9e64407 (patch) | |
tree | 170a56854aa886bc6bf8c88c95e2f3f1e638d9ab /clang/lib/Parse/Parser.cpp | |
parent | 35034569c708f0e01fc28e260b340c0b58a277d8 (diff) | |
download | bcm5719-llvm-5a5f2c76b6f70c207df50ebb6c7c467cc9e64407.tar.gz bcm5719-llvm-5a5f2c76b6f70c207df50ebb6c7c467cc9e64407.zip |
Enable inline namespaces in C++03 as an extension.
llvm-svn: 112566
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r-- | clang/lib/Parse/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |