From: Erich Keane Date: Mon, 12 Nov 2018 21:08:41 +0000 (+0000) Subject: Fix the 'fixit' for inline namespace replacement. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a946acd58534764267bc8e3f005f70f52a51c19e;p=platform%2Fupstream%2Fllvm.git Fix the 'fixit' for inline namespace replacement. I'd neglected to add to the fixit for r346677. Richard Smith mentioned this in a review-after-commit, so fixing it here. Change-Id: I77e612be978d4eedda8d5bbd60b812b88f875cda llvm-svn: 346705 --- diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index 85c972f..d29ce24 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -178,7 +178,10 @@ Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, } else { std::string NamespaceFix; for (const auto &ExtraNS : ExtraNSs) { - NamespaceFix += " { namespace "; + NamespaceFix += " { "; + if (ExtraNS.InlineLoc.isValid()) + NamespaceFix += "inline "; + NamespaceFix += "namespace "; NamespaceFix += ExtraNS.Ident->getName(); }