[clang-tools-extra] Add new tool: clang-read-diagnostics (PR #118522)
Jon Roelofs via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 13:27:39 PST 2024
================
@@ -0,0 +1,129 @@
+//===---- ClangReadDiagnostics.cpp - clang-read-diagnostics tool ----------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This tool is for reading clang diagnostics files from -serialize-diagnostics.
+//
+// Example usage:
+//
+// $ clang -serialize-diagnostics foo.c.diag foo.c
+// $ clang-read-diagnostics foo.c.diag
----------------
jroelofs wrote:
This deserves to be a test, too.
https://github.com/llvm/llvm-project/pull/118522
More information about the cfe-commits
mailing list