diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-29 21:57:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-29 21:57:33 +0000 |
commit | d7c56e1114bfe7d461786903bb720d2c6efc05a1 (patch) | |
tree | d52935424d5de73be6fbd25adb5cbbcf2b3823d0 /lib/Parse/ParseCXXInlineMethods.cpp | |
parent | 0945f20f1c7263dab9a4d1eecd1d6fe822dbe65d (diff) |
Change the diagnostics which said 'accepted as an extension' to instead say
'is an extension'. The former is inappropriate and confusing when building with
-Werror/-pedantic-errors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r-- | lib/Parse/ParseCXXInlineMethods.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp index d5b240ab79..51dc5c88f8 100644 --- a/lib/Parse/ParseCXXInlineMethods.cpp +++ b/lib/Parse/ParseCXXInlineMethods.cpp @@ -76,7 +76,7 @@ Decl *Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, if (Tok.is(tok::kw_delete)) { Diag(Tok, getLang().CPlusPlus0x ? diag::warn_cxx98_compat_deleted_function : - diag::warn_deleted_function_accepted_as_extension); + diag::ext_deleted_function); KWLoc = ConsumeToken(); Actions.SetDeclDeleted(FnD, KWLoc); @@ -84,7 +84,7 @@ Decl *Parser::ParseCXXInlineMethodDef(AccessSpecifier AS, } else if (Tok.is(tok::kw_default)) { Diag(Tok, getLang().CPlusPlus0x ? diag::warn_cxx98_compat_defaulted_function : - diag::warn_defaulted_function_accepted_as_extension); + diag::ext_defaulted_function); KWLoc = ConsumeToken(); Actions.SetDeclDefaulted(FnD, KWLoc); |