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

Ted Kremenek kremenek at apple.com
Fri Mar 27 08:31:19 PDT 2009


Author: kremenek
Date: Fri Mar 27 10:31:11 2009
New Revision: 67845

URL: http://llvm.org/viewvc/llvm-project?rev=67845&view=rev
Log:
Emit aggregate "location" for PathDiagnostic to plist.  This fixes <rdar://problem/6729558>.

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=67845&r1=67844&r2=67845&view=diff

==============================================================================
--- cfe/trunk/lib/Frontend/PlistDiagnostics.cpp (original)
+++ cfe/trunk/lib/Frontend/PlistDiagnostics.cpp Fri Mar 27 10:31:11 2009
@@ -298,8 +298,13 @@
       << "   <key>category</key><string>" << D->getCategory()
       << "</string>\n"
       << "   <key>type</key><string>" << D->getBugType()
-      << "</string>\n"
-      << "  </dict>\n";
+      << "</string>\n";
+    
+    // Output the location of the bug.
+    o << "  <key>location</key>\n";
+    EmitLocation(o, SM, D->getLocation(), FM, 2);
+    
+    o << "  </dict>\n";
 
   }
 





More information about the cfe-commits mailing list