[cfe-commits] r65878 - /cfe/trunk/lib/Frontend/PlistDiagnostics.cpp

Ted Kremenek kremenek at apple.com
Mon Mar 2 13:44:02 PST 2009


Author: kremenek
Date: Mon Mar  2 15:44:02 2009
New Revision: 65878

URL: http://llvm.org/viewvc/llvm-project?rev=65878&view=rev
Log:
Plist diagnostics now include PathDiagnostPiece::Kind.

Modified:
    cfe/trunk/lib/Frontend/PlistDiagnostics.cpp

Modified: cfe/trunk/lib/Frontend/PlistDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PlistDiagnostics.cpp?rev=65878&r1=65877&r2=65878&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/PlistDiagnostics.cpp (original)
+++ cfe/trunk/lib/Frontend/PlistDiagnostics.cpp Mon Mar  2 15:44:02 2009
@@ -134,6 +134,12 @@
                         ? "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.





More information about the cfe-commits mailing list