From 87c94064e8e1ac42eadc63bc375a905d5d0a0355 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 13 Oct 2011 16:26:02 +0200 Subject: [PATCH] interface/extract_interface.cc: adjust to rename of Diagnostic in clang Reported-by: Tobias Grosser Signed-off-by: Sven Verdoolaege --- configure.ac | 5 +++++ interface/extract_interface.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a65a0039..7e624fd1 100644 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,11 @@ system) [AC_DEFINE([getExpansionLineNumber], [getInstantiationLineNumber], [Define to getInstantiationLineNumber for older versions of clang])]) + AC_EGREP_HEADER([DiagnosticsEngine], + [clang/Basic/Diagnostic.h], [], + [AC_DEFINE([DiagnosticsEngine], + [Diagnostic], + [Define to Diagnostic for older versions of clang])]) AC_LANG_POP CPPFLAGS="$SAVE_CPPFLAGS" ;; diff --git a/interface/extract_interface.cc b/interface/extract_interface.cc index 4f8723be..7b25a771 100644 --- a/interface/extract_interface.cc +++ b/interface/extract_interface.cc @@ -135,7 +135,7 @@ int main(int argc, char *argv[]) DiagnosticOptions DO; Clang->createDiagnostics(0, NULL, new TextDiagnosticPrinter(llvm::errs(), DO)); - Diagnostic &Diags = Clang->getDiagnostics(); + DiagnosticsEngine &Diags = Clang->getDiagnostics(); Diags.setSuppressSystemWarnings(true); Clang->createFileManager(); Clang->createSourceManager(Clang->getFileManager()); -- 2.11.4.GIT