summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-08-31 00:36:45 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-08-31 00:36:45 +0000
commit5a5f2c76b6f70c207df50ebb6c7c467cc9e64407 (patch)
tree170a56854aa886bc6bf8c88c95e2f3f1e638d9ab /clang/lib/Parse/ParseDecl.cpp
parent35034569c708f0e01fc28e260b340c0b58a277d8 (diff)
downloadbcm5719-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/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 1f81202f014..0c68f7664e6 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -324,8 +324,8 @@ Parser::DeclGroupPtrTy Parser::ParseDeclaration(unsigned Context,
SingleDecl = ParseDeclarationStartingWithTemplate(Context, DeclEnd);
break;
case tok::kw_inline:
- // Could be the start of an inline namespace.
- if (getLang().CPlusPlus0x && NextToken().is(tok::kw_namespace)) {
+ // Could be the start of an inline namespace. Allowed as an ext in C++03.
+ if (getLang().CPlusPlus && NextToken().is(tok::kw_namespace)) {
if (Attr.HasAttr)
Diag(Attr.Range.getBegin(), diag::err_attributes_not_allowed)
<< Attr.Range;
OpenPOWER on IntegriCloud