From 6d114cda2c5503148eef834624cb9339222a4414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 31 May 2013 19:18:34 +0200 Subject: [PATCH] make compiler plugin warnings follow WaE Change-Id: I72f1a11ce86d66e773e66116c725310df77fce39 --- compilerplugins/clang/plugin.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/compilerplugins/clang/plugin.cxx b/compilerplugins/clang/plugin.cxx index 4df8bac23d78..330090811423 100644 --- a/compilerplugins/clang/plugin.cxx +++ b/compilerplugins/clang/plugin.cxx @@ -34,13 +34,11 @@ DiagnosticBuilder Plugin::report( DiagnosticsEngine::Level level, StringRef mess SourceLocation loc ) { DiagnosticsEngine& diag = compiler.getDiagnostics(); -#if 0 // Do some mappings (e.g. for -Werror) that clang does not do for custom messages for some reason. if( level == DiagnosticsEngine::Warning && diag.getWarningsAsErrors()) level = DiagnosticsEngine::Error; if( level == DiagnosticsEngine::Error && diag.getErrorsAsFatal()) level = DiagnosticsEngine::Fatal; -#endif string fullMessage = ( message + " [loplugin]" ).str(); if( loc.isValid()) return diag.Report( loc, diag.getCustomDiagID( level, fullMessage ));