Added "HTMLDiagnostic", a generic DiagnosticClient (that also implements PathDiagnostic)
so that all diagnostics can be piped to HTML files instead of as text diagnostics using --html-diags.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48865 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/HTMLDiagnostics.h b/Driver/HTMLDiagnostics.h
new file mode 100644
index 0000000..172c002
--- /dev/null
+++ b/Driver/HTMLDiagnostics.h
@@ -0,0 +1,25 @@
+//===--- HTMLPathDiagnostic.h - HTML Diagnostics for Paths ------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines the interface to create a HTMLPathDiagnostic object.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_PATH_HTML_DIAGNOSTIC_H
+#define LLVM_CLANG_PATH_HTML_DIAGNOSTIC_H
+
+#include <string>
+
+namespace clang {
+ class PathDiagnosticClient;
+
+ PathDiagnosticClient* CreateHTMLDiagnosticClient(const std::string& prefix);
+}
+
+#endif