diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-19 01:39:17 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-19 01:39:17 +0000 |
commit | 1b98ccc4e9576e86fb3e235bac3076472a84f875 (patch) | |
tree | 2a47686d41ac218fd7c65dea3321790f383a15e1 /clang/lib/Sema/SemaDecl.cpp | |
parent | c4e00289a78116aefc8db41979d747ab27c4bd44 (diff) | |
download | bcm5719-llvm-1b98ccc4e9576e86fb3e235bac3076472a84f875.tar.gz bcm5719-llvm-1b98ccc4e9576e86fb3e235bac3076472a84f875.zip |
PR20356: Fix all Sema warnings with mismatched ext_/warn_ versus
ExtWarn/Warnings. Mostly the name of the warning was changed to match the
semantics, but in the PR20356 cases, the warning was about valid code, so the
diagnostic was changed from ExtWarn to Warning instead.
llvm-svn: 213443
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 72fbe88eec2..3e930f4735c 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -1893,7 +1893,7 @@ void Sema::MergeTypedefNameDecl(TypedefNameDecl *New, LookupResult &OldDecls) { Context.getSourceManager().isInSystemHeader(New->getLocation()))) return; - Diag(New->getLocation(), diag::warn_redefinition_of_typedef) + Diag(New->getLocation(), diag::ext_redefinition_of_typedef) << New->getDeclName(); Diag(Old->getLocation(), diag::note_previous_definition); return; @@ -10121,7 +10121,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, // MSVC permits the use of pure specifier (=0) on function definition, // defined at class scope, warn about this non-standard construct. if (getLangOpts().MicrosoftExt && FD->isPure() && FD->isCanonicalDecl()) - Diag(FD->getLocation(), diag::warn_pure_function_definition); + Diag(FD->getLocation(), diag::ext_pure_function_definition); if (!FD->isInvalidDecl()) { // Don't diagnose unused parameters of defaulted or deleted functions. |