[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"
;;
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());