]> granicus.if.org Git - clang/commitdiff
Plist diagnostics now include PathDiagnostPiece::Kind.
authorTed Kremenek <kremenek@apple.com>
Mon, 2 Mar 2009 21:44:02 +0000 (21:44 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 2 Mar 2009 21:44:02 +0000 (21:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65878 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PlistDiagnostics.cpp

index d9863448caa1740027ad17627f36279ee11400d9..c40794cef75599a73aa0a456b4dd1fb483dee4d0 100644 (file)
@@ -134,6 +134,12 @@ static void ReportDiag(llvm::raw_ostream& o, const PathDiagnosticPiece& P,
                         ? "above" : "below")
                     << "</string>\n";
 #endif
+  // Output the PathDiagnosticPiece::Kind.
+  Indent(o, indent) << "<key>kind</key>\n";
+  Indent(o, indent) << "<string>"
+    << (P.getKind() == PathDiagnosticPiece::Event 
+        ? "Event" : "ControlFlow")
+    << "</string>\n";
   
   
   // Finish up.