diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-31 09:50:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-31 09:50:21 +0100 |
commit | 11235e86497df47ff3acc61c1cab9fff0b91949e (patch) | |
tree | f1d3234e0cd2cd5252a82bba3ead98f641d5bfd8 /compilerplugins/clang/pluginhandler.cxx | |
parent | b21e3d16aa21992d6370c4b57a83039c433ef070 (diff) |
clang::DiagnosticsEnginge::getCustomDiagID now needs a literal FormatString
...at least in trunk 200400 towards Clang 3.5.
Change-Id: Ibe956a7f28c16510506bd354582b3fe5a72582e5
Diffstat (limited to 'compilerplugins/clang/pluginhandler.cxx')
-rw-r--r-- | compilerplugins/clang/pluginhandler.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/pluginhandler.cxx b/compilerplugins/clang/pluginhandler.cxx index 440df1cf07fb..345363b0a90f 100644 --- a/compilerplugins/clang/pluginhandler.cxx +++ b/compilerplugins/clang/pluginhandler.cxx @@ -9,6 +9,7 @@ * */ +#include "compat.hxx" #include "pluginhandler.hxx" #include <clang/Frontend/CompilerInstance.h> @@ -161,9 +162,9 @@ DiagnosticBuilder PluginHandler::report( DiagnosticsEngine::Level level, const c } fullMessage += "]"; if( loc.isValid()) - return diag.Report( loc, diag.getCustomDiagID( level, fullMessage )); + return diag.Report( loc, compat::getCustomDiagID(diag, level, fullMessage) ); else - return diag.Report( diag.getCustomDiagID( level, fullMessage )); + return diag.Report( compat::getCustomDiagID(diag, level, fullMessage) ); } DiagnosticBuilder PluginHandler::report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc ) |