clang::DiagnosticsEnginge::getCustomDiagID now needs a literal FormatString

...at least in trunk 200400 towards Clang 3.5.

Change-Id: Ibe956a7f28c16510506bd354582b3fe5a72582e5
This commit is contained in:
Stephan Bergmann
2014-01-31 09:50:21 +01:00
parent b21e3d16aa
commit 11235e8649
2 changed files with 18 additions and 2 deletions

View File

@@ -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 )