]> granicus.if.org Git - clang/commitdiff
Emit aggregate "location" for PathDiagnostic to plist. This fixes <rdar://problem...
authorTed Kremenek <kremenek@apple.com>
Fri, 27 Mar 2009 15:31:11 +0000 (15:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 27 Mar 2009 15:31:11 +0000 (15:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67845 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PlistDiagnostics.cpp

index 757b1ee13843541bcfd9deebe557eccf0a5055b9..9087a94232249675c207e1081f7ac65d637086c7 100644 (file)
@@ -298,8 +298,13 @@ PlistDiagnostics::~PlistDiagnostics() {
       << "   <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";
 
   }